# 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: 2026-12-03
Status: Private beta. Open to a small group of design partners while we test it. Details may change before general availability.
Canonical: https://adquimo.com/docs/ai-tools/gemini-cli

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:

```bash
gemini mcp add --transport http adquimo https://mcp.adquimo.com/mcp
```

Or add it to `settings.json` yourself. Gemini CLI uses the key `httpUrl` for Streamable HTTP servers:

```json
{
  "mcpServers": {
    "adquimo": {
      "httpUrl": "https://mcp.adquimo.com/mcp"
    }
  }
}
```

## Sign in and authorize

Start Gemini CLI and run:

```text
/mcp auth adquimo
```

Gemini 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`:

```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:

```text
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

```bash
gemini mcp remove adquimo
```

Then 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](https://adquimo.com/docs/add-adquimo-to-your-ai)
- [Use Adquimo in any MCP client](https://adquimo.com/docs/ai-tools/any-mcp-client)
