Copy-Paste Line Extractor
FreeNot checkedExtracts specific line ranges from text content while preserving exact formatting and newlines, ideal for working with code snippets or documentation sections
About
Extracts specific line ranges from text content while preserving exact formatting and newlines, ideal for working with code snippets or documentation sections
README
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
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 install
Usage
Starting the MCP Server
npm start
This 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.js - Transport: 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: 2
This 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: 20
Extract just a single line (line 5):
Tool: extract-lines
Parameters:
- text: [your text content]
- start_line: 5
- end_line: 5
Why 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
Installing Copy-Paste Line Extractor
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/ananddtyagi/copy-paste-mcpFAQ
Is Copy-Paste Line Extractor MCP free?
Yes, Copy-Paste Line Extractor MCP is free — one-click install via Unyly at no cost.
Does Copy-Paste Line Extractor need an API key?
No, Copy-Paste Line Extractor runs without API keys or environment variables.
Is Copy-Paste Line Extractor hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Copy-Paste Line Extractor in Claude Desktop, Claude Code or Cursor?
Open Copy-Paste Line Extractor on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Copy-Paste Line Extractor with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
