Skip to main content
Gemini CLI is Google’s terminal-based AI coding assistant. it supports MCP servers, so you can connect screenpipe to give Gemini context about what you’ve been working on.

setup

Gemini CLI uses MCP for external tools. add screenpipe to your settings file (~/.gemini/settings.json):
restart Gemini CLI after configuration.

usage

once configured, Gemini can search your screen history:

available tools

screenpipe provides these MCP tools to Gemini:

example workflows

context-aware coding:
debug from memory:
recall documentation:

requirements

  • screenpipe running on localhost:3030
  • Gemini CLI installed
  • Node.js >= 18.0.0

troubleshooting

MCP server not connecting?
  1. verify screenpipe is running:
    you should see {"status":"healthy"}. if this fails, start screenpipe first.
  2. check the settings file path: the config should be in ~/.gemini/settings.json. verify the file exists and contains valid JSON:
  3. restart Gemini CLI: after adding or modifying the config, fully restart Gemini CLI. if it was running in a terminal, exit and reopen it.
queries returning empty?
  • 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)
need help? join our discord.