A Model Context Protocol server that allows Claude Desktop to perform document operations on Microsoft Word, Excel, and PDF files including creation, editing, and format conversion.
A Model Context Protocol (MCP) server that allows Claude Desktop to perform document operations on Microsoft Word, Excel, and PDF files.
This MCP server requires Python 3.10 or higher.
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:
If you prefer to set up manually:
cd claude-document-mcp python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate pip install -e .
Copy the claude_desktop_config.json
file to:
~/Library/Application Support/Claude/
%APPDATA%\Claude\
This server follows the Model Context Protocol specification to provide document manipulation capabilities for Claude Desktop:
create_word_document(filepath: str, content: str) -> Dict
edit_word_document(filepath: str, operations: List[Dict]) -> Dict
convert_txt_to_word(source_path: str, target_path: str) -> Dict
create_excel_file(filepath: str, content: str) -> Dict
edit_excel_file(filepath: str, operations: List[Dict]) -> Dict
convert_csv_to_excel(source_path: str, target_path: str) -> Dict
create_pdf_file(filepath: str, content: str) -> Dict
convert_word_to_pdf(source_path: str, target_path: str) -> Dict
The server logs all operations to both the console and a logs/document_mcp.log
file for troubleshooting.
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!