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.
Installing via Smithery
To install Server Office for Claude Desktop automatically via Smithery :
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.
Installation by Smithery
To automatically install Server Office on Claude Desktop via Smithery :
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.
local-only server
The server can only run on the client's local machine because it depends on local resources.
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.
Related Resources
Related MCP Servers
- -securityAlicense-qualityA server that provides document processing capabilities using the Model Context Protocol, allowing conversion of documents to markdown, extraction of tables, and processing of document images.Last updated -6PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server that allows Claude Desktop to perform document operations on Microsoft Word, Excel, and PDF files including creation, editing, and format conversion.Last updated -9Python
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to create, read, edit, and format Microsoft Word documents through standardized tools and resources.Last updated -1688PythonMIT License
- -securityAlicense-qualityAn MCP server that enables programmatic interaction with Microsoft Word documents on Windows via COM Interop, allowing operations like document creation, text manipulation, formatting, and table management.Last updated -8TypeScriptMIT License