Cover image
Try Now
2025-03-22

Mirror ofhttps://github.com/famano/mcp-server-office

3 years

Works with Finder

0

Github Watches

1

Github Forks

0

Github Stars

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

  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 (日本語)

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

使用方法

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

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • momi
  • Provides initial medical assessments and advice.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • deemkeen
  • control your mbot2 with a power combo: mqtt+mcp+llm

  • zhaoyunxing92
  • 本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。

  • justmywyw
  • Short and sweet example MCP server / client implementation for Tools, Resources and Prompts.

  • KasarLabs
  • Build powerful and secure AI Agents powered by Starknet.

    Reviews

    4 (1)
    Avatar
    user_ayzcKKoB
    2025-04-15

    I've been a loyal user of MCP Server Office by famano for several months now, and it has significantly streamlined my workflow. The user-friendly interface and robust features cater perfectly to my office needs. I highly recommend it to anyone looking for a reliable server solution. You can find out more here: https://mcp.so/server/mcp-server-office/famano