clipboard_mcp
An MCP server that allows LLM models to save relevant output directly to your system clipboard for immediate use.
Documentation
Clipboard MCP Server
An MCP server that allows LLM models to save relevant output directly to your system clipboard for immediate use.
Note
Tested on Linux and MacOS
What it does
This MCP server provides tools that allow Claude Code (or other MCP-compatible tools) to:
- Save command snippets directly to your clipboard (e.g., `npm install express`)
- Save code snippets ready to paste into your editor
- Save short answers like city names, numbers, or specific values
- Save any text content for immediate use
Example Usage
When you ask: "How do I install Express.js?"
- Claude gives you a full explanation about Express.js
- AND automatically puts `npm install express` on your clipboard ready to paste
When you ask: "What's the capital of Hungary?"
- Claude explains about Budapest being the capital
- AND puts just `Budapest` on your clipboard for quick use
Demo

*The clipboard MCP server working with LM Studio - automatically saving useful content to clipboard while providing full responses*
Quick Start
Automatic Setup (Recommended)
./setup.shThis will:
- Install system dependencies (xclip on Linux)
- Create Python virtual environment
- Install all required packages
- Show you the configuration to add to your MCP client
Manual Setup
1. Install dependencies:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt2. Install clipboard support (Linux only):
sudo apt install xclipRunning the Server
Easy Start
./start.sh # Default port 3001
./start.sh 3002 # Custom port 3002Manual Start
source .venv/bin/activate
python server.py # Default port 3001
python server.py --port 3002 # Custom port 3002
python server.py --help # See all optionsThe server will run on `http://localhost:PORT/sse` and provide clipboard functionality.
MCP Client Configuration
Add this configuration to your MCP client:
Claude Code (`~/.claude.json`):
{
"mcpServers": {
"clipboard": {
"type": "sse",
"url": "http://localhost:3001/sse"
}
}
}For custom ports, update the URL accordingly:
{
"mcpServers": {
"clipboard": {
"type": "sse",
"url": "http://localhost:3002/sse"
}
}
}LM Studio and other MCP clients use the same configuration format.
The server works with any MCP-compatible client that supports SSE transport.
Available Tools
`save_to_clipboard(content: str)`
General-purpose clipboard saving for any text content.
`save_command_to_clipboard(command: str, description: str = "")`
Specifically for terminal/shell commands with optional description.
`save_code_to_clipboard(code: str, language: str = "")`
For code snippets with optional language context.
Testing
Run the server directly to test:
python server.pyThe server will start and wait for MCP protocol messages. Use with Claude Code or other MCP clients to test the clipboard functionality.
Frequently asked questions
What is clipboard_mcp?
clipboard_mcp is An MCP server that allows LLM models to save relevant output directly to your system clipboard for immediate use.
How do I install clipboard_mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is clipboard_mcp open source?
Yes — it is hosted on GitHub at https://github.com/csabakecskemeti/clipboard_mcp and has 2 stars.
Related MCP tools
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. MaxKB 是强大易用的开源企业级智能体平台。 for the Model Context Protocol. Enhance AI assistants with po
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP