
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A Model Context Protocol server that provides clipboard-style cut, copy, paste, and undo operations for code blocks across files, with session management and an audit trail.
MCP Cut-Copy-Paste Clipboard Server is cataloged as an MCP server attributed to pr0j3c7t0dd-ltd. A Model Context Protocol server that provides clipboard-style cut, copy, paste, and undo operations for code blocks across files, with session management and an audit trail. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP Cut-Copy-Paste Clipboard Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It restores both the paste target or targets and the cut source file to their original state.
The server accepts text files only, rejects binary files, and limits clipboard content to 10MB.
Each session maintains independent clipboard state.
README.md · d86a1b7883dd · Fetched 2026-11-13 08:17:32 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server that provides clipboard-style operations for AI-assisted coding agents. Cut, copy, paste, and undo code blocks across files with full audit trail and session management.
.gitignore-style allowlist to restrict filesystem access (docs)npx cut-copy-paste-mcp
npm install -g cut-copy-paste-mcp
cut-copy-paste-mcp
git clone https://github.com/Pr0j3c7t0dd-Ltd/cut-copy-paste-mcp.git
cd cut-copy-paste-mcp
npm install
npm run build
node dist/cli.js
Configure the MCP server:
~/Library/Application Support/Claude/claude_desktop_config.json (macOS)%APPDATA%\Claude\claude_desktop_config.json (Windows){
"mcpServers": {
"clipboard": {
"command": "npx",
"args": ["cut-copy-paste-mcp"]
}
}
}
Restart Claude Desktop/Code to load the MCP server
Verify the tools are available:
Start using the clipboard:
cut-copy-paste-mcpdocs/AGENTIC_USAGE.md into your agent's instruction files:
CLAUDE.md in your project root.cursorrules or AGENTS.md in your projectYou/AI: "I need to refactor the authentication logic.
Copy lines 45-80 from src/auth/old-auth.ts"
AI: [Uses copy_lines tool]
✓ Copied 36 lines from src/auth/old-auth.ts:45-80
You/AI: "Now paste this into a new file src/auth/token-handler.ts at line 1"
AI: [Uses paste_lines tool]
✓ Pasted to src/auth/token-handler.ts:1
You/AI: "Actually, I want to undo that and paste it somewhere else"
AI: [Uses undo_last_paste tool]
✓ Undone paste operation, restored 1 file(s)
copy_linesCopy lines from a file to session clipboard without modifying the source.
Parameters:
file_path (string, required): Path to source filestart_line (number, required): Starting line number (1-indexed)end_line (number, required): Ending line number (inclusive)Example:
{
"tool": "copy_lines",
"arguments": {
"file_path": "src/utils/helpers.ts",
"start_line": 10,
"end_line": 25
}
}
Returns:
{
"success": true,
"content": "...",
"lines": ["..."],
"message": "Copied 16 line(s) from src/utils/helpers.ts:10-25"
}
cut_linesCut lines from a file (removes from source, saves to clipboard).
Parameters:
file_path (string, required): Path to source filestart_line (number, required): Starting line number (1-indexed)end_line (number, required): Ending line number (inclusive)Example:
{
"tool": "cut_lines",
"arguments": {
"file_path": "src/legacy/old-module.ts",
"start_line": 50,
"end_line": 75
}
}
Returns:
{
"success": true,
"content": "...",
"lines": ["..."],
"message": "Cut 26 line(s) from src/legacy/old-module.ts:50-75"
}
paste_linesPaste clipboard content to one or more locations.
Parameters:
targets (array, required): Array of paste targets
file_path (string): Target file pathtarget_line (number): Line number to paste at (1-indexed)Example (single target):
{
"tool": "paste_lines",
"arguments": {
"targets": [
{
"file_path": "src/components/NewComponent.tsx",
"target_line": 20
}
]
}
}
Example (multiple targets):
{
"tool": "paste_lines",
"arguments": {
"targets": [
{
"file_path": "src/services/auth.ts",
"target_line": 5
},
{
"file_path": "src/services/api.ts",
"target_line": 8
},
{
"file_path": "src/services/storage.ts",
"target_line": 3
}
]
}
}
Returns:
{
"success": true,
"pastedTo": [
{ "file": "src/components/NewComponent.tsx", "line": 20 }
],
"message": "Pasted to 1 location(s)"
}
show_clipboardDisplay current clipboard contents with metadata.
Parameters: None
Example:
{
"tool": "show_clipboard",
"arguments": {}
}
Returns:
{
"hasContent": true,
"content": "...",
"sourceFile": "src/utils/helpers.ts",
"startLine": 10,
"endLine": 25,
"operationType": "copy",
"copiedAt": 1699564800000
}
undo_last_pasteUndo the most recent paste operation. If the paste came from a cut operation, both the paste target(s) AND the cut source are restored to their original state.
Parameters: None
Example:
{
"tool": "undo_last_paste",
"arguments": {}
}
Returns:
{
"success": true,
"restoredFiles": [
{ "file": "src/components/NewComponent.tsx", "line": 20 },
{ "file": "src/legacy/old-module.ts", "line": 0 }
],
"message": "Undone paste operation, restored 2 file(s)"
}
Behavior:
get_operation_historyRetrieve operation history for debugging.
Parameters:
limit (number, optional): Max number of operations to return (default: 10)Example:
{
"tool": "get_operation_history",
"arguments": {
"limit": 5
}
}
Returns:
{
"operations": [
{
"operationId": 42,
"operationType": "paste",
"timestamp": 1699564800000,
"details": {
"targetFile": "src/components/NewComponent.tsx",
"targetLine": 20
}
}
]
}
1. Identify code to extract → Analyze file and find lines to move
2. Cut the code → Use cut_lines to remove from original location
3. Verify clipboard → Use show_clipboard to confirm content
4. Paste to new location → Use paste_lines to insert at new location
5. Verify result → Check both files for correctness
1. Find source code → Identify reusable code pattern
2. Copy the pattern → Use copy_lines to capture boilerplate
3. Identify targets → List all files needing this pattern
4. Multi-paste → Use paste_lines with multiple targets
5. Verify → Spot-check pasted content
1. Cut from source → Use cut_lines to remove code
2. Paste to destination → Use paste_lines to insert
3. Verify both files → Check source is cleaned up
4. Update references → Fix imports if needed
1. Copy code for testing → Use copy_lines to capture current state
2. Paste to test location → Create experimental version
3. Test changes → Make modifications
4. Decide → Use undo_last_paste if unsuccessful
1. Cut code from source → Use cut_lines (removes from source)
2. Paste to destination → Use paste_lines (adds to destination)
3. Realize mistake → Decide to revert the move
4. Undo paste operation → Use undo_last_paste
5. Result → Both source AND destination restored to original state
Note: When you undo a paste from a cut operation, the server automatically restores BOTH files - the paste target(s) are restored, and the cut source is restored with the lines that were removed.
Think of this as a smart clipboard for code that AI assistants (like Claude) can use. Instead of copying entire files, it can:
@modelcontextprotocol/sdk (the official MCP toolkit)When you copy or cut something, it needs to be stored somewhere:
better-sqlite3 (fast, reliable SQLite library for Node.js)All the actual reading and writing of files uses:
fs module (filesystem operations)Copy Operation:
1. AI says: "Copy lines 10-20 from myfile.js"
2. Server reads the file using Node's fs.readFileSync()
3. Extracts lines 10-20 from the file
4. Saves them to the SQLite database (your "clipboard")
5. Returns the copied text back to the AI
Paste Operation:
1. AI says: "Paste to line 5 in otherfile.js"
2. Server retrieves clipboard from SQLite database
3. Takes a snapshot of the target file (for undo later)
4. Reads the file, inserts the lines at position 5
5. Writes the modified file back using fs.writeFileSync()
6. Saves the undo information to the database
Undo Operation:
1. AI says: "Undo that paste"
2. Server looks up the last paste in the database
3. Finds the saved snapshot from before the paste
4. Restores the file to its original state
5. If it was from a "cut", also restores the source file!
| Library | Purpose | What It Does |
|---|---|---|
@modelcontextprotocol/sdk | MCP Protocol | Handles communication with AI assistants |
better-sqlite3 | Database | Stores clipboard, history, and undo info |
fs (built-in) | File System | Reads and writes files |
| TypeScript | Language | Type-safe JavaScript (compiles to regular JavaScript) |
Unlike a regular clipboard:
In essence: It's a sophisticated clipboard that speaks AI's language (MCP), uses a database to remember everything (SQLite), and does all the file reading/writing using basic Node.js tools. The magic is in how it coordinates these pieces to provide reliable cut/copy/paste/undo operations for AI coding assistants!
The server uses SQLite with 4 main tables:
By default, the database is stored at:
~/.mcp-clipboard/clipboard.db%USERPROFILE%\.mcp-clipboard\clipboard.db# Start the MCP server
cut-copy-paste-mcp
# Show help
cut-copy-paste-mcp --help
# Show version
cut-copy-paste-mcp --version
Add to your MCP configuration file:
macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"clipboard": {
"command": "npx",
"args": ["cut-copy-paste-mcp"]
}
}
}
For local development (not yet published to npm):
{
"mcpServers": {
"clipboard": {
"command": "node",
"args": ["/absolute/path/to/cut-copy-paste-mcp/dist/cli.js"]
}
}
}
Add to your Cursor MCP settings file:
macOS/Linux: ~/.cursor/mcp_config.json
Windows: %USERPROFILE%\.cursor\mcp_config.json
{
"mcpServers": {
"clipboard": {
"command": "npx",
"args": ["cut-copy-paste-mcp"]
}
}
}
Add to your Cline MCP settings:
{
"mcpServers": {
"clipboard": {
"command": "npx",
"args": ["cut-copy-paste-mcp"]
}
}
}
Sessions automatically expire after 24 hours of inactivity. Expired sessions are cleaned up on server start.
To help your AI coding assistant use this MCP server effectively, you can provide it with usage guidelines and best practices.
The docs/AGENTIC_USAGE.md file contains comprehensive guidelines for AI agents, including:
How to configure your agent:
Claude Desktop / Claude Code Users:
CLAUDE.md in your project rootdocs/AGENTIC_USAGE.md into this fileCursor IDE Users:
.cursorrules or AGENTS.md in your project rootdocs/AGENTIC_USAGE.md into this fileOther MCP Clients:
docs/AGENTIC_USAGE.md to the appropriate configurationWith these instructions configured, your AI assistant will:
Example: When you ask "Refactor the authentication logic into a separate module", the AI will know to:
cut_lines to extract the codeshow_clipboard to verify what was capturedpaste_lines to insert it in the new locationundo_last_paste if the result isn't correctshow_clipboard before paste operationsget_operation_history to debug issuesThe server provides clear error messages for common issues:
# Run all tests
npm test
# Run tests in watch mode
npm test -- --watch
# Run specific test file
npm test -- src/__tests__/server.test.ts
# Run with coverage
npm test:coverage
# Compile TypeScript
npm run build
# Lint code
npm run lint
# Format code
npm run format
src/
├── lib/
│ ├── database.ts # SQLite initialization
│ ├── session-manager.ts # Session lifecycle
│ ├── file-handler.ts # File operations
│ ├── clipboard-manager.ts # Clipboard buffer
│ └── operation-logger.ts # Audit trail
├── tools/
│ └── clipboard-tools.ts # 6 MCP tool implementations
├── config/
│ └── tools.ts # Tool definitions
├── server.ts # MCP server
├── cli.ts # CLI entry point
└── __tests__/ # Test files
The project follows strict Test-Driven Development (TDD) with:
Contributions are welcome! Please:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)For detailed security information, see Path Access Control Documentation.
MIT License - see LICENSE file for details
Made with ❤️ for AI-assisted coding workflows
~/.mcp-clipboard/clipboard.key (or alongside any custom --db-path).~/.mcp-clipboard/paths.allow with allowed path patterns. See Path Access Control Documentation for configuration examples.DatabaseManager constructor or CLI flag in future releases.To limit the server to your current project only, create ~/.mcp-clipboard/paths.allow:
# Allow only your project directory
/Users/username/my-project/**
# Exclude common directories
!**/node_modules/**
!**/.git/**
See Path Access Control Documentation for more examples and best practices.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Cut-Copy-Paste Clipboard Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/cut-copy-paste)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.