Skip to content
Gemini CLI

Fetch for Gemini CLI

io.github.modelcontextprotocol/fetch

Reference server that fetches a URL and converts the page to markdown for a model to read, with optional raw mode and pagination through long pages.

client:Gemini CLI transport:stdio runtime:pypi tools:1

Install Fetch in Gemini CLI

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

{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": [
        "mcp-server-fetch"
      ]
    }
  }
}

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

Fetch in other clients