productivity

Office Word

gongrzhe

by gongrzhe

Edit PDF and DOC files online with Office Word. Access advanced text formatting, table editing, and image scaling in you

Provides a bridge to Microsoft Word for creating and modifying documents with features like text formatting, table manipulation, image scaling, and style management

github stars

1.7K

0 commentsdiscussion

Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.

Direct Word document manipulationRich formatting capabilities10+ document operations

best for

  • / Document automation workflows
  • / Content creation and formatting
  • / Report generation from data
  • / Document analysis and processing

capabilities

  • / Create and copy Word documents
  • / Extract text and document structure
  • / Insert formatted headers and paragraphs
  • / Create tables and numbered lists
  • / Apply text formatting and styles
  • / Analyze document metadata and properties

what it does

Provides a bridge to Microsoft Word for creating and modifying documents programmatically. Enables AI assistants to perform document operations like text insertion, formatting, and structure analysis.

about

Office Word is a community-built MCP server published by gongrzhe that provides AI assistants with tools and capabilities via the Model Context Protocol. Edit PDF and DOC files online with Office Word. Access advanced text formatting, table editing, and image scaling in you It is categorized under productivity. This server exposes 54 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install Office Word in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Office Word is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

Office-Word-MCP-Server

smithery badge

A Model Context Protocol (MCP) server for creating, reading, and manipulating Microsoft Word documents. This server enables AI assistants to work with Word documents through a standardized interface, providing rich document editing capabilities.

<a href="https://glama.ai/mcp/servers/@GongRzhe/Office-Word-MCP-Server"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@GongRzhe/Office-Word-MCP-Server/badge" alt="Office Word Server MCP server" /> </a>

Overview

Office-Word-MCP-Server implements the Model Context Protocol to expose Word document operations as tools and resources. It serves as a bridge between AI assistants and Microsoft Word documents, allowing for document creation, content addition, formatting, and analysis.

The server features a modular architecture that separates concerns into core functionality, tools, and utilities, making it highly maintainable and extensible for future enhancements.

Example

Pormpt

image

Output

image

Features

Document Management

  • Create new Word documents with metadata
  • Extract text and analyze document structure
  • View document properties and statistics
  • List available documents in a directory
  • Create copies of existing documents
  • Merge multiple documents into a single document
  • Convert Word documents to PDF format

Content Creation

  • Add headings with different levels and direct formatting (font, size, bold, italic, borders)
  • Insert paragraphs with optional styling and direct formatting (font, size, bold, italic, color)
  • Create tables with custom data
  • Add images with proportional scaling
  • Insert page breaks
  • Insert bulleted and numbered lists with proper XML formatting
  • Add footnotes and endnotes to documents
  • Convert footnotes to endnotes
  • Customize footnote and endnote styling
  • Create professional table layouts for technical documentation
  • Design callout boxes and formatted content for instructional materials
  • Build structured data tables for business reports with consistent styling
  • Insert content relative to existing text or paragraph indices

Rich Text Formatting

  • Format specific text sections (bold, italic, underline)
  • Change text color and font properties
  • Apply custom styles to text elements
  • Search and replace text throughout documents
  • Individual cell text formatting within tables
  • Multiple formatting combinations for enhanced visual appeal
  • Font customization with family and size control
  • Direct formatting during content creation (paragraphs and headings)
  • Reduce function calls by combining content creation with formatting
  • Add section header borders for visual separation

Table Formatting

  • Format tables with borders and styles
  • Create header rows with distinct formatting
  • Apply cell shading and custom borders
  • Structure tables for better readability
  • Individual cell background shading with color support
  • Alternating row colors for improved readability
  • Enhanced header row highlighting with custom colors
  • Cell text formatting with bold, italic, underline, color, font size, and font family
  • Comprehensive color support with named colors and hex color codes
  • Cell padding management with independent control of all sides
  • Cell alignment (horizontal and vertical positioning)
  • Cell merging (horizontal, vertical, and rectangular areas)
  • Column width management with multiple units (points, percentage, auto-fit)
  • Auto-fit capabilities for dynamic column sizing
  • Professional callout table support with icon cells and styled content

Advanced Document Manipulation

  • Delete paragraphs
  • Insert content relative to specific text or paragraph indices
  • Insert bulleted and numbered lists with proper XML numbering structure
  • Insert headers and paragraphs before or after target locations
  • Create custom document styles
  • Apply consistent formatting throughout documents
  • Format specific ranges of text with detailed control
  • Flexible padding units with support for points and percentage-based measurements
  • Clear, readable table presentation with proper alignment and spacing

