Connect Gemini CLI
Connect Gemini CLI to ModelPort using MCP.
Setup
- Set MODELPORT_API_KEY in the environment used by Gemini CLI.
- Merge the server entry into ~/.gemini/settings.json or the project’s .gemini/settings.json. Restart and use /mcp to check the tools.
Gemini CLI configuration
{
"mcpServers": {
"modelport": {
"httpUrl": "https://apimodel.store/mcp",
"headers": {
"Authorization": "Bearer ${MODELPORT_API_KEY}"
}
}
}
}Verify the connection
Call list_models with {"available_only":false} to verify access to the catalog. Callable models depend on your account and region.