Skip to content
Gemini CLI

hosts file mcp for Gemini CLI

io.github.mrfentmen/hosts-file-mcp

Hosts File MCP: read, check, lint, scaffold and run code.

client:Gemini CLI transport:stdio runtime:npm

Install hosts file mcp in Gemini CLI

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

{
  "mcpServers": {
    "hosts-file-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/hosts-file-mcp"
      ]
    }
  }
}

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

hosts file mcp in other clients