Skip to content
Gemini CLI

Brave Search for Gemini CLI

com.brave/brave-search

Web, local, news, image and video search through the Brave Search API. Needs an API key from the Brave developer portal.

client:Gemini CLI transport:stdio runtime:npm tools:5

Install Brave Search in Gemini CLI

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

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "brave-search": {
      "command": "npx",
      "args": [
        "-y",
        "@brave/brave-search-mcp-server"
      ],
      "env": {
        "BRAVE_API_KEY": "<BRAVE_API_KEY>"
      }
    }
  }
}

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

What Gemini CLI can do once it is connected

Brave Search in other clients