Use Adquimo in Gemini CLI
Add Adquimo to Gemini CLI in settings.json or with gemini mcp add, sign in with /mcp auth or use an API key, and check the connection.
Updated
- Gemini CLI
On this page
Gemini CLI reads its MCP servers from settings.json: ~/.gemini/settings.json for every project, or .gemini/settings.json inside one project.
Requirements
- A current version of Gemini CLI.
- An Adquimo account in the private beta.
Set up with OAuth
Add the server from a terminal:
gemini mcp add --transport http adquimo https://mcp.adquimo.com/mcpOr add it to settings.json yourself. Gemini CLI uses the key httpUrl for Streamable HTTP servers:
{
"mcpServers": {
"adquimo": {
"httpUrl": "https://mcp.adquimo.com/mcp"
}
}
}Sign in and authorize
Start Gemini CLI and run:
/mcp auth adquimoGemini CLI opens Adquimo's sign-in in your browser. Sign in with your email code, review what Gemini CLI may do in your workspace and approve it.
Set up with an API key instead
For headless runs, create an API key in the Adquimo app, keep it in an environment variable and reference the variable in settings.json:
{
"mcpServers": {
"adquimo": {
"httpUrl": "https://mcp.adquimo.com/mcp",
"headers": {
"Authorization": "Bearer $ADQUIMO_API_KEY"
}
}
}
}Check it works
Run /mcp to see Adquimo and its tools, then ask:
Which ad accounts can you see in Adquimo?Gemini CLI lists the ad accounts connected to your workspace, or says none are connected yet.
Recommended tool permissions
Gemini CLI asks before running a tool unless the server is marked as trusted. Leave Adquimo untrusted, so tools that change something always ask, and approve read-only tools as you go.
Troubleshooting
| What you see | What to do |
|---|---|
| Adquimo is listed but its tools aren't | Run /mcp auth adquimo to finish signing in. |
| The server doesn't start | Check you used httpUrl, not url, for this server in settings.json. |
401 errors with an API key | ADQUIMO_API_KEY isn't set where Gemini CLI runs, or the key was revoked. |
Remove Adquimo
gemini mcp remove adquimoThen remove Gemini CLI under AI tools in Access in the Adquimo app, or revoke the API key you used.
Related
- Add Adquimo to your AI tool · For people and for AI agents reading on their behalf. Find the right setup for your AI tool, connect it once, and check it works.
- Use Adquimo in any MCP client · The endpoint, transport, OAuth discovery, scopes and API key header any MCP client needs to connect to Adquimo.