Word Live MCP Server
A Windows MCP server that attaches to a running Microsoft Word instance via COM automation and exposes 20 tools for reading, editing, formatting, and exporting documents — live on screen.
README
Word Live MCP Server
A Windows MCP (Model Context Protocol) server that attaches to a running Microsoft Word instance via COM automation and exposes 20 tools for reading, editing, formatting, and exporting documents — live on screen.
The Word counterpart to the PowerPoint Live MCP.
How It Works
The server attaches to the running Word.Application instance via win32com (pywin32). Because it talks to the live COM object, every edit appears instantly on the Word canvas — no file round-trip, no reopen.
Tools (20)
| Category | Tool | Description |
|---|---|---|
| Discovery | list_documents |
List all open Word documents |
get_active_document |
Details of active document (name, path, word/para count) | |
| Read | get_document_content |
Paginated paragraph listing with styles |
get_paragraph |
Full text + formatting of one paragraph | |
get_table |
All cell content from a table | |
get_selection |
Current cursor/selection state | |
find_text |
Full-text search with paragraph locations | |
| Edit | set_paragraph_text |
Replace text of a paragraph |
insert_paragraph_after |
Insert new paragraph after a given index | |
delete_paragraph |
Delete a paragraph | |
replace_text |
Find-and-replace throughout document | |
| Format | set_font |
Font size/bold/italic/color/name |
set_highlight |
Yellow/red/green/none highlight | |
set_paragraph_style |
Apply named style (Heading 1, Normal, etc.) | |
| Tables | set_table_cell |
Set cell text by (row, column) |
insert_table |
Insert a new table | |
| Export | export_pdf |
Export document to PDF |
export_page_image |
Export single page as PNG (via PDF render) | |
| Other | update_toc |
Update all Tables of Contents |
save_document |
Save the document |
Requirements
- Windows + Microsoft Word installed
- Python 3.11+ with these packages:
Runpip install pywin32 mcp pymupdfpython Scripts/pywin32_postinstall.py -installonce after installing pywin32.
Installation
Hermes Agent
Add to ~/.hermes/config.yaml:
mcp_servers:
word:
command: "C:/Users/You/AppData/Local/Programs/Python/Python313/python.exe"
args: ["C:/path/to/word-live-mcp/server.py"]
connect_timeout: 30
enabled: true
timeout: 90
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"word": {
"command": "python",
"args": ["C:/path/to/word-live-mcp/server.py"]
}
}
}
Generic MCP Client
The server communicates over stdio using the MCP protocol. Any MCP-compatible client can connect by spawning the server process.
Usage
Word must be running with a document open. Tools operate on the active document by default; pass doc="filename.docx" to target a specific open document.
Paragraph and table indices are 1-indexed (matching what you see in Word).
Example workflows
- "Read me paragraph 5" →
get_paragraph(paragraph_index=5) - "Find all mentions of 'confidential'" →
find_text(find="confidential") - "Replace 'old term' with 'new term'" →
replace_text(find="old term", replace="new term") - "Highlight paragraph 20 in yellow" →
set_highlight(paragraph_index=20, color="yellow") - "Show me what page 3 looks like" →
export_page_image(page=3) - "Set paragraph 10 font to bold red" →
set_font(paragraph_index=10, bold=True, color_rgb="FF0000")
Architecture
- COM session per call: Each tool call re-initialises COM (
pythoncom.CoInitialize) and dispatchesWord.Application, which transparently reconnects to the running instance. appparameter injection: Theword_tooldecorator injects the COM app handle as the first argument, but strips it from the public signature so FastMCP doesn't expose it.- Graceful errors: All exceptions are caught and returned as
{"error": "...", "traceback": "..."}JSON dicts — never crash the server. - 1-indexed: Paragraph and table indices match what the user sees in Word.
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.