Skip to content
Gemini CLI

swapi mcp for Gemini CLI

io.github.mrfentmen/swapi-mcp

SWAPI: characters, planets, films, starships, vehicles and species, with film cross-references.

client:Gemini CLI transport:stdio runtime:npm

Install swapi mcp in Gemini CLI

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

{
  "mcpServers": {
    "swapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "swapi-mcp"
      ]
    }
  }
}

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

swapi mcp in other clients