Document Protection

  • Add password protection to documents
  • Implement restricted editing with editable sections
  • Add digital signatures to documents
  • Verify document authenticity and integrity

Comment Extraction

  • Extract all comments from a document
  • Filter comments by author
  • Get comments for specific paragraphs
  • Access comment metadata (author, date, text)

Installation

Installing via Smithery

To install Office Word Document Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @GongRzhe/Office-Word-MCP-Server --client claude

Prerequisites

  • Python 3.8 or higher
  • pip package manager

Basic Installation

# Clone the repository
git clone https://github.com/GongRzhe/Office-Word-MCP-Server.git
cd Office-Word-MCP-Server

# Install dependencies
pip install -r requirements.txt

Using the Setup Script

Alternatively, you can use the provided setup script which handles:

  • Checking prerequisites
  • Setting up a virtual environment
  • Installing dependencies
  • Generating MCP configuration
python setup_mcp.py

Usage with Claude for Desktop

Configuration

Method 1: After Local Installation

  1. After installation, add the server to your Claude for Desktop configuration file:
{
  "mcpServers": {
    "word-document-server": {
      "command": "python",
      "args": ["/path/to/word_mcp_server.py"]
    }
  }
}

Method 2: Without Installation (Using uvx)

  1. You can also configure Claude for Desktop to use the server without local installation by using the uvx package manager:
{
  "mcpServers": {
    "word-document-server": {
      "command": "uvx",
      "args": ["--from", "office-word-mcp-server", "word_mcp_server"]
    }
  }
}
  1. Configuration file locations:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Restart Claude for Desktop to load the configuration.

Example Operations

Once configured, you can ask Claude to perform operations like:

  • "Create a new document called 'report.docx' with a title page"
  • "Add a heading and three paragraphs to my document"
  • "Add my name in Helvetica 36pt bold at the top of the document"
  • "Add a section heading 'Summary' in Helvetica 14pt bold with a bottom border"
  • "Add a paragraph in Times New Roman 14pt with italic blue text"
  • "Insert a bulleted list after the paragraph containing 'Introduction'"
  • "Insert a numbered list with items: 'First step', 'Second step', 'Third step'"
  • "Add bullet points after the 'Summary' heading"
  • "Insert a 4x4 table with sales data"
  • "Format the word 'important' in paragraph 2 to be bold and red"
  • "Search and replace all instances of 'old term' with 'new term'"
  • "Create a custom style for section headings"
  • "Apply formatting to the table in my document"
  • "Extract all comments from my document"
  • "Show me all comments by John Doe"
  • "Get comments for paragraph 3"
  • "Make the text in table cell (1,2) bold and blue with 14pt font"
  • "Add 10 points of padding to all sides of the header cells"
  • "Create a callout table with a blue checkmark icon and white text"
  • "Set the first column width to 50 points and auto-fit the remaining columns"
  • "Apply alternating row colors to make the table more readable"

API Reference

Document Creation and Properties

create_document(filename, title=None, author=None)
get_document_info(filename)
get_document_text(filename)
get_document_outline(filename)
list_available_documents(directory=".")
copy_document(source_filename, destination_filename=None)
convert_to_pdf(filename, output_filename=None)

Content Addition

add_heading(filename, text, level=1, font_name=None, font_size=None,
            bold=None, italic=None, border_bottom=False)
add_paragraph(filename, text, style=None, font_name=None, font_size=None,
              bold=None, italic=None, color=None)
add_table(filename, rows, cols, data=None)
add_picture(filename, image_path, width=None)
add_page_break(filename)

Advanced Content Manipulation

# Insert content relative to existing text or paragraph index
insert_header_near_text(filename, target_text=None, header_title=None,
                       position='after', header_style='Heading 1',
                       target_paragraph_index=None)

insert_line_or_paragraph_near_text(filename, target_text=None, line_text=None,
                                   position='after', line_style=None,
                                   target_paragraph_index=None)

# Insert bulleted or numbered lists with proper XML formatting
insert_numbered_list_near_text(filename, target_text=None, list_items=None,
                              position='after', target_paragraph_index=None,
                              bullet_type='bullet')
# bullet_type options:
#   'bullet' - Creates bulleted list with bullets (•)
#   'number' - Creates numbered list (1, 2, 3, ...)

Content Extraction

