UNPKG

word-document-mcp-server

Version:

MCP server for AI-powered Word document management

56 lines (40 loc) 1.59 kB
# 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