Skip to main content

MseeP.ai Security Assessment Badge

Claude Document MCP Server

smithery badge

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:

  1. Create a virtual environment
  2. Install required dependencies
  3. Configure the server for Claude Desktop
  4. Create necessary directories

Manual Setup

If you prefer to set up manually:

  1. Install dependencies:
cd claude-document-mcp
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -e .
  1. Configure Claude Desktop:

Copy the claude_desktop_config.json file to:

  • Mac: ~/Library/Application Support/Claude/
  • Windows: %APPDATA%\Claude\
  1. 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

PDF

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_claude_document_mcp-0.1.0.tar.gz (62.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_claude_document_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_claude_document_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 62.3 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for iflow_mcp_claude_document_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 515c4646a3f257977fb0b2b18d433248388432219da2c9084e55125af58b316c
MD5 d27fa349e18acb5d9361058e12fa082b
BLAKE2b-256 3a719fcad914ba5b7db4207f92330573a1ad746b679a80bf67a615014ca4f0d7

See more details on using hashes here.

File details

Details for the file iflow_mcp_claude_document_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_claude_document_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for iflow_mcp_claude_document_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08a4e7f14307101d37f6bc3f83579219c4c22ac9417e0e0e99652034665d6d70
MD5 3828df3e026478280bb0dfaec51ca977
BLAKE2b-256 e68d1a21b7d46f26932b7472e33891e387df5fcedc6823c0adbfbd55fb5971b0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page