Copy-Paste MCP

Copy-Paste MCP

A Model Context Protocol server that provides a tool for extracting specific line ranges from text content while preserving exact formatting and newlines.

Category
Visit Server

Tools

extract-lines

Extract a specific range of lines from text content

README

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

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

  1. extract-lines - Extract a specific range of lines from text content

Installation

  1. Clone the repository
  2. 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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured