local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Allows reading, writing, and editing Microsoft Word (docx) files, including parsing tables and images, making text replacements in specific paragraphs, and inserting new paragraphs at specified positions.
MCP Server Office
A Model Context Protocol (MCP) server providing tools to read/write Microsoft Word (docx) files.
Usage
Install with pip:
Then, start the MCP server:
Or using uv, just:
Available Tools
read_docx
: Read complete contents of a docx file including tables and images.- Input:
path
(string) - Absolute path to the target file - Note: Images are converted to [Image] placeholders, and track changes are not shown
- Input:
write_docx
: Create a new docx file with given content.- Input:
path
(string) - Absolute path to target filecontent
(string) - Content to write to the file
- Note: Use double line breaks for new paragraphs, and [Table] tag with | separators for tables
- Input:
edit_docx_paragraph
: Make text replacements in specified paragraphs of a docx file.- Input:
path
(string) - Absolute path to file to editedits
(array) - List of dictionaries containing search/replace text and paragraph indexparagraph_index
(number) - 0-based index of the paragraph to editsearch
(string) - Text to find within the specified paragraphreplace
(string) - Text to replace with
- Note: Each search string must match exactly once within the specified paragraph
- Input:
edit_docx_insert
: Insert new paragraphs into a docx file.- Input:
path
(string) - Absolute path to file to editinserts
(array) - List of dictionaries containing text and optional paragraph indextext
(string) - Text to insert as a new paragraphparagraph_index
(number, optional) - 0-based index of the paragraph before which to insert. If not specified, insert at the end.
- Input:
Requirements
- Python >= 3.12
- Dependencies:
- mcp[cli] >= 1.2.0
- python-docx >= 1.1.2
MCP Server Office (Japanese)
A Model Context Protocol (MCP) server that provides reading and writing Microsoft Word (docx) files.
How to use
Install using pip:
Start the MCP server:
Or, using uv:
Available Tools
read_docx
: Reads the complete content of a docx file, including tables and images.- Input:
path
(string) - absolute path of the target file - Note: Images are converted to a placeholder called [Image] and revision history is not displayed.
- Input:
write_docx
: Creates a new docx file with the specified content.- input:
path
(string) - The absolute path of the file to create.content
(string) - the content to write to the file
- Note: Paragraphs are separated by two line breaks, tables use the [Table] tag and | separator
- input:
edit_docx_paragraph
: Replaces the text of a specified paragraph in a docx file.- input:
path
(string) - The absolute path of the file to edit.edits
(array) - List of dictionaries containing search/replace text and paragraph indexesparagraph_index
(number) – the 0-based index of the paragraph to edit.search
(string) – The text to search for in the specified paragraph.replace
(string) – The replacement text.
- Note: Each search string must match exactly once in a given paragraph.
- input:
edit_docx_insert
: Inserts a new paragraph into a docx file.- input:
path
(string) - The absolute path of the file to edit.inserts
(array) - A list of dictionaries containing the text and optional paragraph indexes.text
(string) – the text to insert as a new paragraphparagraph_index
(number, optional) - 0-based index of the paragraph to insert at. If not specified it will insert at the end.
- input:
Requirements
- Python >= 3.12
- Dependent packages:
- mcp[cli] >= 1.2.0
- python-docx >= 1.1.2
You must be authenticated.
A server providing tools to read, write, and edit Microsoft Word (docx) files through the Model Context Protocol, allowing operations like complete document reading, content creation, paragraph targeted editing, and text insertion.