Docs / MCP server / Connect Gemini CLI
Connect Gemini CLI
Use gemini mcp add or edit settings.json. The key for a remote server is httpUrl.
Steps
- Run the command. The default scope is project; add
-s userto use the server everywhere (it is written to~/.gemini/settings.json). - If you edit the file by hand, use
httpUrl, noturl, for a remote Streamable HTTP server:urlis for the older SSE address.
Configuration
Hosted (recommended)
gemini mcp add -s user --transport http thefaceanalysis https://mcp.thefaceanalysis.com/mcpsettings.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. Client menus and file locations change; if a step no longer matches, follow that page and tell us on GitHub.
See also the tool reference and troubleshooting.