Skip to content

HelloWorld-Open/word-mcp-server

Repository files navigation

English | 中文

Word MCP Server

demo.mp4

CI License: MIT Node Platform

What it is

Let your AI agent directly control Microsoft Word. 80 tools covering the full workflow — create, edit, format, tables, charts, images, bookmarks, headers, footers, comments. Word runs as a visible window. Every change appears instantly. Ctrl+Z works end-to-end.

Requires a valid Microsoft Word license. Does not include, crack, or distribute Office software.

What it can do

Scenario Description
Reports Agent pulls data, writes, formats, and saves in one flow
Contracts Fill templates with variables, generate formal documents, export PDF
Papers Structured writing, insert tables and charts, format citations
CI testing Auto-create Word docs in pipelines for verification

What it works with

Ecosystem Agents
Claude Claude Desktop, Claude Code
OpenAI ChatGPT Desktop
IDE Cursor, VS Code / GitHub Copilot, Trae
AI Terminal OpenCode
More Any stdio MCP client

Why you need it

  • 80 tools — text, tables, charts, images, headers, footers, comments, bookmarks — precise control over every detail
  • Streaming Markdownstart → block → end in 3 steps. Instant preview. Auto style inheritance.
  • Auto cursor management — header/footer/table/marker operations reset cursor automatically. No manual position juggling needed.
  • Ctrl+Z friendly — COM API native operations. Agent messes up? Just undo.
  • Security built-in — path sanitization, macros disabled, Zod validation, rate limiting, audit logging

⚡ Quick Start

git clone https://github.com/HelloWorld-Open/word-mcp-server.git
cd word-mcp-server
npm install && npm run build

Requires MSVC Build Tools for the winax native addon. If it fails, install VS 2022 Build Tools ("Desktop development with C++" workload).

Add to your MCP client config:

{
  "mcpServers": {
    "word": {
      "command": "node",
      "args": ["path\\to\\word-mcp-server\\build\\parent.js"]
    }
  }
}

Then tell your agent: "Write a weekly report in Word."

📖 More

About

MCP server for Microsoft Word document manipulation via COM automation (Node.js/TypeScript, Windows)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors