Persistent clipboard history for AI agents
## Clipboard Manager MCP Server: System Clipboard Control The **Clipboard Manager MCP Server** provides direct access to system clipboard functionality within Google Antigravity, enabling AI assistants to read, write, and manage clipboard contents programmatically. This integration brings clipboard automation to your development workflow. ### Why Clipboard Manager MCP? - **Read/Write Access**: Full access to system clipboard for text and data - **History Tracking**: Access clipboard history for previously copied items - **Format Support**: Handle plain text, rich text, and structured data - **Cross-Platform**: Consistent clipboard access across operating systems - **Automation Ready**: Enable clipboard-based automation workflows ### Key Features #### 1. Clipboard Read ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Read the current clipboard contents and analyze the text" }], tools=[{ "name": "clipboard_read", "description": "Read clipboard contents" }] ) ``` #### 2. Clipboard Write ```python # Write to clipboard response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Copy this formatted code snippet to the clipboard" }], tools=[{"name": "clipboard_write", "description": "Write to clipboard"}] ) ``` #### 3. History Access ```python # Access clipboard history response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Show me my last 5 clipboard entries" }], tools=[{"name": "clipboard_history", "description": "Access history"}] ) ``` #### 4. Format Handling ```python # Handle different formats response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Check if the clipboard contains HTML and extract it as plain text" }], tools=[{"name": "clipboard_format", "description": "Handle formats"}] ) ``` ### Configuration ```json { "mcpServers": { "clipboard-manager": { "command": "npx", "args": ["-y", "@anthropic/mcp-clipboard"], "env": { "HISTORY_SIZE": "50" } } } } ``` ### Use Cases **Data Transfer**: Automate copying data between applications via clipboard. **Text Processing**: Process clipboard content with transformations and formatting. **Workflow Automation**: Build clipboard-based automation for repetitive tasks. **Snippet Management**: Access and insert frequently used text snippets. The Clipboard Manager MCP Server brings system clipboard control directly into your development workflow, enabling seamless data transfer automation.
{
"mcpServers": {
"clipboard-manager": {
"mcpServers": {
"clipboard": {
"args": [
"mcp-clipboard"
],
"command": "bunx"
}
}
}
}
}