Setup
Gemini CLI uses MCP for external tools. Add Screenpipe to your settings file (~/.gemini/settings.json):
Usage
Once configured, Gemini can search your screen history:Available tools
Screenpipe provides these MCP tools to Gemini:Example workflows
Context-aware coding:Requirements
- Screenpipe running on localhost:3030
- Gemini CLI installed
- Node.js >= 18.0.0
Troubleshooting
MCP server not connecting?-
Verify Screenpipe is running:
you should see
{"status":"healthy"}. If this fails, start Screenpipe first. -
Check the settings file path:
the config should be in
~/.gemini/settings.json. Verify the file exists and contains valid JSON: - Restart Gemini CLI: after adding or modifying the config, fully restart Gemini CLI. If it was running in a terminal, exit and reopen it.
- Make sure Screenpipe has recorded data:
curl "http://localhost:3030/search?limit=1" - If empty, let Screenpipe run for a minute and try again
- Check screen recording is enabled (macOS: System Settings > Privacy & Security > Screen Recording)