Connect Gemini CLI to Performance Hub
On this page
Instructions current as of 26 November 2026 (AEST). Vendor MCP support changes frequently - verify against the linked sources if something looks different.
Gemini CLI stores MCP servers in settings.json and can add a remote Streamable HTTP server with gemini mcp add.
Server details
https://app.performancehub.co/mcp
Add with the CLI
export PH_MCP_API_KEY='<YOUR_TOKEN>'
gemini mcp add --scope user --transport http \
--header "Authorization: Bearer ${PH_MCP_API_KEY}" \
performance-hub https://app.performancehub.co/mcp
--transport httpselects Streamable HTTP.--scope userwrites~/.gemini/settings.json(all projects). The default scope is project (.gemini/settings.json).
Alternative header:
gemini mcp add --scope user --transport http \
--header "x-mcp-api-key: ${PH_MCP_API_KEY}" \
performance-hub https://app.performancehub.co/mcp
settings.json shape
{
"mcpServers": {
"performance-hub": {
"httpUrl": "https://app.performancehub.co/mcp",
"headers": {
"Authorization": "Bearer $PH_MCP_API_KEY"
}
}
}
}
Gemini CLI chooses transport by key: httpUrl for Streamable HTTP, url for legacy SSE, command for stdio. Use httpUrl for Performance Hub.
OAuth option
For servers that advertise OAuth, you can omit headers and let Gemini CLI discover and complete the flow on first use.
Verify
gemini mcp list
Start Gemini CLI and ask it to list Performance Hub tools available to your account.
Sources
- Gemini CLI — MCP servers: https://geminicli.com/docs/tools/mcp-server/
- Gemini CLI source docs: https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md
- Performance Hub MCP: https://app.performancehub.co/mcp