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.2.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.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mseep_mcp_document_reader-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f7648a54141c52e84fb73c1cbbbffe01a2efeef4aa65b7dd7f7854dde4282a8a
MD5 ed724597ceeabc83102c9562b7587c80
BLAKE2b-256 d7393f64d65f10a80ce24fe748f109c667690d10db00beb9accef373dc96c87d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mseep_mcp_document_reader-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac283f4cace00f2c32ebcfe4b8ba9dfb51d11f2c82de833baf6999fab2ae9b52
MD5 c729ee28dd00091a907b8b118057b845
BLAKE2b-256 864bd4445559343e6a12111a1a2e2e2099d7cfee225e816d15cfdb0cc23af5a3

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