DocxProcessor MCP server

Enables creation, editing, and manipulation of Microsoft Word documents with features for text formatting, table management, content search/replace, and document styling using Python and python-docx.
Back to servers
Provider
MeterLong
Release date
Mar 18, 2025
Language
Python
Stats
94 stars

The Docx MCP Service provides a Word document processing solution that integrates with Cursor's AI assistant. It allows you to manipulate Word documents using natural language commands, handling everything from document creation to advanced formatting and content management.

Installation

Before using the Docx MCP Service, ensure you have the necessary dependencies installed:

  1. Make sure you have Python 3.10 or higher installed on your system
  2. Install the required Python packages:
pip3 install python-docx mcp

Setting Up in Cursor

To configure the Docx MCP Service as an MCP server in Cursor:

  1. Open Cursor and navigate to Settings
  2. Locate the Features > MCP Servers section
  3. Click Add new MCP server
  4. Enter the following details:
    • Name: MCP_DOCX
    • Type: Command
    • Command: python3 /path/to/MCP_dox/server.py (replace with your actual path)
  5. Click Add to complete the setup

Using the Service

Once configured, you can interact with Word documents using natural language commands in Cursor's AI assistant. Here are some examples:

  • "Create a new Word document and save it to the desktop"
  • "Add a level 3 heading"
  • "Insert a 3x4 table and fill it with data"
  • "Set the second paragraph to bold and center-aligned"

Available Operations

Document Management

  • Create new documents
  • Open existing documents
  • Save documents (with various options)

Content Operations

  • Add paragraphs and headings
  • Add and manipulate tables
  • Insert images
  • Edit existing content
  • Delete content

Formatting

  • Set font styles (bold, italic, underline)
  • Change font colors and sizes
  • Adjust text alignment
  • Control page layout and margins

Tables

  • Create tables with specified dimensions
  • Add or delete rows
  • Edit cell content
  • Merge cells
  • Split tables

Layout Controls

  • Add page breaks
  • Set page margins
  • Control document formatting

Content Searching and Editing

  • Search for text within documents
  • Find and replace text
  • Replace content in specific sections
  • Edit sections by keyword

Troubleshooting

If you encounter issues with the service:

  1. Verify Python 3.10+ is properly installed
  2. Confirm the python-docx and mcp packages are installed correctly
  3. Check that the server path in Cursor settings is accurate
  4. Try restarting Cursor
  5. Use absolute paths to avoid parsing issues, especially with non-English characters

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later