word-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., "@word-mcp-servercreate a new document and insert a table with 2 columns and 3 rows"
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.
Word MCP Server
MCP server that gives Claude Agent full control over Microsoft Word via COM automation. The Word window stays visible so you can watch the agent work in real time.
Requirements
Windows 10 or later
Microsoft Word 2016 or later (desktop version)
Python 3.10+
Related MCP server: Word Document MCP Server
Installation
cd word-mcp-server
pip install -e .Claude Code Configuration
Add to settings.local.json:
{
"mcpServers": {
"word": {
"command": "python",
"args": ["-m", "word_mcp"],
"type": "local"
}
}
}Restart Claude Code.
Enabling VBA Support (L3)
For the word_execute_vba tool to work:
Open Word
File → Options → Trust Center → Trust Center Settings
Macro Settings → Check "Trust access to the VBA project object model"
Restart Word
Available Tools
L1 — Document Lifecycle (6 tools)
Tool | Description |
| Open a .docx/.doc file |
| Create a new document |
| Save the active document |
| Export to PDF |
| Close the active document |
| Get document info |
L2 — Atomic Operations (15 tools)
Tool | Description |
| Insert text at cursor/start/end |
| Set font, size, bold, italic, color |
| Set alignment, spacing, indent |
| Insert a table with data |
| Style a table |
| Insert an image file |
| Insert a page break |
| Set margins, orientation, paper size |
| Set header/footer with page numbers |
| Find and replace text |
| Read document text |
| Get user-selected text |
| Select a range (visible highlight) |
| Apply Word built-in style |
| Bullet or numbered list |
L3 — VBA Executor (1 tool)
Tool | Description |
| Execute arbitrary VBA code |
Example: Ask Claude to Create a Resume
User: 帮我创建一份简历,包含个人信息表和工作经历
Agent will:
1. word_create() — new document
2. word_insert_text("张三的简历") — title
3. word_format_text(bold=true) — format title
4. word_insert_table(rows, cols, data) — info table
5. word_format_table(header_row=true) — style table
6. word_insert_text("工作经历") — section heading
7. word_apply_style("Heading 2") — heading style
8. word_save("简历.docx") — save
You watch it happen in the Word window.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
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/wpz666hhh/word-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server