home / mcp / word document mcp server

Word Document MCP Server

Provides programmatic Word document creation, editing, and formatting via MCP, including rich formatting, structure, and text operations.

Installation
Add the following to your MCP client configuration file.

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.

How to use

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.

How to install

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-server

Configure 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"]
    }
  }
}

Configuration and usage notes

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.

Additional notes

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.

License and authorship

MIT license. Author: Bibash Kattel.

Available tools

create_document

Create a new Word document.

save_document

Save the current document to disk.

add_heading

Add headings ranging from levels 1 to 5 to structure the document.

add_paragraph

Insert a formatted paragraph into the document.

add_bullet_list

Insert a bulleted list with multiple items.

add_numbered_list

Insert a numbered list with multiple items.

add_table

Insert a table with headers and data rows.

find_and_replace

Search for text and replace it, with optional regex support.

apply_text_formatting

Apply formatting to specified text ranges.

get_document_structure

Retrieve the document outline and structure.