Claude Document MCP Server

クロードドキュメントMCPサーバー

Claude Desktop が Microsoft Word、Excel、および PDF ファイルに対してドキュメント操作を実行できるようにする Model Context Protocol (MCP) サーバー。

特徴

Microsoft Wordの操作

  • テキストから新しいWord文書を作成する
  • 既存の Word 文書を編集する (段落と見出しを追加/編集/削除)
  • テキストファイル(.txt)をWord文書に変換する

Excel操作

  • JSON または CSV のようなテキストから新しい Excel スプレッドシートを作成する
  • 既存の Excel ファイルを編集する (セル、範囲の更新、行、列、シートの追加/削除)
  • CSVファイルをExcelに変換する

PDF操作

  • テキストから新しいPDFファイルを作成する
  • Word文書をPDFファイルに変換する

設定

この MCP サーバーには Python 3.10 以上が必要です。

自動セットアップ(推奨)

セットアップ スクリプトを実行して依存関係を自動的にインストールし、Claude Desktop を構成します。

git clone https://github.com/alejandroBallesterosC/document-edit-mcp cd document-edit-mcp ./setup.sh

これにより、次のようになります。

  1. 仮想環境を作成する
  2. 必要な依存関係をインストールする
  3. Claude Desktop 用にサーバーを構成する
  4. 必要なディレクトリを作成する

手動設定

手動で設定する場合:

  1. 依存関係をインストールします:
cd claude-document-mcp python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate pip install -e .
  1. Claude デスクトップを設定します。

claude_desktop_config.jsonファイルを次の場所にコピーします。

  • Mac : ~/Library/Application Support/Claude/
  • Windows : %APPDATA%\Claude\
  1. Claudeデスクトップを再起動します

モデルコンテキストプロトコル統合

このサーバーは、モデル コンテキスト プロトコル仕様に準拠し、Claude Desktop のドキュメント操作機能を提供します。

  • ツール: Word、Excel、PDFの操作機能を提供します
  • リソース: 機能に関する情報を提供します
  • プロンプト: (現在実装されていません)

APIリファレンス

マイクロソフトワード

Word文書を作成する

create_word_document(filepath: str, content: str) -> Dict

Word文書を編集する

edit_word_document(filepath: str, operations: List[Dict]) -> Dict

TXTをWordに変換する

convert_txt_to_word(source_path: str, target_path: str) -> Dict

エクセル

Excelファイルを作成する

create_excel_file(filepath: str, content: str) -> Dict

Excelファイルを編集する

edit_excel_file(filepath: str, operations: List[Dict]) -> Dict

CSVをExcelに変換する

convert_csv_to_excel(source_path: str, target_path: str) -> Dict

PDF

PDFファイルを作成する

create_pdf_file(filepath: str, content: str) -> Dict

WordをPDFに変換する

convert_word_to_pdf(source_path: str, target_path: str) -> Dict

ログ

サーバーは、トラブルシューティングのために、すべての操作をコンソールとlogs/document_mcp.logファイルの両方に記録します。

ライセンス

マサチューセッツ工科大学

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

Claude Desktop が Microsoft Word、Excel、PDF ファイルに対して作成、編集、形式変換などのドキュメント操作を実行できるようにするモデル コンテキスト プロトコル サーバー。

  1. Features
    1. Microsoft Word Operations
    2. Excel Operations
    3. PDF Operations
  2. Setup
    1. Automatic Setup (Recommended)
    2. Manual Setup
  3. Model Context Protocol Integration
    1. API Reference
      1. Microsoft Word
      2. Excel
      3. PDF
    2. Logs
      1. License
        1. Contributing
          ID: au9hy3g8xo