docx-mcp-server
Click on "Deploy 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., "@docx-mcp-servercreate a new document with a heading 'Quarterly Review' and a table of sales data"
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 Server 📄
A Model Context Protocol (MCP) server that enables AI agents to read, edit, and create Microsoft Word documents (.docx). It supports rich text, tables, and images, and provides flexible deployment options (Standalone Executable, Python/UVX, SSE/Remote).
✨ Features
Document Management: Create new documents or load existing ones.
Content Reading: Read document structure, paragraphs, tables, and images.
Rich Editing:
Add stylized paragraphs (Bold, Italic handled via styles).
Add Headings (Levels 1-9).
Insert Images (from local path or Base64).
Create Tables with custom data.
Image Extraction: Extract images from docx files to local disk.
Multi-Mode Support:
StdIO: Standard integration for local MCP clients (e.g., Claude Desktop).
SSE: Server-Sent Events support for remote or URL-based connections.
Related MCP server: Spire.Doc MCP Server
🚀 Quick Start
Option 1: Standalone Explorer (No Python Required)
Download the latest release and run the executable directly.
Get
docx-mcp-server.exefrom the Releases page.Run in terminal or configure in your MCP client.
Option 2: Using UVX (Requires PyPI Publication)
⚠️ Note: This package is not currently published to PyPI by the author. To use
uvx, you must fork and publish it yourself, or install locally.
If published to PyPI, you could run:
uvx docx-mcp-serverOption 3: Development / Local Source
# Clone the repository
git clone https://github.com/OkamiFeng/docx-mcp-server.git
cd docx-mcp-server
# Run with uv
uv run docx-mcp-server🛠️ Configuration
Claude Desktop
Using UVX (If published to PyPI)
{
"mcpServers": {
"docx": {
"command": "uvx",
"args": ["docx-mcp-server"]
}
}
}Windows (using .exe)
{
"mcpServers": {
"docx": {
"command": "C:/Path/To/docx-mcp-server.exe",
"args": []
}
}
}Windows (using Python/UV)
{
"mcpServers": {
"docx": {
"command": "uv",
"args": ["run", "--directory", "C:/Projects/docx-mcp-server", "docx-mcp-server"]
}
}
}Remote / SSE Configuration
To run the server in HTTP mode (accessible via URL):
# Using Exe
docx-mcp-server.exe --transport sse --port 8000
# Using Python
uv run server.py --transport sse --port 8000SSE Endpoint: http://localhost:8000/sse
📚 Tools Available
Tool Name | Description |
| Create a fresh empty document. |
| Load an existing |
| Get a simplified JSON-like view of paragraphs and content counts. |
| Add text paragraph with optional style. |
| Add a heading (Level 1-9). |
| Insert a table with specified rows, cols, and data. |
| Insert an image from a file path or Base64 string. |
| Extract all images from the loaded document to a folder. |
| Save changes (overwrite or new path). |
🏗️ Development
Clone:
git clone https://github.com/OkamiFeng/docx-mcp-server.gitInstall:
uv syncorpip install -r requirements.txtBuild Exe:
pyinstaller --name docx-mcp-server --onefile server.py --icon="icon.png" --collect-all docx
📄 License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Collaborative word processor you can use with your agent.
Create real Word .docx files from your AI chat: proposals, quotes, contracts, statements of work.
Real Word and Excel for agents: open your .docx/.xlsm, read, propose, apply, get it back intact.
Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceEnables 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.32MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to create, read, modify, and convert Word documents without Microsoft Word, supporting 18 tools for document operations, paragraph manipulation, table management, formatting, and conversion between multiple formats including PDF, HTML, and Markdown.6MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to directly read, edit, and manipulate Word documents, supporting image and table operations, paragraph editing, and search/replace.202MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to create, edit, and extract data from Microsoft Word documents programmatically, supporting document creation, content editing, table manipulation, parameter extraction, and template generation.1MIT