Docx MCP Service
by MeterLong
A Docx document processing service based on the FastMCP library. It supports the creation, editing, and management of Word documents using AI assistants in Cursor.
Last updated: N/A
What is Docx MCP Service?
This is an MCP (Meta-Command Protocol) service that enables AI assistants, specifically in Cursor, to interact with and manipulate Docx (Word) documents. It leverages the python-docx and FastMCP libraries to provide a comprehensive set of document processing capabilities.
How to use Docx MCP Service?
To use the service, you need to add it as an MCP server in Cursor's settings. Provide the server name (MCP_DOCX), type (Command), and the command to execute the server script (e.g., python3 /path/to/MCP_dox/server.py
). After adding the service, you can use natural language commands in Cursor to interact with Word documents.
Key features of Docx MCP Service
Complete Document Operations (create, open, save, edit)
Formatting (fonts, colors, sizes, alignment)
Table Processing (create, edit, merge, split)
Image Insertion (insert images and set sizes)
Layout Control (page margins, page breaks)
Query Functions (document info, paragraph content, table data)
Convenient Editing (find and replace)
Section Editing (replace content while preserving formatting)
Use cases of Docx MCP Service
Automated document generation
AI-assisted document editing
Programmatic manipulation of Word documents
Integration with AI workflows in Cursor
FAQ from Docx MCP Service
What Python version is required?
What Python version is required?
Python 3.10 or higher is required.
What libraries do I need to install?
What libraries do I need to install?
You need to install python-docx and mcp using pip: pip3 install python-docx mcp
How do I add the service to Cursor?
How do I add the service to Cursor?
Go to Cursor Settings > Features > MCP Servers and click 'Add new MCP server'. Fill in the required information.
What if I encounter problems in Cursor?
What if I encounter problems in Cursor?
Ensure Python is installed, the libraries are installed, the server path is correct, and try restarting Cursor.
Can I use Chinese characters in file paths?
Can I use Chinese characters in file paths?
Ensure Chinese characters in paths can be correctly processed. Using absolute paths can avoid path parsing issues.