复制粘贴 MCP
模型上下文协议 (MCP) 服务器提供从文本内容中提取特定行的工具。
特征
从任何文本内容中提取特定行范围的简单工具
保留精确的内容格式和换行符
不修改内容-纯提取
MCP 服务器实现,可轻松与 AI 工具集成
MCP 服务器
该软件包包括一个 MCP 服务器,它将行提取功能公开为可由任何 MCP 客户端(如 Claude Desktop、VS Code 或其他与 MCP 兼容的应用程序)使用的工具。
可用工具
extract-lines - 从文本内容中提取特定范围的行
安装
克隆存储库
安装依赖项:
用法
启动 MCP 服务器
这将使用 stdio 传输启动 MCP 服务器,MCP 客户端可以连接到该服务器。
连接到服务器
在与 MCP 兼容的客户端(如 Claude Desktop)中,您可以使用以下命令添加此服务器:
名称:复制粘贴
命令:
node /path/to/copy-paste-mcp/dist/index.js
传输:stdio
使用工具
连接后,您可以通过 MCP 客户端界面使用该工具:
提取线条
这将返回所提供的文本内容的前两行。
示例
从大文本块中提取第 10-20 行:
仅提取一行(第 5 行):
为什么要用这个?
当您需要执行以下操作时,此工具很有用:
从大文本块中提取特定部分
从代码或文档中复制精确的行范围
确保精确提取内容,不做任何改动
通过 MCP 将线提取功能集成到 AI 工作流程中
处理大型文档的特定部分
Tools
模型上下文协议服务器提供一种工具,用于从文本内容中提取特定的行范围,同时保留精确的格式和换行符。
Related MCP Servers
- AsecurityAlicenseAqualityA 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 -13210Apache 2.0
- -securityFlicense-qualityA Model Context Protocol server that enables LLMs to extract and use content from unstructured documents across a wide variety of file formats.Last updated -6
- AsecurityFlicenseAqualityA Model Context Protocol server that intelligently fetches and processes web content, transforming websites and documentation into clean, structured markdown with nested URL crawling capabilities.Last updated -2334
- AsecurityFlicenseAqualityA Model Context Protocol server that implements a simple notes system, allowing users to create, list, and summarize text notes.Last updated -33