Copy-Paste MCP

by ananddtyagi

复制粘贴 MCP

模型上下文协议 (MCP) 服务器提供从文本内容中提取特定行的工具。

特征

  • 从任何文本内容中提取特定行范围的简单工具
  • 保留精确的内容格式和换行符
  • 不修改内容-纯提取
  • MCP 服务器实现,可轻松与 AI 工具集成

MCP 服务器

该软件包包括一个 MCP 服务器,它将行提取功能公开为可由任何 MCP 客户端(如 Claude Desktop、VS Code 或其他与 MCP 兼容的应用程序)使用的工具。

可用工具

  1. extract-lines - 从文本内容中提取特定范围的行

安装

  1. 克隆存储库
  2. 安装依赖项:
npm install

用法

启动 MCP 服务器

npm start

这将使用 stdio 传输启动 MCP 服务器,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

这将返回所提供的文本内容的前两行。

示例

从大文本块中提取第 10-20 行:

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

仅提取一行(第 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. 使用工具
      2. 示例
        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