# Connect Gemini CLI

> Documentation index: https://docs.thefaceanalysis.com/llms.txt · HTML version: https://docs.thefaceanalysis.com/mcp/gemini-cli · Updated 2026-10-18

Use `gemini mcp add` or edit `settings.json`. The key for a remote server is `httpUrl`.

## Steps

1. Run the command. The default scope is *project*; add `-s user` to use the server everywhere (it is written to `~/.gemini/settings.json`).
2. If you edit the file by hand, use **`httpUrl`**, not `url`, for a remote Streamable HTTP server: `url` is for the older SSE address.

## Configuration

**Hosted (recommended)**

```
gemini mcp add -s user --transport http thefaceanalysis https://mcp.thefaceanalysis.com/mcp
```

**settings.json (hosted)**

```
{
  "mcpServers": {
    "thefaceanalysis": {
      "httpUrl": "https://mcp.thefaceanalysis.com/mcp"
    }
  }
}
```

**settings.json (local)**

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

## Check it works

Ask: “Using The Face Analysis, what is the median fWHR across your 102 reference faces?” The answer should be 1.78.

Source for the Gemini CLI syntax: [Gemini CLI: MCP servers](https://geminicli.com/docs/tools/mcp-server/). Client menus and file locations change; if a step no longer matches, follow that page and tell us on [GitHub](https://github.com/The-Face-Analysis/thefaceanalysis-mcp/issues).

See also the [tool reference](https://docs.thefaceanalysis.com/mcp/tools) and [troubleshooting](https://docs.thefaceanalysis.com/faq#troubleshooting).
