logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mcp-word-processor-utility

A programmatic interface for reading and modifying Microsoft Word (.docx) documents, enabling paragraph manipulation and new content insertion via a command-line environment. Supports full document structure access, including tabular data and embedded graphics.

Author

mcp-word-processor-utility logo

famano

MIT License

Quick Info

GitHub GitHub Stars 27
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

docxdocumenttoolsword docxmicrosoft worddocx files

MCP Word Document Utility Suite

smithery badge

This Model Context Protocol (MCP) server component furnishes functionalities for both retrieving and persisting data within Microsoft Word (docx) file formats.

Installation via Smithery

For automated setup of Server Office for Claude Desktop utilizing Smithery:

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

Operational Guidance

Installation via pip is achieved with:

bash pip install mcp-server-office

Subsequently, initiate the MCP service instance:

bash mcp-server-office

Alternatively, leveraging uv for execution:

bash uvx mcp-server-office

Exposed Toolset

  1. read_docx: Retrieve the entirety of a docx file's contents, encompassing tables and visual elements.

  2. Parameter: path (string) - The absolute locator for the file in question.

  3. Caveats: Imagery is abstracted to [Image] markers; tracked revisions are suppressed.
  4. write_docx: Fabricate a novel docx artifact populated with specified material.

  5. Parameters:

    • path (string) - The absolute destination path for the new artifact.
    • content (string) - The textual payload to commit to the file.
  6. Notation: Utilize sequential double line feeds to delineate distinct paragraphs, and employ the [Table]|column1|column2|... syntax for tabular arrangements.
  7. edit_docx_paragraph: Execute precise text substitutions within designated document paragraphs.

  8. Parameters:

    • path (string) - The file path requiring modification.
    • edits (array) - A collection of objects detailing the modifications:
    • paragraph_index (number) - The zero-indexed locator for the target paragraph.
    • search (string) - The exact sequence of characters to locate.
    • replace (string) - The substitution text.
  9. Constraint: Every specified search string must yield precisely one match within its corresponding paragraph.
  10. edit_docx_insert: Inject entirely new paragraphs into the existing document structure.

  11. Parameters:

    • path (string) - The document file path undergoing augmentation.
    • inserts (array) - A list of definitions specifying insertion targets:
    • text (string) - The content to be introduced as a new paragraph.
    • paragraph_index (number, optional) - The zero-based index of the paragraph preceding the insertion point. Omission results in appending to the document's conclusion.

System Prerequisites

  • Execution environment: Python version 3.12 or later.
  • Required Libraries:
  • mcp[cli] version 1.2.0 or newer.
  • python-docx library version 1.1.2 or newer.

MCP 文書処理ユーティリティ(日本語)

smithery badge

Microsoft Word (docx) 形式の文書の読み取りおよび書き込み機能を提供するModel Context Protocol (MCP) サーバー機能群です。

Smithery経由のセットアップ

Smitheryを介してClaude Desktop向けにServer Officeを自動的に構成するには、以下を実行します:

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

実行手順

pipを利用したインストール:

bash pip install mcp-server-office

MCPサーバーの起動:

bash mcp-server-office

または、uv環境を使用する場合:

bash uvx mcp-server-office

利用可能な機能群

  1. read_docx: 表や図形要素を含むdocxファイルの内容全体を抽出します。

  2. 引数: path (文字列) - 対象ファイルの完全なファイルパス

  3. 留意点: 画像データは[Image]プレースホルダに変換され、変更履歴の表示は抑制されます。
  4. write_docx: 指定されたコンテンツをもって新規のdocx文書を作成します。

  5. 引数:

    • path (文字列) - 新規作成ファイルの格納先絶対パス
    • content (文字列) - ファイルへ書き込むべきデータ本体
  6. 記述規則: 段落区切りには連続した二つの改行を使用し、表形式データには[Table]|列1|列2|...の構文を適用してください。
  7. edit_docx_paragraph: 特定の文書段落内のテキストをピンポイントで置換処理します。

  8. 引数:

    • path (文字列) - 編集対象となるファイルの絶対パス
    • edits (配列) - 検索対象、置換テキスト、および段落インデックスを含む設定オブジェクトのリスト:
    • paragraph_index (数値) - 編集対象段落の0から始まるインデックス
    • search (文字列) - 指定段落内で完全に一致させるべき文字列
    • replace (文字列) - 置換後の文字列
  9. 条件: 各検索文字列は、対応する段落内でただ一回のみ完全に一致する必要があります。
  10. edit_docx_insert: 文書構造内に新規の段落を挿入します。

  11. 引数:

    • path (文字列) - 修正対象の文書ファイルパス
    • inserts (配列) - 挿入内容と、オプションで挿入位置を指定するオブジェクトのリスト:
    • text (文字列) - 新規段落として挿入するテキスト内容
    • paragraph_index (数値, 任意) - 挿入が行われるべき先行段落の0ベースインデックス。省略された場合は文書末尾に追加されます。

