Doc/docx-MCP
Docx MCP サービス
FastMCP ライブラリに基づく Docx ドキュメント処理サービス。Cursor の AI アシスタントを使用して Word ドキュメントの作成、編集、管理をサポートします。
特徴
完全なドキュメント操作: ドキュメントの作成、開く、保存、コンテンツの追加、編集、削除をサポート
書式設定: フォント、色、サイズ、配置、その他の書式設定オプションの設定をサポート
表処理: 表セルの作成、編集、結合、分割をサポート
画像挿入: 画像の挿入とサイズの設定をサポート
レイアウトコントロール: ページ余白の設定、ページ区切りの追加、その他のレイアウト要素のサポート
クエリ関数: 文書情報、段落コンテンツ、表データの取得をサポート
便利な編集:検索と置換機能のサポート
セクション編集: 元の書式とスタイルを維持しながら、特定のセクションのコンテンツを置き換える機能をサポート
Related MCP server: MCP-OPENAPI-DOCX
インストールの依存関係
Python 3.10 以降がインストールされていることを確認してから、次の依存関係をインストールします。
pip3 install python-docx mcp使用法
カーソルでMCPサービスとして使用する
カーソルを開いて設定へ移動します
Features > MCP Serversセクションを見つけますAdd new MCP serverクリックします次の情報を入力してください。
名前: MCP_DOCX
タイプ: コマンド
コマンド:
python3 /path/to/MCP_dox/server.py(server.pyへの実際のパスに置き換えてください)
サービスを追加するには
Addをクリックします
追加すると、カーソルの AI アシスタントで自然言語を使用して Word 文書を操作できるようになります。例:
「新しいWord文書を作成し、デスクトップに保存する」
「レベル3の見出しを追加する」
「3x4の表を挿入してデータを入力します」
「2番目の段落を太字にして中央揃えにする」
サポートされている操作
このサービスは次の操作をサポートしています。
ドキュメント管理:
create_document、open_document、save_documentコンテンツの追加:
add_paragraph、add_heading、add_table、add_pictureコンテンツ編集:
edit_paragraph、delete_paragraph、delete_text表操作:
add_table_row、delete_table_row、edit_table_cell、merge_table_cells、split_tableレイアウト制御:
add_page_break、set_page_marginsクエリ関数:
get_document_info、get_paragraphs、get_tables、search_textファイル操作:
create_document、open_document、save_document、save_as_document、create_document_copyセクション編集:
replace_section、edit_section_by_keywordその他の機能:
find_and_replace、search_and_replace(プレビュー機能付き)
仕組み
このサービスはPython-docxライブラリを使用してWord文書を処理します。
AIアシスタントと通信するためにFastMCPライブラリを通じてMCPプロトコルを実装します。
リクエストを処理し、フォーマットされたレスポンスを返す
完全なエラー処理とステータスレポートをサポートします
タイポグラフィ機能
このサービスには優れたタイポグラフィ理解機能があります。
テキスト階層: 見出しレベル(1~9)と段落構成のサポート
ページレイアウト: ページ余白設定のサポート
視覚要素: フォントスタイル(太字、斜体、下線、色)と配置のサポート
表レイアウト: 表の作成、セルの結合、表の分割、表形式の設定をサポート
ページネーション制御: ページ区切りの追加をサポート
開発ノート
server.py- FastMCP ライブラリを使用した MCP サービスのコア実装
トラブルシューティング
カーソルで問題が発生した場合は、次の手順を試してください。
Python 3.10以降が正しくインストールされていることを確認する
python-docx および mcp ライブラリが正しくインストールされていることを確認します。
サーバーパスが正しいか確認してください
カーソルアプリケーションを再起動します
注記
python-docx および mcp ライブラリが正しくインストールされていることを確認します。
パス内の中国語文字が正しく処理されることを確認する
絶対パスを使用するとパス解析の問題を回避できます
ライセンス
MITライセンス
This server cannot be deployed
Maintenance
Related MCP Connectors
Create real Word .docx files from your AI chat: proposals, quotes, contracts, statements of work.
Create real Word .docx files from your AI chat: proposals, quotes, contracts, statements of work.
Use your own Word templates to convert Markdown → DOCX/PDF/HTML from any MCP-compatible AI.
Documents: DOCX template fill, Office to PDF, any file to Markdown, PDF to Word, OCR, PDF pipeline.
391
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceEnables 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.32MIT
- AlicenseNot gradedqualityDmaintenanceEnterprise-grade document editing and management server that enables AI-powered operations on Microsoft Word DOCX files, including creating, editing, formatting, and exporting documents through both MCP protocol and RESTful API.3MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to create and manipulate Microsoft Word documents programmatically with support for rich text formatting, tables, lists, headings, and find-and-replace operations.1016 npmMIT
- AlicenseAqualityDmaintenanceMCP server for Word document (.docx) creation and manipulation — the production-grade document automation tool for AI agents.933 npmMIT