Skip to main content

MCP Server Office

smithery badge

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:

npx -y @smithery/cli install @famano/mcp-server-office --client claude

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

  1. 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
  2. write_docx: Create a new docx file with given content.

    • Input:
      • path (string) - Absolute path to target file
      • content (string) - Content to write to the file
    • Note: Use double line breaks for new paragraphs, and [Table] tag with | separators for tables
  3. edit_docx_paragraph: Make text replacements in specified paragraphs of a docx file.

    • Input:
      • path (string) - Absolute path to file to edit
      • edits (array) - List of dictionaries containing search/replace text and paragraph index
        • paragraph_index (number) - 0-based index of the paragraph to edit
        • search (string) - Text to find within the specified paragraph
        • replace (string) - Text to replace with
    • Note: Each search string must match exactly once within the specified paragraph
  4. edit_docx_insert: Insert new paragraphs into a docx file.

    • Input:
      • path (string) - Absolute path to file to edit
      • inserts (array) - List of dictionaries containing text and optional paragraph index
        • text (string) - Text to insert as a new paragraph
        • paragraph_index (number, optional) - 0-based index of the paragraph before which to insert. If not specified, insert at the end.

Requirements

  • Python >= 3.12
  • Dependencies:
    • mcp[cli] >= 1.2.0
    • python-docx >= 1.1.2

MCP Server Office (日本語)

smithery badge

Microsoft Word (docx) ファイルの読み書きを提供するModel Context Protocol (MCP) サーバーです。

Smitheryによるインストール

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

利用可能なツール

  1. read_docx: docxファイルの内容を表やイメージを含めて完全に読み取ります。

    • 入力: path (文字列) - 対象ファイルの絶対パス
    • 注意: 画像は[Image]というプレースホルダーに変換され、変更履歴は表示されません
  2. write_docx: 新しいdocxファイルを指定された内容で作成します。

    • 入力:
      • path (文字列) - 作成するファイルの絶対パス
      • content (文字列) - ファイルに書き込む内容
    • 注意: 段落は2つの改行で区切り、表は[Table]タグと|区切りを使用します
  3. edit_docx_paragraph: docxファイル内の指定された段落のテキストを置換します。

    • 入力:
      • path (文字列) - 編集するファイルの絶対パス
      • edits (配列) - 検索/置換テキストと段落インデックスを含む辞書のリスト
        • paragraph_index (数値) - 編集する段落の0ベースのインデックス
        • search (文字列) - 指定された段落内で検索するテキスト
        • replace (文字列) - 置換するテキスト
    • 注意: 各検索文字列は指定された段落内で一度だけマッチする必要があります
  4. edit_docx_insert: docxファイルに新しい段落を挿入します。

    • 入力:
      • path (文字列) - 編集するファイルの絶対パス
      • inserts (配列) - テキストとオプションの段落インデックスを含む辞書のリスト
        • text (文字列) - 新しい段落として挿入するテキスト
        • paragraph_index (数値, オプション) - 挿入する位置の段落の0ベースのインデックス。指定しない場合は末尾に挿入されます。

動作要件

  • Python >= 3.12
  • 依存パッケージ:
    • mcp[cli] >= 1.2.0
    • python-docx >= 1.1.2

Metadata

Release files for iflow-mcp_mcp-server-office 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_mcp-server-office 0.2.0
File Size Uploaded
iflow_mcp_mcp_server_office-0.2.0.tar.gz 26.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_mcp-server-office 0.2.0
File Interpreter ABI Platform
iflow_mcp_mcp_server_office-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 36.9 kB

Release files / iflow_mcp_mcp_server_office-0.2.0.tar.gz

Download URL iflow_mcp_mcp_server_office-0.2.0.tar.gz
Size 26.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dab5c931a6e29e31abac5de3ec2edd769c7c752d78fc8865e8ac070d50990fac
BLAKE2b-256 checksum
How to use checksums
8a56671cb785020f29e50ae3d20eb9d46aa6addb81297bfc98f7aef42160f01e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.8

Release files / iflow_mcp_mcp_server_office-0.2.0-py3-none-any.whl

Download URL iflow_mcp_mcp_server_office-0.2.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4ce44114224c2ad895f05c6d3fe39560e6e80c50c00fa24cf66cd35852329fa
BLAKE2b-256 checksum
How to use checksums
0bd22b2742adfc87a86138d46874c2f3c8f0187846c5b411db958d7b5da89db4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.8

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page