docx-mcp-server
Enables AI agents to read, edit, and create Microsoft Word documents (.docx) with support for rich text, tables, and images, deployable locally or via SSE.
README
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-server
Option 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 8000
SSE Endpoint: http://localhost:8000/sse
📚 Tools Available
| Tool Name | Description |
|---|---|
create_new_document |
Create a fresh empty document. |
load_document |
Load an existing .docx file from a path. |
get_document_structure |
Get a simplified JSON-like view of paragraphs and content counts. |
add_paragraph |
Add text paragraph with optional style. |
add_heading |
Add a heading (Level 1-9). |
add_table |
Insert a table with specified rows, cols, and data. |
add_image |
Insert an image from a file path or Base64 string. |
extract_images |
Extract all images from the loaded document to a folder. |
save_document |
Save changes (overwrite or new path). |
🏗️ Development
- Clone:
git clone https://github.com/OkamiFeng/docx-mcp-server.git - Install:
uv syncorpip install -r requirements.txt - Build Exe:
pyinstaller --name docx-mcp-server --onefile server.py --icon="icon.png" --collect-all docx
📄 License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.