Skip to content
Gemini CLI

TrustFetch for Gemini CLI

io.github.vohlsyr/trustfetch

Prompt-injection scanning and safe webpage fetching for AI agents reading untrusted content.

client:Gemini CLI transport:streamable-http

Install TrustFetch in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

{
  "mcpServers": {
    "trustfetch": {
      "httpUrl": "https://trustfetch.duckdns.org/mcp/"
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

TrustFetch in other clients