Skip to main content
Glama

Word Document MCP Server

A Model Context Protocol (MCP) server that enables AI assistants like Claude to create and manipulate Microsoft Word documents (.docx files) programmatically.

Features

  • ๐ŸŽจ Rich Text Formatting - Bold, italic, underline, colors, fonts, and sizes

  • ๐Ÿ“‘ Document Structure - Headings (5 levels), paragraphs, lists, and tables

  • ๐Ÿ” Find & Replace - Text search and replacement with regex support

  • ๐Ÿ“Š Tables - Create formatted tables with headers and data rows

  • ๐Ÿ’พ Document Management - In-memory tracking with persistent file saving

Related MCP server: docx-editor-mcp

Usage with Claude Desktop

Add this to your Claude Desktop configuration:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "word-document": {
      "command": "npx",
      "args": ["-y", "word-document-mcp-server"]
    }
  }
}

Available Tools

Document Creation

  • create_document - Create a new Word document

  • save_document - Save document to disk

Content Addition

  • add_heading - Add headings (levels 1-5)

  • add_paragraph - Add formatted paragraphs

  • add_bullet_list - Create bulleted lists

  • add_numbered_list - Create numbered lists

  • add_table - Insert tables with headers

Text Operations

  • find_and_replace - Search and replace text

  • apply_text_formatting - Format specific text

  • get_document_structure - View document outline

License

MIT

Author

Bibash Kattel

Available Tools

10 tools
add_bullet_listC

Add a bulleted list to the document

Inputs: docId (required), items (required).

add_headingC

Add a heading to the document at specified level (1-5)

Inputs: docId (required), text (required), level (required).

add_numbered_listC

Add a numbered list to the document

Inputs: docId (required), items (required).

add_paragraphC

Add a paragraph of text to the document

Inputs: docId (required), text (required), formatting.

add_tableC

Add a table to the document

Inputs: docId (required), headers (required), rows (required).

apply_text_formattingC

Apply formatting to specific text in the document

Inputs: docId (required), searchText (required), formatting (required).

create_documentC

Create a new Word document with optional title

Inputs: filepath (required), title.

find_and_replaceC

Find and replace text in the document

Inputs: docId (required), findText (required), replaceText (required), replaceAll.

get_document_structureC

Get the structure/outline of the document (headings and paragraphs)

Inputs: docId (required).

save_documentC

Save the document to disk

Inputs: docId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    TDQS

    B3.4/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific document operations, such as adding different elements (bullet list, heading, table), applying formatting, or managing the document lifecycle. There is no overlap that would cause confusionโ€”for example, add_bullet_list and add_numbered_list are clearly differentiated by list type, and apply_text_formatting is separate from content addition tools.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case, such as add_paragraph, apply_text_formatting, and save_document. This uniformity makes the set predictable and easy for agents to understand and navigate without any deviations in style or convention.

    Tool Count5/5

    With 10 tools, the server is well-scoped for a Word document manipulation domain, covering core operations like creation, editing, formatting, and saving. Each tool earns its place by addressing a specific need without being excessive or insufficient for typical document workflows.

    Completeness4/5

    The tool set provides comprehensive coverage for basic document creation and editing, including CRUD-like operations (create, add, save) and utilities like find_and_replace. A minor gap is the lack of tools for deleting or modifying existing elements (e.g., remove_paragraph or edit_table), but agents can work around this using available tools for most tasks.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      Not graded
      maintenance
      Enables AI assistants to create, read, and manipulate Microsoft Word documents with comprehensive formatting, table creation, content management, and document protection capabilities. Supports advanced operations like merging documents, PDF conversion, and rich text formatting through a standardized interface.
      32
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      Enables AI assistants to create, edit, and extract data from Microsoft Word documents programmatically, supporting document creation, content editing, table manipulation, parameter extraction, and template generation.
      1
      MIT