Document Reader MCP server

Enables interaction with PDF and EPUB documents for reading, analyzing content, and extracting information from document files.
Back to servers
Provider
Jerome Boisvert-Chouinard
Release date
Mar 09, 2025
Language
Python
Stats
4 stars

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.

Installation Requirements

To get started with the MCP Document Reader, you'll need:

  • Python 3.11 or newer
  • Poetry package manager

Setting Up the Server

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

Configuration Options

Running with Poetry

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"]
    }
  }
}

Installing with pip

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.

Usage

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.

How to add this MCP server to Cursor

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.

Adding an MCP server to Cursor globally

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"
            ]
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later