Copy-Paste MCP

by ananddtyagi

コピー&ペーストMCP

テキスト コンテンツから特定の行を抽出するためのツールを提供するモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • 任意のテキストコンテンツから特定の行範囲を抽出するシンプルなツール
  • コンテンツのフォーマットと改行を正確に保持します
  • 内容の変更なし - 純粋な抽出
  • AIツールとの容易な統合を可能にするMCPサーバーの実装

MCPサーバー

このパッケージには、Claude Desktop、VS Code、その他の MCP 互換アプリケーションなどの MCP クライアントで使用できるツールとして行抽出機能を公開する MCP サーバーが含まれています。

利用可能なツール

  1. extract-lines - テキストコンテンツから特定の範囲の行を抽出します

インストール

  1. リポジトリをクローンする
  2. 依存関係をインストールします:
npm install

使用法

MCPサーバーの起動

npm start

これにより、MCP クライアントが接続できる stdio トランスポートを使用して MCP サーバーが起動します。

サーバーへの接続

MCP 互換クライアント (Claude Desktop など) では、次のコマンドでこのサーバーを追加できます。

  • 名前: コピー&ペースト
  • コマンド: node /path/to/copy-paste-mcp/dist/index.js
  • トランスポート: stdio

ツールの使用

接続すると、MCP クライアントのインターフェースを通じてツールを使用できるようになります。

行の抽出
Tool: extract-lines Parameters: - text: "Your multi-line text content goes here\nSecond line\nThird line" - start_line: 1 - end_line: 2

これにより、提供されたテキスト コンテンツの最初の 2 行が返されます。

大きなテキスト ブロックから 10 行目から 20 行目を抽出します。

Tool: extract-lines Parameters: - text: [your text content with many lines] - start_line: 10 - end_line: 20

1 行だけ抽出します (行 5):

Tool: extract-lines Parameters: - text: [your text content] - start_line: 5 - end_line: 5

なぜこれを使うのですか?

このツールは、次のことが必要な場合に役立ちます。

  • 大きなテキストブロックから特定のセクションを抽出する
  • コードまたはドキュメントから正確な行範囲をコピーする
  • 変更を加えることなく正確なコンテンツ抽出を実現
  • MCPを介してライン抽出機能をAIワークフローに統合
  • 大きな文書の特定の部分を操作する

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

正確な書式と改行を維持しながら、テキスト コンテンツから特定の行範囲を抽出するツールを提供するモデル コンテキスト プロトコル サーバー。

  1. 特徴
    1. MCPサーバー
      1. 利用可能なツール
    2. インストール
      1. 使用法
        1. MCPサーバーの起動
        2. サーバーへの接続
        3. ツールの使用
        1. なぜこれを使うのですか?

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that provides tools for analyzing text documents, including counting words and characters. This server helps LLMs perform text analysis tasks by exposing simple document statistics functionality.
            Last updated -
            1
            8
            7
            JavaScript
            Apache 2.0
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that enables LLMs to extract and use content from unstructured documents across a wide variety of file formats.
            Last updated -
            2
            Python
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server implementation that provides a standardized interface for interacting with Spiral's language models, offering tools to generate text from prompts, files, or web URLs.
            Last updated -
            14
            Python
            • Linux
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that enables LLMs to fetch and process web content in multiple formats (HTML, JSON, Markdown, text) with automatic format detection.
            Last updated -
            TypeScript
            • Apple

          View all related MCP servers

          ID: oafd1umb6b