MCP-Doc

MCP.Pizza Chef: MeterLong

Twenty-three tools open a .docx file and work on it in place: adding headings and paragraphs, building and reshaping tables, merging cells, setting page margins, inserting page breaks, finding and replacing text, and rewriting a whole section under a heading while keeping the original fonts, sizes, and colors. Despite the feature list, there is no way to insert a picture, because that tool was never written. It handles one open document at a time, needs no account, and runs on Windows, Mac, and Linux.

Unmaintained · no code changes since March 2025
Files/PDF
Writing

Use This MCP server To

Draft a new Word document and save it to my desktop Replace one section of a report and keep its formatting Add a table of results to an existing document Find and replace a term throughout a long document Delete a paragraph I no longer need Add a heading and body text in the right style Change the page margins before printing

README

Docx MCP Service

English | 中文

smithery badge

A Docx document processing service based on the FastMCP library, supporting the creation, editing, and management of Word documents using AI assistants in Cursor.

Features

  • Complete Document Operations: Support for creating, opening, saving documents, as well as adding, editing, and deleting content
  • Formatting: Support for setting fonts, colors, sizes, alignment, and other formatting options
  • Table Processing: Support for creating, editing, merging, and splitting table cells
  • Image Insertion: Support for inserting images and setting their sizes
  • Layout Control: Support for setting page margins, adding page breaks, and other layout elements
  • Query Functions: Support for retrieving document information, paragraph content, and table data
  • Convenient Editing: Support for find and replace functionality
  • Section Editing: Support for replacing content in specific sections while preserving original formatting and styles

Installation Dependencies

Ensure Python 3.10+ is installed, then install the following dependencies:

pip3 install python-docx mcp

Usage

Using as an MCP Service in Cursor

  1. Open Cursor and go to Settings
  2. Find the Features > MCP Servers section
  3. Click Add new MCP server
  4. Fill in the following information:
    • Name: MCP_DOCX
    • Type: Command
    • Command: python3 /path/to/MCP_dox/server.py (replace with the actual path to your server.py)
  5. Click Add to add the service

After adding, you can use natural language to operate Word documents in Cursor's AI assistant, for example:

  • "Create a new Word document and save it to the desktop"
  • "Add a level 3 heading"
  • "Insert a 3x4 table and fill it with data"
  • "Set the second paragraph to bold and center-aligned"

MCP-Doc FAQ

Can I use this to rewrite one section of a report without touching the rest?
Yes, and it is the strongest thing here. It finds the heading you name, swaps the text underneath, and reapplies the original font, size, bold and color to the new words.
Can it add pictures to a document?
No. The README lists image insertion as a feature, but no such tool exists in the code. Text, tables, headings, and page layout only.
Do I need to sign up for a key?
No. It edits files sitting on your own computer and never contacts an outside service.
Which apps does it work in?
The setup steps are written for Cursor, and it runs in any other app that supports MCP servers. A Smithery listing is also available.
Does it work on a Mac?
Yes. It is plain Python with no platform-specific code, so Windows, Mac, and Linux all work.
How hard is setup?
You download the project, install two Python packages, and point your app at the server file by its full path. Python 3.10 or newer is required.
Can it work on several documents at once?
No. It keeps a single document open, so you open a file, make your changes, and save before moving on to the next one.
Is it still being updated?
The last code change was March 2025, so it has been quiet for well over a year.