Copy-Paste MCP
The Copy-Paste MCP server enables precise text extraction while preserving formatting. With this server, you can:
Extract specific line ranges from text content (inclusive start and end lines)
Preserve original formatting, spacing, and newlines during extraction
Handle both single-line and multi-line extractions without modifying content
Work effectively with large text blocks or documents
Select and process specific sections from larger content
Integrate with MCP-compatible tools like Claude Desktop, VS Code, and other AI applications
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Copy-Paste MCP extract lines 5-10 from this code snippet"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Copy-Paste MCP
A Model Context Protocol (MCP) server that provides a tool for extracting specific lines from text content.
Features
Simple tool to extract specific line ranges from any text content
Preserves exact content formatting and newlines
No modification of content - pure extraction
MCP server implementation for easy integration with AI tools
Related MCP server: MCP PDF Reader
MCP Server
This package includes an MCP server that exposes the line extraction functionality as a tool that can be used by any MCP client like Claude Desktop, VS Code, or other MCP-compatible applications.
Available Tools
extract-lines - Extract a specific range of lines from text content
Installation
Clone the repository
Install dependencies:
npm installUsage
Starting the MCP Server
npm startThis will start the MCP server using the stdio transport, which can be connected to by MCP clients.
Connecting to the Server
In an MCP-compatible client (like Claude Desktop), you can add this server with:
Name: Copy-Paste
Command:
node /path/to/copy-paste-mcp/dist/index.jsTransport: stdio
Using the Tool
Once connected, you can use the tool through your MCP client's interface:
Extract Lines
Tool: extract-lines
Parameters:
- text: "Your multi-line text content goes here\nSecond line\nThird line"
- start_line: 1
- end_line: 2This will return the first two lines of the provided text content.
Examples
Extract lines 10-20 from a large text block:
Tool: extract-lines
Parameters:
- text: [your text content with many lines]
- start_line: 10
- end_line: 20Extract just a single line (line 5):
Tool: extract-lines
Parameters:
- text: [your text content]
- start_line: 5
- end_line: 5Why use this?
This tool is useful when you need to:
Extract specific sections from large text blocks
Copy exact line ranges from code or documentation
Ensure precise content extraction without any alterations
Integrate line extraction capabilities into AI workflows via MCP
Work with specific portions of large documents
Available Tools
1 toolextract-linesB
Extract a specific range of lines from text content
Inputs: text (required), start_line (required), end_line (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlap with other tools, making disambiguation perfect.
The single tool uses a clear verb_noun pattern (extract-lines), and with no other tools to compare, consistency is inherently perfect.
One tool is too few for a server named 'Copy-Paste MCP', which suggests broader copy-paste functionality, making the scope feel incomplete and thin.
The tool only extracts lines from text, lacking obvious operations like copying full text, pasting, or handling other copy-paste tasks, indicating significant gaps for the domain.
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Model Context Protocol server for Studex tools, notifications, and profile integrations
Model Context Protocol server for todo.vu task management and time tracking.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server that provides tools to find regex pattern positions in files and list allowed directories, enabling text analysis with LSP-like functionality.21MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables the extraction of text, metadata, and embedded images from PDF files. It provides tools for searching text with context, reading specific pages, and counting total pages within a document.722 npm1MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that provides line-oriented text file editing capabilities through a standardized API. Optimized for LLM tools with efficient partial file access to minimize token usage.MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables keyword search within files, returning matching lines with line numbers.11MIT