docx-mcp-server
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., "@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.
🚀 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/OkamiFeng/docx-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server