Home / Clients / Gemini CLI
Connect Gemini CLI to hosted MCP servers
Give Gemini CLI, Google's terminal agent, 10,812 tools through one remote MCP server, without hitting its tool limit.
Steps
- Create an API key in the dashboard.
- Add the server under "mcpServers" in ~/.gemini/settings.json as shown below.
- Run /mcp in Gemini CLI to confirm it connected.
Add to ~/.gemini/settings.json
{
"mcpServers": {
"hj-hub": {
"httpUrl": "https://mcp.hjlabs.in/mcp/hub",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Replace YOUR_API_KEY with a key from your dashboard. Gemini CLI connects to the HTTP endpoint directly: no bridge, nothing to install.
What Gemini CLI sees
Three tools: search_tools, call_tool and use_tool. When it needs something, it searches in plain words, gets the best matches with their schemas, and calls one. Any tool can also be called by its full name. You can connect an individual server instead, such as Public Knowledge or Developer Toolbox; the snippet is on each server page.