Word ツール MCP サーバー
AIを活用したWord文書操作機能を提供するモデルコンテキストプロトコル(MCP)サーバー。このサーバーはMCPプロトコルを実装しており、AIアプリケーションが自然言語によるインタラクションを通じてWord文書を作成、編集、管理できるようにします。
特徴
完全なMCPプロトコル実装
Word文書の作成と管理
リッチテキストコンテンツの操作
表の作成と書式設定
ドキュメントレイアウト制御
ドキュメントメタデータ管理
リアルタイムのドキュメント状態監視
前提条件
Node.js 14以上
Microsoft Word(オプション、高度な機能用)
インストール
またはグローバルにインストールします:
プロジェクトの依存関係として使用する場合:
使用法
MCP サーバーを起動します。
サーバーはデフォルトでポート8765で起動します
MCP サーバーを使用するように AI アプリケーション (例: Cursor、VSCode) を構成します。
http://localhost:8765
MCPツール
サーバーは次の MCP 機能を提供します。
create_document
- 新しいWord文書を作成するパラメータ: filePath (必須)、タイトル、著者
open_document
- 既存のWord文書を開くパラメータ: filePath (必須)
add_paragraph
- 文書に段落を追加するパラメータ: filePath (必須)、text (必須)、style、alignment
add_table
- ドキュメントに表を追加するパラメータ: filePath (必須)、rows (必須)、cols (必須)、headers、data
search_and_replace
- 文書内のテキストを検索して置換するパラメータ: filePath (必須)、searchText (必須)、replaceText (必須)、matchCase
set_page_margins
- ドキュメントのページ余白を設定するパラメータ: filePath (必須)、top、right、bottom、left
get_document_info
- ドキュメントのメタデータを取得するパラメータ: filePath (必須)
AIアプリケーションとの統合
カーソル
カーソル設定ファイル
~/.cursor/mcp.json
を開きます。次の構成を追加します。
またはローカル開発バージョンの場合:
設定後、自然言語を使用して Word 文書を操作できます。
VSCode およびその他の MCP 互換ツール
MCPプロトコルをサポートする他のツールにも同様の統合手順が適用されます。具体的なMCPサーバーの設定手順については、ツールのドキュメントを参照してください。
発達
この MCP サーバーを拡張または変更するには:
リポジトリをクローンします。
依存関係をインストールします:
開発モードで開始します:
生産用にビルド:
新しいMCP機能の追加
src/services/DocumentService.ts
に新しいメソッドを追加しますsrc/mcp-server.ts
に新しい関数を登録する必要に応じて型定義を更新する
構成
デフォルトポート: 8765 (設定可能)
サポートされているファイル形式: .docx
すべてのファイルパスは絶対パスまたは現在の作業ディレクトリからの相対パスである必要があります
ライセンス
マサチューセッツ工科大学
サポート
問題が発生した場合や改善の提案がある場合は、GitHub リポジトリに問題を送信してください。
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
AIが自然言語でWord文書を読み取り、作成、修正できるようにする
Related Resources
Related MCP Servers
- -securityFlicense-qualityEnables AI language models to interact with Microsoft OneNote via a standardized interface, supporting notebook and page management through natural language.Last updated -919
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to create, read, edit, and format Microsoft Word documents through standardized tools and resources.Last updated -54811MIT License
- AsecurityAlicenseAqualityEnables AI agents to interact with Notion workspaces through the Notion API. Supports reading, writing, and managing pages, databases, and comments with optimized token consumption.Last updated -1912,735MIT License
- -securityAlicense-qualityEnables AI assistants to create, read, and manipulate Microsoft Word documents with comprehensive formatting, table creation, content management, and document protection capabilities. Supports advanced operations like merging documents, PDF conversion, and rich text formatting through a standardized interface.Last updated -32MIT License