mcp-docs-reader
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-docs-reader open reports/q3-summary.pdf and summarize the key points"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-docs-reader
An MCP server that lets Claude read your PDFs, Word documents, spreadsheets and CSVs as clean text, Markdown and tables.
PDF — text per page, page ranges (
"1-3,5"), title metadata.Word (.docx) — Markdown with headings, lists, bold, tables and links, or plain text.
Excel (.xlsx) / CSV / TSV — sheet listing, header + rows with paging, cached formula results, ISO dates, automatic CSV delimiter detection.
Sandboxed. Only folders passed with
--rootare readable; symlinks are resolved first, so a link pointing outside is refused. 25 MB file limit. Read-only.Pure JavaScript, no native dependencies, no network access. Node.js 22+.
Quick start
{
"mcpServers": {
"docs": { "command": "npx", "args": ["-y", "@aranshayan/mcp-docs-reader", "--root", "/path/to/Documents"] }
}
}Claude Code: claude mcp add docs -- npx -y @aranshayan/mcp-docs-reader --root "$HOME/Documents". Multiple --root flags (or MCP_DOCS_ROOTS) are allowed; the default is the current directory.
Related MCP server: Claude RAG MCP Pipeline
Tools
Tool | Description |
| PDF/DOCX/XLSX/CSV/MD/TXT files in a folder (optionally recursive). |
| Text by page; |
| Markdown or text; paginated with |
|
|
|
|
All tools are readOnlyHint. Document contents are untrusted: a document can contain text that tries to instruct the model.
Limits
No OCR. Scanned PDFs return empty pages with an explanatory note.
Images in Word documents are dropped; charts and pivot tables are not interpreted.
Legacy
.doc/.xlsare not supported.exceljsdepends onuuid8.x, which has a moderate advisory about abufargument that exceljs does not use. Consumers cannot override this from a dependency; it is not reachable here.
Tests
npm test generates real PDF, DOCX and XLSX fixtures and checks every tool, path traversal, absolute paths, symlink escape, wrong file types, corrupt files, and the built CLI over stdio.
License
Available Tools
5 toolslist_documentsList documentsBRead-onlyIdempotent
List PDF, Word, Excel, CSV, Markdown and text files in an allowed folder.
Inputs: dir, limit, recursive.
read_docxRead Word documentBRead-onlyIdempotent
Read a .docx as Markdown (headings, lists, tables, links) or plain text. Long documents are paginated.
Inputs: path (required), format, max_chars, start_index.
read_pdfRead PDFARead-onlyIdempotent
Extract text from a PDF, page by page. Scanned (image-only) PDFs have no text layer and return empty pages.
Inputs: path (required), pages, max_chars.
read_spreadsheetRead spreadsheetARead-onlyIdempotent
Read rows from an .xlsx sheet or a .csv/.tsv file. Without a sheet name for .xlsx, also lists all sheets. Formulas return their cached values.
Inputs: path (required), sheet, max_rows, delimiter, +1 more.
read_textRead text fileCRead-onlyIdempotent
Read a .md or .txt file (paginated).
Inputs: path (required), max_chars, start_index.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool maps to a distinct file format (PDF, docx, spreadsheet, md/txt) plus one listing tool, so an agent can dispatch purely on file extension. The only borderline case is read_text vs read_docx for docx-as-plain-text, but read_docx's description explicitly covers that path, keeping boundaries clear.
All tools follow a verb_noun snake_case pattern (list_documents, read_*), which is predictable. Minor deviation: read_text names the output format (text) while siblings are named after input formats (pdf, docx, spreadsheet), so the noun category isn't perfectly uniform.
Five tools is well-scoped for a read-only document reader, with one listing tool and one reader per major format family. No tool feels redundant or filler.
Coverage spans all common office/text formats with pagination and sheet enumeration, which is strong for a reader. The notable gap is scanned/image-only PDFs, which the description admits return empty pages with no OCR or image-read fallback, leaving a dead end; no pptx support is also missing but minor.
Maintenance
Related MCP Connectors
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Convert PDF, Word, Excel and scanned documents to Markdown, tables and RAG chunks. OCR.
Convert PDFs, Office files, spreadsheets and images to clean Markdown, sized for agent context.
Parse, extract, split, and ask over digital PDFs (text layer, no OCR) from Cursor and Claude.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude to read and analyze PDF documents with automatic OCR processing for scanned files. Features intelligent text extraction, caching for performance, and secure file access with search capabilities.1-
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to search and query personal document collections (PDF, Word, Markdown, text) using semantic search and conversational AI with full context preservation across exchanges.MIT
- AlicenseAqualityCmaintenanceAutomatically converts PDF, DOCX, XLSX, and CSV files to clean markdown when read by Claude Code, reducing token usage by up to 98%.15 npmMIT
- FlicenseAqualityDmaintenanceEnables LLM hosts like Claude Code or Codex CLI to inspect folder structures and read unstructured documents (PDF, PPTX, DOCX, SVG, and images) by returning raw text and images for the host to summarize or analyze.2-