Skip to main content

A MCP Server for reading PDF and EPUB files.

Project description

mcp-document-reader

A rudimentary MCP server for interacting with PDF and EPUB documents.

I use this with Windsurf IDE by Codeium, which only supports MCP tools, not resources.

Installation

Requirements

# Clone the repository
git clone https://github.com/jbchouinard/mcp-document-reader.git
cd mcp-document-reader
poetry install

Configure MCP Server

Run with poetry:

{
  "mcpServers": {
    "documents": {
      "command": "poetry",
      "args": ["-C", "path/to/mcp-document-reader", "run", "mcp-document-reader"]
    }
  }
}

Alternatively, build and install with pip, then run the script directly:

poetry build
pipx install dist/*.whl
which mcp-document-reader

Then use the following config, with the path output by which:

{
  "mcpServers": {
    "documents": {
      "command": "/path/to/mcp-document-reader",
      "args": []
    }
  }
}

Development

Setup

# Install dependencies
poetry install

Testing

poetry run pytest

Linting

poetry run ruff check --fix .
poetry run ruff format .

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mseep_mcp_document_reader-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mseep_mcp_document_reader-0.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file mseep_mcp_document_reader-0.1.1.tar.gz.

File metadata

File hashes

Hashes for mseep_mcp_document_reader-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1b0a9172d161fcdef52dc5f3d72720b2b4fd21ebac0f2d0cafe7fe1e80da16a5
MD5 aeaa2a1a57eeb16f0b7e24ca8dac2d29
BLAKE2b-256 86c47cfe3cba80fc6eb2b3e66c45f15d3bd87f244989a6f1c2eb463aeb4a5be7

See more details on using hashes here.

File details

Details for the file mseep_mcp_document_reader-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_mcp_document_reader-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e78ac396b42b0c06b56b9ad06cd027afa7255f7b28b7595a3b298010a9bb5ff
MD5 3df0da2ff5481a6fc54546d7a37bf13d
BLAKE2b-256 68b65cb03ca32bc814f14f67d80f5e8fd06f4a4cafdf6ba7afa1b4f54d082bb9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page