This MCP Document Reader provides a server that enables interaction with PDF and EPUB documents through the Model Context Protocol. It's particularly useful for tools like Windsurf IDE by Codeium that support MCP tools.
To get started with the MCP Document Reader, you'll need:
# Clone the repository
git clone https://github.com/jbchouinard/mcp-document-reader.git
cd mcp-document-reader
poetry install
You can configure the MCP server to run with Poetry by adding the following to your configuration file:
{
"mcpServers": {
"documents": {
"command": "poetry",
"args": ["-C", "path/to/mcp-document-reader", "run", "mcp-document-reader"]
}
}
}
Alternatively, you can build and install the package with pip:
poetry build
pipx install dist/*.whl
which mcp-document-reader
After installation, configure your MCP server using the path returned by the which
command:
{
"mcpServers": {
"documents": {
"command": "/path/to/mcp-document-reader",
"args": []
}
}
}
Replace /path/to/mcp-document-reader
with the actual path to the installed executable.
Once configured, the MCP Document Reader will work as a server that handles PDF and EPUB documents through the Model Context Protocol, making these documents accessible to compatible tools like Windsurf IDE.
The server provides an interface to interact with document content through the MCP, allowing tools to access and process the textual information contained in the supported document formats.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.