Doc/docx-MCP
Integrates with Python's docx library to provide Word document processing capabilities including creating, editing, and managing documents, with support for formatting, tables, images, and layout controls.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Doc/docx-MCPadd a table with 3 columns and 5 rows to my quarterly report"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Docx MCP Service
A Docx document processing service based on the FastMCP library, supporting the creation, editing, and management of Word documents using AI assistants in Cursor.
Features
Complete Document Operations: Support for creating, opening, saving documents, as well as adding, editing, and deleting content
Formatting: Support for setting fonts, colors, sizes, alignment, and other formatting options
Table Processing: Support for creating, editing, merging, and splitting table cells
Image Insertion: Support for inserting images and setting their sizes
Layout Control: Support for setting page margins, adding page breaks, and other layout elements
Query Functions: Support for retrieving document information, paragraph content, and table data
Convenient Editing: Support for find and replace functionality
Section Editing: Support for replacing content in specific sections while preserving original formatting and styles
Related MCP server: MCP-OPENAPI-DOCX
Installation Dependencies
Ensure Python 3.10+ is installed, then install the following dependencies:
pip3 install python-docx mcpUsage
Using as an MCP Service in Cursor
Open Cursor and go to Settings
Find the
Features > MCP ServerssectionClick
Add new MCP serverFill in the following information:
Name: MCP_DOCX
Type: Command
Command:
python3 /path/to/MCP_dox/server.py(replace with the actual path to yourserver.py)
Click
Addto add the service
After adding, you can use natural language to operate Word documents in Cursor's AI assistant, for example:
"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"
Supported Operations
The service supports the following operations:
Document Management:
create_document,open_document,save_documentContent Addition:
add_paragraph,add_heading,add_table,add_pictureContent Editing:
edit_paragraph,delete_paragraph,delete_textTable Operations:
add_table_row,delete_table_row,edit_table_cell,merge_table_cells,split_tableLayout Control:
add_page_break,set_page_marginsQuery Functions:
get_document_info,get_paragraphs,get_tables,search_textFile Operations:
create_document,open_document,save_document,save_as_document,create_document_copySection Editing:
replace_section,edit_section_by_keywordOther Functions:
find_and_replace,search_and_replace(with preview functionality)
How It Works
The service uses the Python-docx library to process Word documents
It implements the MCP protocol through the FastMCP library to communicate with AI assistants
It processes requests and returns formatted responses
It supports complete error handling and status reporting
Typography Capabilities
The service has good typography understanding capabilities:
Text Hierarchy: Support for heading levels (1-9) and paragraph organization
Page Layout: Support for page margin settings
Visual Elements: Support for font styles (bold, italic, underline, color) and alignment
Table Layout: Support for creating tables, merging cells, splitting tables, and setting table formats
Pagination Control: Support for adding page breaks
Development Notes
server.py- Core implementation of the MCP service using the FastMCP library
Troubleshooting
If you encounter problems in Cursor, try the following steps:
Ensure Python 3.10+ is correctly installed
Ensure the python-docx and mcp libraries are correctly installed
Check if the server path is correct
Restart the Cursor application
Notes
Ensure the python-docx and mcp libraries are correctly installed
Ensure Chinese characters in paths can be correctly processed
Using absolute paths can avoid path parsing issues
License
MIT License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -licenseBquality-maintenanceEnables AI assistants to create, read, and manipulate Microsoft Word documents with comprehensive formatting, table creation, content management, and document protection capabilities. Supports advanced operations like merging documents, PDF conversion, and rich text formatting through a standardized interface.Last updated32
- Alicense-qualityDmaintenanceEnterprise-grade document editing and management server that enables AI-powered operations on Microsoft Word DOCX files, including creating, editing, formatting, and exporting documents through both MCP protocol and RESTful API.Last updated3MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to create and manipulate Microsoft Word documents programmatically with support for rich text formatting, tables, lists, headings, and find-and-replace operations.Last updated1046MIT
- AlicenseAqualityDmaintenanceMCP server for Word document (.docx) creation and manipulation — the production-grade document automation tool for AI agents.Last updated926MIT
Related MCP Connectors
Use your own Word templates to convert Markdown → DOCX/PDF/HTML from any MCP-compatible AI.
AI document editing for agents: draft, edit, export .docx/PDF. 37 MCP tools; agent self-signup.
Generate PDF/DOCX/XLSX/PPTX from templates+JSON. Convert Office/HTML/MD to PDF. Universal templating
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MeterLong/MCP-Doc'
If you have feedback or need assistance with the MCP directory API, please join our Discord server