Document Operations (Word, Excel, PDF)

by alejandroballesterosc

12 stars
599 downloads
Not rated
GitHub

About

Enables document operations on Microsoft Word, Excel, and PDF files through FastMCP and Python tools for creating, editing, converting, and manipulating files without switching applications

Details

Author
alejandroballesterosc
Repository
alejandroBallesterosC/document-edit-mcp
GitHub stars
12
Downloads
599
License
MIT License
Categories
Productivity, Developer Tools, Design, Workplace, File Management, Infrastructure, Frontend, AI, Automation, Other

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Document Operations (Word, Excel, PDF)
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @highlight/mcp-server

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

This MCP server requires Python 3.10 or higher.

To install Claude Document MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @alejandroBallesterosC/document-edit-mcp --client claude

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

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 .

2. Configure Claude Desktop:

Copy the claude_desktop_config.json file to:
- Mac: ~/Library/Application Support/Claude/
- Windows: %APPDATA%\Claude\

3. Restart Claude Desktop

create_word_document

Create a new Word document. Parameters: filepath (string), content (string)

edit_word_document

Edit an existing Word document. Parameters: filepath (string), operations (List of dictionaries)

convert_txt_to_word

Convert a TXT file to a Word document. Parameters: source_path (string), target_path (string)

create_excel_file

Create a new Excel spreadsheet. Parameters: filepath (string), content (string)

edit_excel_file

Edit an existing Excel file. Parameters: filepath (string), operations (List of dictionaries)

convert_csv_to_excel

Convert a CSV file to an Excel spreadsheet. Parameters: source_path (string), target_path (string)

create_pdf_file

Create a new PDF file. Parameters: filepath (string), content (string)

convert_word_to_pdf

Convert a Word document to a PDF file. Parameters: source_path (string), target_path (string)

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "document operations (word, excel, pdf)": {
            "env": {},
            "args": [
                "-y",
                "@highlight/mcp-server"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Macos

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Windows

{
    "env": [],
    "args": [
        "/c",
        "npx",
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "cmd"
}

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
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.