MM

meterlong/mcp-doc

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

193 stars 24 forks 品質 38 トレンド 17

meterlong/mcp-docは、https://github.com/meterlong/mcp-doc.からインポートされたMCPサーバー候補です。

概要

meterlong/mcp-docは、https://github.com/meterlong/mcp-doc.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

英語 |中文

FastMCPライブラリをベースにしたDocx文書処理サービスで、CursorのAIアシスタントを用いてWord文書の作成、編集、管理をサポートします。

特徴

  • ドキュメント操作を完全化:文書の作成、開封、保存、コンテンツの追加、編集、削除のサポート
  • フォーマット:フォント、色、サイズ、アラインメント、その他のフォーマット設定のサポート
  • テーブル処理:テーブルセルの作成、編集、マージ、分割のサポート
  • 画像挿入:画像の挿入およびサイズ設定のサポート
  • レイアウトコントロール:ページ余白の設定、ページ区切りの追加、その他のレイアウト要素のサポート
  • クエリ機能:文書情報、段落内容、表データの取得サポート
  • 便利な編集:検索・置換機能のサポート
  • セクション編集:特定のセクションの内容を置き換えつつ、元のフォーマットやスタイルを保持するサポート

インストール依存関係

Python 3.10+がインストールされていることを確認してください。その後、以下の依存関係をインストールしてください:

使用法

カーソルでMCPサービスとして使用

  1. カーソルを開き設定へ

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Docx MCP Service

English | 中文

A Docx document processing service based on the FastMCP library, supporting the creation, editing, and management of Word documents using AI assistants in Cursor.

Features

  • Complete Document Operations: Support for creating, opening, saving documents, as well as adding, editing, and deleting content
  • Formatting: Support for setting fonts, colors, sizes, alignment, and other formatting options
  • Table Processing: Support for creating, editing, merging, and splitting table cells
  • Image Insertion: Support for inserting images and setting their sizes
  • Layout Control: Support for setting page margins, adding page breaks, and other layout elements
  • Query Functions: Support for retrieving document information, paragraph content, and table data
  • Convenient Editing: Support for find and replace functionality
  • Section Editing: Support for replacing content in specific sections while preserving original formatting and styles

Installation Dependencies

Ensure Python 3.10+ is installed, then install the following dependencies:

pip3 install python-docx mcp

Usage

Using as an MCP Service in Cursor

  1. Open Cursor and go to Settings
  2. Find the Features > MCP Servers section
  3. Click Add new MCP server
  4. Fill in the following information:
    • Name: MCP_DOCX
    • Type: Command
    • Command: python3 /path/to/MCP_dox/server.py (replace with the actual path to your server.py)
  5. Click Add to add the service

After adding, you can use natural language to operate Word documents in Cursor’s AI assistant, for example:

  • “Create a new Word document and save it to the desktop”
  • “Add a level 3 heading”
  • “Insert a 3x4 table and fill it with data”
  • “Set the second paragraph to bold and center-aligned”

Supported Operations

The service supports the following operations:

  • Document Management: create_document, open_document, save_document
  • Content Addition: add_paragraph, add_heading, add_table, add_picture
  • Content Editing: edit_paragraph, delete_paragraph, delete_text
  • Table Operations: add_table_row, delete_table_row, edit_table_cell, merge_table_cells, split_table
  • Layout Control: add_page_break, set_page_margins
  • Query Functions: get_document_info, get_paragraphs, get_tables, search_text
  • File Operations: create_document, open_document, save_document, save_as_document, create_document_copy
  • Section Editing: replace_section, edit_section_by_keyword
  • Other Functions: find_and_replace, search_and_replace (with preview functionality)

How It Works

  1. The service uses the Python-docx library to process Word documents
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →