Skip to main content

word-mcp-codemode-live

Code Mode MCP server for editing Microsoft Word documents. It exposes a compact discovery and execution interface over file-based DOCX tools and live Microsoft Word automation instead of loading the entire tool catalog into an agent context.

This project is currently beta software.

Install

Python 3.10 or newer is required. Run the published package in an isolated environment with uvx:

{
  "mcpServers": {
    "word": {
      "command": "uvx",
      "args": ["word-mcp-codemode-live"],
      "env": {
        "MCP_AUTHOR": "Your Name",
        "MCP_AUTHOR_INITIALS": "YN"
      }
    }
  }
}

To install the command permanently:

uv tool install word-mcp-codemode-live
word-mcp-codemode-live

Windows live editing installs pywin32; Word-window screenshots also install Pillow. Both dependencies are limited to Windows by environment markers.

Modes

  • Code Mode is the default. Clients see only search, get_schema, and execute, while the underlying Word tool catalog is discovered on demand.
  • MCP_TOOL_MODE=full exposes the complete catalog for development and diagnostics.
  • Cross-platform tools edit saved DOCX files with python-docx and OOXML.
  • Windows live tools automate an open Word instance through COM.
  • macOS live tools automate Microsoft Word through JavaScript for Automation.
  • Linux supports file-based DOCX tools; live Word automation is unavailable.

Transports

The server supports two transports:

  • stdio is the default and the normal choice for a local MCP client.
  • http is opt-in for clients that need a network endpoint.

HTTP binds to loopback by default. This server can read and modify local files and open Word documents, so do not expose it to an untrusted network without an authentication boundary.

Configuration

Variable Default Purpose
MCP_AUTHOR Author Author for comments and tracked changes
MCP_AUTHOR_INITIALS empty Comment author initials
MCP_TOOL_MODE code code for Code Mode or full for the raw catalog
MCP_TRANSPORT stdio stdio or http
MCP_HOST 127.0.0.1 HTTP bind address
MCP_PORT 8000 HTTP bind port
MCP_PATH /mcp HTTP endpoint path

Development

git clone https://github.com/chikingsley/word-mcp-codemode-live.git
cd word-mcp-codemode-live
uv sync

uv run ruff check .
uv run ruff format --check .
uv run ty check
uv run vulture
uv run pytest
uv build --no-sources

Source lives under src/word_mcp_codemode_live/. Tool implementations are grouped by domain in tools/, lower-level Word and OOXML operations live in core/, and registry.py defines the internal tool catalog used by Code Mode.

Acknowledgments

Forked from ykarapazar/word-mcp-live, which was built from GongRzhe/Office-Word-MCP-Server.

License

MIT. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

word_mcp_codemode_live-0.1.0.tar.gz (129.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

word_mcp_codemode_live-0.1.0-py3-none-any.whl (150.3 kB view details)

Uploaded Python 3

File details

Details for the file word_mcp_codemode_live-0.1.0.tar.gz.

File metadata

  • Download URL: word_mcp_codemode_live-0.1.0.tar.gz
  • Upload date:
  • Size: 129.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for word_mcp_codemode_live-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd00e70252943b0f9d48a19b6ec753605bd3dbd38f0e88dc75872ad3682c611c
MD5 1775468ddd32f86e6d6da00643a759ae
BLAKE2b-256 c5a9bf83b09e777efe880435ed4d6707a31f7e93c30e69099bdcf0304b364204

See more details on using hashes here.

File details

Details for the file word_mcp_codemode_live-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: word_mcp_codemode_live-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 150.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for word_mcp_codemode_live-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edb2422d58fbb35d0b3222b6f73b3accebee0eb7a1629b4a129d3982ce906ed0
MD5 bb89394d6ab540716d357d2b706d4a9f
BLAKE2b-256 cb24e7d1c77833e0cc79d304029787c454bdbd54c1a345bc6d7f7ec5946c2066

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.2

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page