Word ツール MCP サーバー
AIを活用したWord文書操作機能を提供するモデルコンテキストプロトコル(MCP)サーバー。このサーバーはMCPプロトコルを実装しており、AIアプリケーションが自然言語によるインタラクションを通じてWord文書を作成、編集、管理できるようにします。
特徴
- 完全なMCPプロトコル実装
- Word文書の作成と管理
- リッチテキストコンテンツの操作
- 表の作成と書式設定
- ドキュメントレイアウト制御
- ドキュメントメタデータ管理
- リアルタイムのドキュメント状態監視
前提条件
- Node.js 14以上
- Microsoft Word(オプション、高度な機能用)
インストール
またはグローバルにインストールします:
プロジェクトの依存関係として使用する場合:
使用法
- MCP サーバーを起動します。
- サーバーはデフォルトでポート8765で起動します
- MCP サーバーを使用するように AI アプリケーション (例: Cursor、VSCode) を構成します。
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 リポジトリに問題を送信してください。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
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 -1076TypeScript
- -securityFlicense-qualityEnables AI assistants to enhance their responses with relevant documentation through a semantic vector search, offering tools for managing and processing documentation efficiently.Last updated -6213TypeScript
- AsecurityAlicenseAqualityIntegrates MATLAB with AI to execute code, generate scripts from natural language, and access MATLAB documentation seamlessly.Last updated -229JavaScriptApache 2.0
- -securityFlicense-qualityEnables AI assistants to interact with Metabase, providing access to dashboards, questions, databases, and tools for executing queries and viewing data through natural language.Last updated -JavaScript
Appeared in Searches
- Information about the DOCX file format or tools for handling DOCX files
- A tool or assistant for programming, file handling, and document creation
- Using Claude in Microsoft Word
- Microsoft Word MCP (Microsoft Certified Professional) Information
- A tool for uploading and analyzing files on MacBook with PDF and Word support, and converting them to Markdown