An MCP (Model Context Protocol) server for reading, converting, and saving documents. Built with FastMCP and MarkItDown, it enables LLMs to interact with files on your local machine.
| Tool | Description |
|---|---|
| Read Any Document | Reads any supported document and returns its text content, including OCR for images. |
| Save File to PC | Saves content to a file at a specified path on your machine. |
| Resource | URI | Description |
|---|---|---|
| Local Document Directory | docs://files |
Lists all files in the current working directory. |
| Document Content | docs://file/{filename} |
Retrieves the converted text content of a specific file. |
| Prompt | Description |
|---|---|
analyze_data |
Generates a creative four-line song based on user-provided text. |
- Python >= 3.12
pip install -e .pip install vvin-document-brainmcp-document-brainAdd the following to your Cursor MCP config file at ~/.cursor/mcp.json:
Using uvx (recommended — no install needed):
{
"mcpServers": {
"DocumentBrain": {
"command": "uvx",
"args": ["vvin-document-brain"]
}
}
}Cache path issues? If
uvxfails with a "Permission denied" error for~/.cache/uvor~/.local/share/uv(common on managed/corporate machines), add anenvblock to redirect both paths:{ "mcpServers": { "DocumentBrain": { "command": "uvx", "args": ["vvin-document-brain"], "env": { "UV_CACHE_DIR": "/tmp/cache/uv", "XDG_DATA_HOME": "/tmp/uv-data" } } } }
Using pip install (if already installed globally):
{
"mcpServers": {
"DocumentBrain": {
"command": "vvin-document-brain"
}
}
}Add the following to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"DocumentBrain": {
"command": "uvx",
"args": ["vvin-document-brain"]
}
}
}Read a document:
Tool: read_any_document
Arguments: { "file_path": "~/Documents/report.pdf" }
Save a file:
Tool: save_file_to_pc
Arguments: { "filepath": "/path/to/output.txt", "content": "Hello, world!" }
DocumentBrain/
├── src/
│ └── document_brain/
│ ├── __init__.py
│ └── server.py # MCP server with tools, resources, and prompts
├── tests/
│ └── test_server.py
├── pyproject.toml
└── README.md
DocumentBrain leverages MarkItDown to convert a wide range of file formats, including:
- Word documents (.docx)
- Excel spreadsheets (.xlsx)
- PowerPoint presentations (.pptx)
- Images (with OCR)
- HTML
- Plain text
- And more (see MarkItDown docs for the full list)
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytestMIT
Vishwesh Vinchurkar — vishwesh.vinchurkar@gmail.com