Connect Gemini CLI
Add adtool.ai servers to Gemini CLI from the command line or in settings.json.
Checked against Google's Gemini CLI docs on 28 September 2026. Menu names may change.
Add the servers
sh
gemini mcp add --transport http adtool-ga4 https://mcp-sandbox.adtool.ai/ga4Or add the server to ~/.gemini/settings.json:
json
{
"mcpServers": {
"adtool-ga4": { "httpUrl": "https://mcp-sandbox.adtool.ai/ga4" }
}
}Add adtool-gtm with https://mcp-sandbox.adtool.ai/gtm the same way.
Gemini CLI detects that sign-in is needed. Run /mcp auth adtool-ga4 to sign in or to sign in again.
What happens at sign-in
An adtool.ai page opens in your browser. It shows which client is asking and where it will send you back. You pick the properties, containers or ad accounts the client may use and its access level. Access levels and approvals explains what each level allows.
Gemini CLI signs in through a local address on your computer, so the page also shows a notice that adtool.ai cannot confirm who published the program. Allow it only if you added the server yourself.
Known limits
- Do not set
trust: truefor adtool.ai servers: it skips Gemini's confirmation prompts. - Gemini CLI cuts tool names longer than 63 characters, counted with its
mcp_<server>_prefix, so keep server names short, such asadtool-ga4.