办公
STDIO微软Word文档读写工具服务器
微软Word文档读写工具服务器
A Model Context Protocol (MCP) server providing tools to read/write Microsoft Word (docx) files.
To install Server Office for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @famano/mcp-server-office --client claude
Install with pip:
pip install mcp-server-office
Then, start the MCP server:
mcp-server-office
Or using uv, just:
uvx mcp-server-office
read_docx: Read complete contents of a docx file including tables and images.
path (string) - Absolute path to the target filewrite_docx: Create a new docx file with given content.
path (string) - Absolute path to target filecontent (string) - Content to write to the fileedit_docx_paragraph: Make text replacements in specified paragraphs of a docx file.
path (string) - Absolute path to file to editedits (array) - List of dictionaries containing search/replace text and paragraph index
paragraph_index (number) - 0-based index of the paragraph to editsearch (string) - Text to find within the specified paragraphreplace (string) - Text to replace withedit_docx_insert: Insert new paragraphs into a docx file.
path (string) - Absolute path to file to editinserts (array) - List of dictionaries containing text and optional paragraph index
text (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.Microsoft Word (docx) ファイルの読み書きを提供するModel Context Protocol (MCP) サーバーです。
Smithery経由でClaude DesktopにServer Officeを自動インストールするには:
npx -y @smithery/cli install @famano/mcp-server-office --client claude
pipを使用してインストール:
pip install mcp-server-office
MCPサーバーの起動:
mcp-server-office
または、uvを使う場合:
uvx mcp-server-office
read_docx: docxファイルの内容を表やイメージを含めて完全に読み取ります。
path (文字列) - 対象ファイルの絶対パスwrite_docx: 新しいdocxファイルを指定された内容で作成します。
path (文字列) - 作成するファイルの絶対パスcontent (文字列) - ファイルに書き込む内容edit_docx_paragraph: docxファイル内の指定された段落のテキストを置換します。
path (文字列) - 編集するファイルの絶対パスedits (配列) - 検索/置換テキストと段落インデックスを含む辞書のリスト
paragraph_index (数値) - 編集する段落の0ベースのインデックスsearch (文字列) - 指定された段落内で検索するテキストreplace (文字列) - 置換するテキストedit_docx_insert: docxファイルに新しい段落を挿入します。
path (文字列) - 編集するファイルの絶対パスinserts (配列) - テキストとオプションの段落インデックスを含む辞書のリスト
text (文字列) - 新しい段落として挿入するテキストparagraph_index (数値, オプション) - 挿入する位置の段落の0ベースのインデックス。指定しない場合は末尾に挿入されます。