MCP Word Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Word Server π
A Model Context Protocol (MCP) server that gives AI agents full control over Microsoft Word documents. Create, read, edit, format, and manage .docx files programmatically through a standardized MCP interface.
β¨ Features
Document Management
Create new Word documents
Open existing
.docxfilesSave / Save As documents
Close documents
List open documents
Content Operations
Read full document text or specific paragraphs
Add paragraphs, headings, page breaks
Insert text at specific positions
Delete paragraphs
Replace text (find & replace)
Search text within documents
Formatting
Font styling β bold, italic, underline, strikethrough, color, size, font name
Paragraph alignment β left, center, right, justify
Paragraph spacing β before/after spacing, line spacing
Heading levels β H1 through H9
Tables
Create tables with custom rows and columns
Read table data
Add rows/columns to existing tables
Write to specific cells
Style tables with built-in Word table styles
Images
Insert images into documents
Resize images (width & height in inches)
Headers & Footers
Add/Edit headers and footers
Different first page headers/footers
Styles & Templates
Apply built-in Word styles
List available styles
Export
Export to PDF
Export to HTML
Page Setup
Set page margins, orientation, paper size
Live Word Application Control (COM)
Launch Microsoft Word application
Control Word via COM automation on Windows
Works offline with
python-docxfor.docxfile manipulation
Related MCP server: Word Document MCP Server
π Quick Start
Prerequisites
Python 3.10+
Microsoft Word (for COM automation features, Windows only)
python-docxandpywin32libraries
Installation
# Clone the repository
git clone https://github.com/YOUR_USERNAME/MCP_Word.git
cd MCP_Word
# Install dependencies
pip install -r requirements.txtRunning the MCP Server
# Run with stdio transport (default for MCP)
python src/server.pyConfiguration for Claude Desktop / Antigravity
Add to your MCP configuration:
{
"mcpServers": {
"word": {
"command": "python",
"args": ["src/server.py"],
"cwd": "/path/to/MCP_Word"
}
}
}π Project Structure
MCP_Word/
βββ src/
β βββ server.py # MCP server entry point
β βββ word_engine.py # Core Word manipulation engine
β βββ tools/
β β βββ __init__.py
β β βββ document_tools.py # Document CRUD operations
β β βββ content_tools.py # Text/content manipulation
β β βββ format_tools.py # Formatting operations
β β βββ table_tools.py # Table operations
β β βββ image_tools.py # Image operations
β β βββ header_footer_tools.py # Headers & footers
β β βββ style_tools.py # Style management
β β βββ export_tools.py # Export (PDF, HTML)
β β βββ page_setup_tools.py # Page layout settings
β βββ utils/
β βββ __init__.py
β βββ helpers.py # Shared utilities
βββ tests/
β βββ test_word_engine.py
βββ requirements.txt
βββ .gitignore
βββ LICENSE
βββ README.mdπ Available MCP Tools
Tool | Description |
| Create a new blank Word document |
| Open an existing .docx file |
| Save the current document |
| Save document to a new path |
| Close a document |
| List all open documents |
| Read all text from a document |
| Read a specific paragraph |
| Add a new paragraph |
| Add a heading (level 1-9) |
| Insert text at a position |
| Delete a specific paragraph |
| Find and replace text |
| Search for text occurrences |
| Apply font formatting |
| Set paragraph alignment |
| Set paragraph spacing |
| Create a new table |
| Read table data |
| Add a row to a table |
| Add a column to a table |
| Write to a table cell |
| Apply a table style |
| Insert an image |
| Add/edit document header |
| Add/edit document footer |
| Apply a Word style |
| List available styles |
| Export document to PDF |
| Export document to HTML |
| Set page margins |
| Set page orientation |
| Set paper size |
| Insert a page break |
π License
MIT License β see LICENSE for details.
π€ Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Convert, create and edit Word, PowerPoint, Excel and PDF documents from any AI agent.
Create Word .docx files from sections or markdown, fill templates, and read text from a .docx.
Create and manage documents, spreadsheets, and presentations from your AI assistant.
Real Word and Excel for agents: open your .docx/.xlsm, read, propose, apply, get it back intact.
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
- 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.1013 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to read, edit, and create Microsoft Word documents (.docx) with support for rich text, tables, and images, deployable locally or via SSE.3MIT
- 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