Clipboard operations for AI coding agents
## Clipboard MCP Server: Cross-Platform Clipboard Management The **Clipboard MCP Server** provides intelligent clipboard access and management within Google Antigravity, enabling seamless data transfer, history tracking, and smart paste operations across your development workflow. ### Why Clipboard MCP? - **Clipboard History**: Access previously copied items without losing important snippets during complex development tasks - **Smart Paste**: Transform clipboard content before pasting with automatic formatting and conversion - **Cross-Device Sync**: Share clipboard content across multiple devices and development environments - **Secure Handling**: Protect sensitive data with automatic expiration and encryption options - **Multi-Format Support**: Handle text, code, images, and structured data with format-aware operations ### Key Features #### 1. Clipboard Access ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get the current clipboard content and analyze if it contains valid JSON" }] ) ``` #### 2. Clipboard History ```python # Access clipboard history response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Show my last 10 clipboard items and find the one containing the API endpoint URL" }] ) ``` #### 3. Smart Copy ```python # Copy with transformation response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Copy this SQL query to clipboard formatted for markdown code block" }] ) ``` #### 4. Clipboard Sync ```python # Sync across devices response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Sync my current clipboard to my remote development server" }] ) ``` ### Configuration ```json { "mcpServers": { "clipboard": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-clipboard"], "env": { "CLIPBOARD_HISTORY_SIZE": "100", "CLIPBOARD_SYNC_ENABLED": "true" } } } } ``` ### Use Cases **Code Snippet Management**: Build a library of frequently used code snippets accessible through clipboard history for rapid development. **Data Transformation**: Copy data in one format and paste in another with automatic conversion between JSON, CSV, YAML, and more. **Multi-File Editing**: Copy content from multiple sources and paste them in sequence without repeated navigation. **Secure Sharing**: Share sensitive configuration values between environments with automatic clipboard clearing. The Clipboard MCP Server transforms the simple clipboard into a powerful development tool, streamlining data transfer and eliminating the friction of managing multiple copied items.
{
"mcpServers": {
"clipboard": {
"mcpServers": {
"cut-copy-paste": {
"args": [
"-y",
"@fastmcp-me/cut-copy-paste-mcp"
],
"command": "npx"
}
}
}
}
}