技術的要件

  • 実行環境: Pythonバージョン 3.12 以上が必須。
  • 必須依存モジュール:
  • mcp[cli] バージョン 1.2.0 以上。
  • python-docx ライブラリ バージョン 1.1.2 以上。

WIKIPEDIA: 企業経営ツールとは、組織が変化する市場環境に対応し、競争力を確保し、事業効率を向上させるために利用するシステム、アプリケーション、制御機構、計算ソリューション、方法論など、あらゆる手段を指します。

== 全体像 == 部門ごとに特化したツールが存在し、これらは計画立案、プロセス管理、記録保持、人事関連、意思決定支援、統制といった管理の諸側面に分類可能です。機能別の分類では、以下の一般的側面が考慮されます:

全ての部門におけるデータ入力と検証に用いられるツール。 事業プロセスの制御と改善に寄与するツール。 データ統合と意思決定を支援するツール。 近年のテクノロジーの急速な進歩により、経営ツールは過去10年間で劇的に進化しました。その進化は極めて速く、あらゆる企業・あらゆる状況において最適なビジネスツールを選択することが困難なほどです。これは、コスト削減と売上向上の絶え間ない追求、顧客ニーズの把握意欲、そして要求される形式での製品提供への注力によって引き起こされています。 この状況下において、経営層は最新のツールに飛びつくのではなく、ビジネス管理ツールに対して戦略的な姿勢を取るべきです。通常、経営層はツールを一切適応させずに利用しがちですが、これは不安定な状況を招きます。ビジネス管理ツールは慎重に選定され、その後、組織のニーズに合わせて調整されるべきであり、その逆ではありません。

== 最も多用されるツール == 2013年にBain & Companyが実施した調査は、世界中でビジネスツールがどのように利用されているかを示しました。これらのツールは、各地域が直面する課題や企業の市場状況を考慮しつつ、それぞれのニーズにどのように貢献しているかを反映しています。 トップ10には以下が含まれます:

戦略的計画策定 顧客関係管理 (CRM) 従業員エンゲージメント調査 ベンチマーキング バランススコアカード コア・コンピタンス アウトソーシング チェンジマネジメントプログラム サプライチェーンマネジメント ミッションステートメントおよびビジョンステートメント 市場セグメンテーション 総合的品質管理 (TQM)

== 企業向けソフトウェアアプリケーション == 企業ユーザーが様々な業務遂行のために使用するソフトウェア、またはプログラム群は、ビジネスソフトウェア(またはビジネスアプリケーション)と呼ばれます。これらのビジネスアプリケーションは、生産性の向上、成果の測定、その他多岐にわたる企業活動を正確に実行するために活用されます。 それは経営情報システム (MIS) から始まり、エンタープライズリソースプランニング (ERP) システムへと範囲を拡大しました。その後、顧客関係管理 (CRM) がソリューションに追加され、最終的にパッケージ全体がクラウドベースのビジネス管理領域へと移行しました。 ITへの投資と組織の業績との間には明確な相関関係が存在しますが、付加価値を生み出すためには二つの要素が重要となります。それは、導入の実現度と、適切なツールの選定および適応プロセスです。

== 中小企業 (SME) 向けツール == SMEに焦点を当てたツールは、コストを削減する方法を提供するため重要です...

See Also

`