Word MCP
Click on "Deploy 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 generate a project status report with last week's metrics and next steps"
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
A Model Context Protocol (MCP) server for generating Microsoft Word documents (.docx) programmatically. Unlike typical MCP servers that act as gateways to APIs, this server acts as a Factory, converting AI-generated text and data into professional, downloadable files.
Features
Document Generation
generate_report: Create complete Word documents in one shot
Markdown Support: Automatically converts basic Markdown (bold, lists) into Word formatting
Rich Elements: Supports:
Headers (Levels 1-3)
Data Tables with custom headers
Text Paragraphs
File metadata (Titles, Authors)
Architecture
Local File Output: Saves files directly to your host machine
Dockerized Factory: Runs securely in a container with volume mapping
Stateless Operation: No complex databases required
Related MCP server: Word Document MCP Server
Simple Setup
1. Local Development
Install dependencies:
npm installCreate a
.envfile (Optional, defaults to./output):OUTPUT_DIR=./generated_reportsBuild and start:
npm run build npm start
2. Docker Usage
Critical Note: Because this server creates files, you must mount a volume to see the output.
Build the image:
docker build -t word-mcp .Run with Volume Mapping:
docker run --rm -i \ -v $(pwd)/generated_reports:/app/output \ word-mcp
MCP Client Integration
Configuration for Claude Desktop
To allow the AI to save files to your Windows "Documents" folder, you must map the volume in the configuration.
Open your config file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add this configuration:
{ "mcpServers": { "word-mcp": { "command": "docker", "args": [ "run", "--rm", "-i", "-v", "C:\\Users\\hp\\Documents\\mcp\\word-mcp\\generated_reports:/app/output", "word-mcp" ] } } }Note: Update the path
C:\\Users\\hp...to match your actual project location.
Using with Docker Compose
If you prefer docker-compose, use the included configuration:
# docker-compose.yml
services:
word-mcp:
build: .
volumes:
- ./generated_reports:/app/outputUsage Examples
Generate a Project Audit
The AI can call the tool with structured data to create a formatted report.
{
"filename": "Audit_Report_2024",
"title": "Q4 Security Audit",
"sections": [
{
"heading": "Executive Summary",
"content": "The audit was completed on **January 20th**. No critical vulnerabilities were found."
},
{
"heading": "Vulnerability Matrix",
"table": {
"headers": ["Severity", "Count", "Status"],
"rows": [
["High", "0", "Pass"],
["Medium", "2", "Investigating"]
]
}
}
]
}Troubleshooting
"I can't find the generated file"
Check Volume Mapping: Ensure your
claude_desktop_config.jsonhas the-vflag pointing to a valid folder on your host machine.Docker Permissions: The container runs as a non-root user (
appuser). Ensure your host folder allows writing (usually automatic on Windows, but requireschmodon Linux).
"Error: Output directory does not exist"
The server attempts to create the directory on startup. If using Docker, ensure the internal path /app/output is correctly mapped.
"Formatting looks wrong"
Currently, the Markdown parser supports bold (**text**) and basic paragraph splitting. Complex Markdown (like code blocks or nested lists) will be rendered as plain text in this version.
Development
Run in development mode:
npm run devWatch for changes:
npm run watchAvailable Tools
1 toolgenerate_reportC
Generates a complete Word document based on a structured content payload.
Inputs: filename (required), title (required), sections (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools, as there are no other tools to compare it against. The tool's purpose is clearly defined and distinct by default.
Since there is only a single tool, naming consistency is inherently perfect—there are no other tool names to be inconsistent with. The tool name 'generate_report' follows a clear verb_noun pattern.
A single tool is too few for a server named 'Word MCP', which implies broader document manipulation capabilities beyond just report generation. This minimal toolset feels thin and under-scoped for the apparent domain.
The tool surface is severely incomplete for a Word document server; it only covers report generation, missing essential operations like document editing, formatting, saving, or loading. This will likely cause agent failures when broader document tasks are needed.
Maintenance
Related MCP Connectors
Turn Markdown and AI answers into Word (.docx) with native equations, or into PDF.
Convert, create and edit Word, PowerPoint, Excel and PDF documents from any AI agent.
Use your own Word templates to convert Markdown → DOCX/PDF/HTML from any MCP-compatible AI.
Turns agent output into versioned web pages, PDFs, Word docs, spreadsheets and Markdown.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables creation and management of Word documents from markdown content, with support for multiple templates and conversion of chat conversations to formatted Word documents.-
- 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.1016 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.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to convert Markdown into styled Word (.docx) documents, with control over fonts, colors, and layout via parameters.MIT