setup
verify connection
available tools
once connected, Claude Code has access to these tools:| tool | description |
|---|---|
search-content | search screen OCR, audio transcriptions with time/app filters |
search-ui-events | search accessibility data: keyboard input, mouse clicks, app switches, clipboard (macOS) |
get-ui-event-stats | get aggregated UI event statistics by app and event type |
export-video | create video exports from screen recordings |
usage examples
ask Claude Code to use screenpipe naturally:search parameters
search-content (screen OCR + audio)
| parameter | description |
|---|---|
q | search query (optional - omit to get all content) |
content_type | ocr, audio, ui, or all (default: all) |
limit | max results (default: 10) |
offset | pagination offset |
start_time | ISO 8601 UTC start time |
end_time | ISO 8601 UTC end time |
app_name | filter by app (e.g., “Chrome”, “Slack”) |
window_name | filter by window title |
include_frames | include base64 screenshots |
speaker_ids | comma-separated speaker IDs for audio filtering |
speaker_name | filter audio by speaker name |
search-ui-events (accessibility data - macOS)
| parameter | description |
|---|---|
q | search text content, app name, window title |
event_type | click, text, scroll, key, app_switch, window_focus, clipboard |
app_name | filter by application |
window_name | filter by window title |
start_time | ISO 8601 UTC start time |
end_time | ISO 8601 UTC end time |
limit | max results (default: 50) |
offset | pagination offset |
example workflows
recall context from earlier:requirements
- screenpipe running on localhost:3030
- Claude Code CLI installed
- Node.js >= 18.0.0
troubleshooting
MCP not connecting?- verify screenpipe is running:
curl http://localhost:3030/health - check MCP status in Claude Code:
/mcp - remove and re-add:
claude mcp remove screenpipe && claude mcp add screenpipe --transport stdio -- npx -y screenpipe-mcp
- check screenpipe has data:
curl "http://localhost:3030/search?limit=1" - ensure screen recording permissions are granted
- verify the time range you’re querying
- macos: check System Settings > Privacy & Security > Screen Recording
- ensure screenpipe app/CLI is listed and enabled