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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_mcp_document_reader-0.1.1.tar.gz.
File metadata
- Download URL: mseep_mcp_document_reader-0.1.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b0a9172d161fcdef52dc5f3d72720b2b4fd21ebac0f2d0cafe7fe1e80da16a5
|
|
| MD5 |
aeaa2a1a57eeb16f0b7e24ca8dac2d29
|
|
| BLAKE2b-256 |
86c47cfe3cba80fc6eb2b3e66c45f15d3bd87f244989a6f1c2eb463aeb4a5be7
|
File details
Details for the file mseep_mcp_document_reader-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mseep_mcp_document_reader-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e78ac396b42b0c06b56b9ad06cd027afa7255f7b28b7595a3b298010a9bb5ff
|
|
| MD5 |
3df0da2ff5481a6fc54546d7a37bf13d
|
|
| BLAKE2b-256 |
68b65cb03ca32bc814f14f67d80f5e8fd06f4a4cafdf6ba7afa1b4f54d082bb9
|