home / mcp / word document mcp server
Provides programmatic Word document creation, editing, and formatting via MCP, including rich formatting, structure, and text operations.
Configuration
View docs{
"mcpServers": {
"bibash44-word-documet-mcp-server": {
"command": "npx",
"args": [
"-y",
"word-document-mcp-server"
]
}
}
}You can run a Word Document MCP Server to create, edit, and manage Word (.docx) documents through an AI assistant. It provides rich formatting, document structure, text operations, and in-memory tracking with the option to save changes to disk, enabling seamless programmatic document workflows.
You interact with the Word Document MCP Server through an MCP client by starting the local server and issuing commands to create and modify Word documents. Typical workflows include creating a document, adding headings and paragraphs, inserting lists and tables, applying text formatting, and saving the final document to disk. You can also perform search-and-replace operations and view the document structure to navigate and adjust content.
Prerequisites: you need Node.js and npm installed on your machine. If you do not have them, install Node.js from the official site which also provides npm.
Install and run the Word Document MCP Server using the following command. This starts the local MCP server that your MCP client can connect to.
npx -y word-document-mcp-serverConfigure your MCP client to point at the local server. For Claude Desktop, add the MCP server entry to your configuration with the provided path specific to your operating system. The client will use the local stdio server to perform document operations.
{
"mcpServers": {
"word_document": {
"command": "npx",
"args": ["-y", "word-document-mcp-server"]
}
}
}Key capabilities you can leverage include creating documents, adding headings (levels 1–5), inserting paragraphs, bulleted and numbered lists, and tables with headers. You can also search and replace text with optional regex support, apply formatting to specific text, and inspect the document structure to review its outline.
Documents are tracked in memory during runtime and can be saved to disk to persist changes. Use the save operation to persist the final document. The server exposes a straightforward set of tools for document creation, content insertion, text operations, and structure access.
MIT license. Author: Bibash Kattel.
Create a new Word document.
Save the current document to disk.
Add headings ranging from levels 1 to 5 to structure the document.
Insert a formatted paragraph into the document.
Insert a bulleted list with multiple items.
Insert a numbered list with multiple items.
Insert a table with headers and data rows.
Search for text and replace it, with optional regex support.
Apply formatting to specified text ranges.
Retrieve the document outline and structure.