An MCP server for querying the Paste app clipboard history on macOS.
- Full-text search - Search clipboard content using SQLite FTS
- Recent items - Get most recent clipboard entries
- Filter by app - Find items copied from specific applications
- Filter by type - Filter by Text, Link, Color, Image, or File
- Date range queries - Find items from specific time periods
- Statistics - Get overview of clipboard history
Install uv if you haven't already:
curl -LsSf https://astral.sh/uv/install.sh | shclaude mcp add paste-rag -- uvx --from git+https://github.com/mailshieldai/paste-rag paste-ragAdd to ~/.config/opencode/opencode.jsonc:
Add to your MCP config (claude_desktop_config.json or Cursor settings):
{
"mcpServers": {
"paste-rag": {
"command": "uvx",
"args": ["--from", "git+https://github.com/mailshieldai/paste-rag", "paste-rag"]
}
}
}uvx --from git+https://github.com/mailshieldai/paste-rag paste-ragIf you prefer to clone and run locally:
git clone https://github.com/mailshieldai/paste-rag.git
cd paste-rag
uv run paste-ragSearch clipboard history by text content using full-text search.
Parameters:
query(required): Search querylimit: Max results (default: 20)app_filter: Filter by app nametype_filter: Filter by type (Text, Link, Color, Image, File)
Get the most recent clipboard entries.
Parameters:
limit: Number of items (default: 20)app_filter: Filter by app nametype_filter: Filter by typeinclude_content: Include full content (default: true)
Get clipboard entries within a date range.
Parameters:
start_date(required): Start date (YYYY-MM-DD)end_date(required): End date (YYYY-MM-DD)limit: Max results (default: 50)app_filter: Filter by apptype_filter: Filter by type
Get statistics about clipboard history (counts by type, top apps, date range).
Get a specific clipboard item by ID.
Parameters:
item_id(required): The unique ID of the item
Get all clipboard entries from a specific application.
Parameters:
app_name(required): Application name (partial match)limit: Max results (default: 30)
List all applications that have contributed to clipboard history.
The server automatically detects the Paste app database. Supported locations:
~/Library/Application Support/com.wiheads.paste-setapp/index.sqlite(Setapp)~/Library/Application Support/com.wiheads.paste/index.sqlite(Direct)~/Library/Containers/com.wiheads.paste/...(App Store)~/Library/Group Containers/group.com.wiheads.paste/...(Shared)
git clone https://github.com/mailshieldai/paste-rag.git
cd paste-rag
uv sync
uv run paste-rag
# With FastMCP Inspector
uv run fastmcp dev src/paste_rag/server.pyMIT
{ "mcp": { "paste-rag": { "type": "local", "command": [ "uvx", "--from", "git+https://github.com/mailshieldai/paste-rag", "paste-rag" ] } } }