Skip to main content
Glama
README.md
# 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

## 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`

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

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.

Maintenance

ActivityInactive
ResponsivenessNo issues