get_document_text(filename)
get_paragraph_text_from_document(filename, paragraph_index)
find_text_in_document(filename, text_to_find, match_case=True, whole_word=False)

Text Formatting

format_text(filename, paragraph_index, start_pos, end_pos, bold=None,
            italic=None, underline=None, color=None, font_size=No

---

FAQ

What is the Office Word MCP server?
Office Word is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Office Word?
This profile displays 63 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.7 out of 5—verify behavior in your own environment before production use.

Use Cases

Extended AI Capabilities

Add new capabilities to Claude beyond text generation

Example

Access external data sources, execute code, interact with tools and services

Transform Claude from chatbot to action-taking agent

Context Enhancement

Provide Claude with access to relevant context and data

Example

Load project documentation, access knowledge bases, query databases

Get more accurate, context-aware responses

Workflow Automation

Automate multi-step workflows combining AI and external tools

Example

Research → Summarize → Create document → Send notification

Complete complex tasks end-to-end without manual steps

Implementation Guide

Prerequisites

  • Claude Desktop 0.7.0+ or Cursor IDE with MCP support
  • Basic understanding of MCP architecture and capabilities
  • Access credentials for integrated services (if required)
  • Willingness to experiment and iterate on configuration

Time Estimate

15-60 minutes depending on server complexity

Installation Steps

  1. 1.Install MCP server: npm install -g [package-name] or via GitHub
  2. 2.Add server configuration to ~/.claude/mcp.json
  3. 3.Provide required credentials and configuration
  4. 4.Restart Claude Desktop to load new server
  5. 5.Test basic functionality with simple prompts
  6. 6.Explore capabilities and experiment with use cases
  7. 7.Document successful patterns for reuse

Troubleshooting

  • MCP server not loading: Check config syntax, verify installation
  • Connection errors: Check network, firewall, credentials
  • Feature not working: Read server docs, check required parameters
  • Performance issues: Monitor resource usage, check for network latency
  • Conflicts with other servers: Check port assignments, namespace collisions

Best Practices

✓ Do

  • +Read server documentation thoroughly before setup
  • +Start with simple use cases to validate functionality
  • +Test in non-production environment first
  • +Monitor resource usage and performance
  • +Keep servers updated for bug fixes and new features
  • +Document configuration for team members
  • +Use environment variables for sensitive configuration

✗ Don't

  • Don't grant overly permissive access to MCP servers
  • Don't skip reading security considerations in docs
  • Don't expose sensitive data without proper controls
  • Don't run untrusted MCP servers without code review
  • Don't ignore error messages—investigate root cause

💡 Pro Tips

  • Combine multiple MCP servers for powerful workflows
  • Create custom MCP servers for your specific needs
  • Share successful configurations with team
  • Use MCP inspector for debugging
  • Join MCP community for tips and troubleshooting

Technical Details

Architecture

Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.

Protocols

  • Model Context Protocol (MCP)
  • JSON-RPC 2.0
  • stdio or HTTP transport

Compatibility

  • Claude Desktop
  • Cursor IDE
  • Custom MCP clients

When to Use This

✓ Use When

Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.

✗ Avoid When

Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.

Integration

  • Tool composition: Chain multiple MCP tools in workflows
  • Context augmentation: Provide AI with relevant external data
  • Action delegation: Let AI execute tasks on external systems
  • Bidirectional sync: Keep AI context and external systems in sync

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.

List & Promote Your MCP Server

Share your MCP server with the developer community

GET_STARTED →
MCP server reviews

Ratings

4.763 reviews
  • Ama Taylor· Dec 20, 2024

    Office Word is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Dhruvi Jain· Dec 16, 2024

    I recommend Office Word for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Pratham Ware· Dec 16, 2024

    We wired Office Word into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Noor Haddad· Dec 16, 2024

    Office Word is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Sakura Kapoor· Nov 27, 2024

    Office Word is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Ava Anderson· Nov 15, 2024

    We wired Office Word into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Zaid Mensah· Nov 15, 2024

    According to our notes, Office Word benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Ava Abebe· Nov 11, 2024

    We evaluated Office Word against two servers with overlapping tools; this profile had the clearer scope statement.

  • Oshnikdeep· Nov 7, 2024

    Strong directory entry: Office Word surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Yusuf Bansal· Nov 7, 2024

    Useful MCP listing: Office Word is the kind of server we cite when onboarding engineers to host + tool permissions.

showing 1-10 of 63

1 / 7