Claude Document MCP Server
A Model Context Protocol (MCP) server that allows Claude Desktop to perform document operations on Microsoft Word, Excel, and PDF files.
Features
Microsoft Word Operations
- Create new Word documents from text
- Edit existing Word documents (add/edit/delete paragraphs and headings)
- Convert text files (.txt) to Word documents
Excel Operations
- Create new Excel spreadsheets from JSON or CSV-like text
- Edit existing Excel files (update cells, ranges, add/delete rows, columns, sheets)
- Convert CSV files to Excel
PDF Operations
- Create new PDF files from text
- Convert Word documents to PDF files
Setup
This MCP server requires Python 3.10 or higher.
Installing via Smithery
To install Claude Document MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @alejandroBallesterosC/document-edit-mcp --client claude
Automatic Setup (Recommended)
Run the setup script to automatically install dependencies and configure for Claude Desktop:
git clone https://github.com/alejandroBallesterosC/document-edit-mcp
cd document-edit-mcp
./setup.sh
This will:
- Create a virtual environment
- Install required dependencies
- Configure the server for Claude Desktop
- Create necessary directories
Manual Setup
If you prefer to set up manually:
- Install dependencies:
cd claude-document-mcp
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e .
- Configure Claude Desktop:
Copy the claude_desktop_config.json file to:
- Mac:
~/Library/Application Support/Claude/ - Windows:
%APPDATA%\Claude\
- Restart Claude Desktop
Model Context Protocol Integration
This server follows the Model Context Protocol specification to provide document manipulation capabilities for Claude Desktop:
- Tools: Provides manipulations functions for Word, Excel, and PDF operations
- Resources: Provides information about capabilities
- Prompts: (none currently implemented)
API Reference
Microsoft Word
Create a Word Document
create_word_document(filepath: str, content: str) -> Dict
Edit a Word Document
edit_word_document(filepath: str, operations: List[Dict]) -> Dict
Convert TXT to Word
convert_txt_to_word(source_path: str, target_path: str) -> Dict
Excel
Create an Excel File
create_excel_file(filepath: str, content: str) -> Dict
Edit an Excel File
edit_excel_file(filepath: str, operations: List[Dict]) -> Dict
Convert CSV to Excel
convert_csv_to_excel(source_path: str, target_path: str) -> Dict
Create a PDF File
create_pdf_file(filepath: str, content: str) -> Dict
Convert Word to PDF
convert_word_to_pdf(source_path: str, target_path: str) -> Dict
Logs
The server logs all operations to both the console and a logs/document_mcp.log file for troubleshooting.
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Metadata
Release files for iflow-mcp_claude-document-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iflow_mcp_claude_document_mcp-0.1.0.tar.gz | 62.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iflow_mcp_claude_document_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.6 kB
Release files / iflow_mcp_claude_document_mcp-0.1.0.tar.gz
| Download URL | iflow_mcp_claude_document_mcp-0.1.0.tar.gz |
|---|---|
| Size | 62.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
515c4646a3f257977fb0b2b18d433248388432219da2c9084e55125af58b316c
|
|
BLAKE2b-256 checksum How to use checksums |
3a719fcad914ba5b7db4207f92330573a1ad746b679a80bf67a615014ca4f0d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / iflow_mcp_claude_document_mcp-0.1.0-py3-none-any.whl
| Download URL | iflow_mcp_claude_document_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08a4e7f14307101d37f6bc3f83579219c4c22ac9417e0e0e99652034665d6d70
|
|
BLAKE2b-256 checksum How to use checksums |
e68d1a21b7d46f26932b7472e33891e387df5fcedc6823c0adbfbd55fb5971b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|