MCP Server Office
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, targeted paragraph editing, and text insertion.
famano
Tools
read_docx
Read complete contents of a docx file including tables and images.Use this tool when you want to read file endswith '.docx'.Paragraphs are separated with two line breaks.This tool convert images into placeholder [Image].'--- Paragraph [number] ---' is indicator of each paragraph.
edit_docx_paragraph
Make text replacements in specified paragraphs of a docx file. Accepts a list of edits with paragraph index and search/replace pairs. Each edit operates on a single paragraph and preserves the formatting of the first run. Returns a git-style diff showing the changes made. Only works within allowed directories.
write_docx
Create a new docx file with given content.Editing exisiting docx file with this tool is not recomended.
edit_docx_insert
Insert new paragraphs into a docx file. Accepts a list of inserts with text and optional paragraph index. Each insert creates a new paragraph at the specified position. If paragraph_index is not specified, the paragraph is added at the end. When multiple inserts target the same paragraph_index, they are inserted in order. Returns a git-style diff showing the changes made.
README
MCP Server Office
A Model Context Protocol (MCP) server providing tools to read/write Microsoft Word (docx) files.
Usage
Install with pip:
pip install mcp-server-office
Then, start the MCP server:
mcp-server-office
Or using uv, just:
uvx mcp-server-office
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 (日本語)
Microsoft Word (docx) ファイルの読み書きを提供するModel Context Protocol (MCP) サーバーです。
使用方法
pipを使用してインストール:
pip install mcp-server-office
MCPサーバーの起動:
mcp-server-office
または、uvを使う場合:
uvx mcp-server-office
利用可能なツール
-
read_docx
: docxファイルの内容を表やイメージを含めて完全に読み取ります。- 入力:
path
(文字列) - 対象ファイルの絶対パス - 注意: 画像は[Image]というプレースホルダーに変換され、変更履歴は表示されません
- 入力:
-
write_docx
: 新しいdocxファイルを指定された内容で作成します。- 入力:
path
(文字列) - 作成するファイルの絶対パスcontent
(文字列) - ファイルに書き込む内容
- 注意: 段落は2つの改行で区切り、表は[Table]タグと|区切りを使用します
- 入力:
-
edit_docx_paragraph
: docxファイル内の指定された段落のテキストを置換します。- 入力:
path
(文字列) - 編集するファイルの絶対パスedits
(配列) - 検索/置換テキストと段落インデックスを含む辞書のリストparagraph_index
(数値) - 編集する段落の0ベースのインデックスsearch
(文字列) - 指定された段落内で検索するテキストreplace
(文字列) - 置換するテキスト
- 注意: 各検索文字列は指定された段落内で一度だけマッチする必要があります
- 入力:
-
edit_docx_insert
: docxファイルに新しい段落を挿入します。- 入力:
path
(文字列) - 編集するファイルの絶対パスinserts
(配列) - テキストとオプションの段落インデックスを含む辞書のリストtext
(文字列) - 新しい段落として挿入するテキストparagraph_index
(数値, オプション) - 挿入する位置の段落の0ベースのインデックス。指定しない場合は末尾に挿入されます。
- 入力:
動作要件
- Python >= 3.12
- 依存パッケージ:
- mcp[cli] >= 1.2.0
- python-docx >= 1.1.2
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor

Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.