# MCP Document Reader [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/xt765/mcp_documents_reader  
**GitHub Stars:** 23  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-document-reader

## Description
An MCP enabled multi-format document reader supporting DOCX, PDF, TXT, and Excel files

## Tools
Capabilities this server exposes over MCP:

- **read_document** — Read any supported document type with a unified interface.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mcp-document-reader": {
    "command": "uvx",
    "args": ["mcp-documents-reader"]
  }
}
```

## Documentation

## What MCP Document Reader MCP server does

MCP Document Reader MCP server lets an MCP-compatible AI assistant read files stored on the local filesystem. Its supported formats are DOCX, PDF, plain text, and Excel workbooks using the `.xlsx` or `.xls` extensions. The server presents these formats through one MCP tool rather than requiring a different call for each file type.

The returned result is extracted document content. DOCX files provide text and structure extraction, PDFs provide text extraction, text files are read as plain text, and Excel files provide sheet and cell data extraction. The tool accepts either an absolute path or a path relative to the process context.

## How it works

An assistant calls `read_document` with a required `filename` string. MCP Document Reader MCP server identifies the file format from the supplied document, selects the matching reader, extracts its content, and returns that content to the assistant.

The implementation uses Python libraries for each supported format: `python-docx` for DOCX files, `pypdf` for PDFs, and `openpyxl` for Excel workbooks. Text files use plain text reading. This design is suited to workflows where an agent needs to summarize, inspect, or answer questions about files already available on the machine running the server.

## Setup and configuration

Install the published package with:

```bash
pip install mcp-documents-reader
```

The repository also supports installation from source with `pip install -e .` after cloning it. The README provides MCP configuration examples using `uvx` and the PyPI package, GitHub repository, or Gitee repository.

For Claude Desktop, add an MCP server entry that runs `uvx mcp-documents-reader`. The same configuration pattern is documented for Trae IDE. No environment variables are listed as required. Python 3.10 or newer is specified by the project metadata.

## Tools and capabilities

The server exposes one tool:

- `read_document`: Reads a supported document from a supplied filesystem path.

Supported input formats include:

- Excel: `.xlsx` and `.xls`, with sheet and cell data extraction
- DOCX: `.docx`, with text and structure extraction
- PDF: `.pdf`, with text extraction
- Text: `.txt`, with plain text reading

MCP Document Reader MCP server can also be used as a Python library through `DocumentReaderFactory`, which selects a reader for a supported filename and can test whether a format is supported. That library usage is separate from the MCP tool interface.

## Limitations and notes

The documented interface exposes only file reading; it does not provide editing, conversion, writing, or document management operations. The documented PDF capability is text extraction, while spreadsheet support is described in terms of sheets and cells. The project is released under the MIT License.

_Full upstream README: https://allmcps.com/mcp/mcp-document-reader/readme_

