MCP ExplorerExplorer

Mcp Document Reader

@jbchouinardon 9 months ago
4 MIT
FreeCommunity
AI Systems
MCP tool for LLM interaction with EPUB and PDF files.

Overview

What is Mcp Document Reader

mcp-document-reader is a basic MCP server designed for interaction with PDF and EPUB documents, facilitating the use of these file formats in LLM applications.

Use cases

Use cases include reading and extracting information from educational materials, integrating document content into applications, and enabling LLMs to interact with structured document formats.

How to use

To use mcp-document-reader, clone the repository, install the required dependencies using Poetry, and configure the MCP server with the appropriate command and arguments. You can run it directly or build it with pip.

Key features

Key features include support for both PDF and EPUB formats, integration with MCP tools, and a straightforward installation and configuration process.

Where to use

mcp-document-reader can be used in various domains including education, publishing, and software development, where interaction with document files is necessary.

Content

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

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers