Connect to Gemini CLI
You can request Adobe Analytics and Customer Journey Analytics data using Gemini CLI, the open-source command-line AI agent from Google.
data-variant=info
data-slots=text
-
Verify that your account has MCP access for the desired product. See Set up permissions.
-
Install Gemini CLI, then run
geminiand sign in using one of the supported authentication methods. -
Open your Gemini CLI settings file in a text editor. If the file doesn't exist, create it.
- User settings apply to every project:
~/.gemini/settings.json(on Windows,%USERPROFILE%\.gemini\settings.json) - Project settings apply only when you run Gemini CLI from that project:
.gemini/settings.jsonin the project root
- User settings apply to every project:
-
Add the desired product to the
mcpServersobject. If you added both Adobe Analytics and Customer Journey Analytics, your file might look similar to the following:{ "mcpServers": { "customer-journey-analytics": { "httpUrl": "https://cja-mcp.adobe.io/mcp" }, "adobe-analytics": { "httpUrl": "https://aa-mcp.adobe.io/mcp" } } }Use
httpUrl, noturl. Each server key, such asadobe-analytics, is the name you use in/mcpcommands. If the file already contains other settings, addmcpServersalongside them instead of replacing them. -
Save
settings.json. Start Gemini CLI by runninggemini, or restart it if it's already running. -
Run
/mcp list. Each server that you added shows asDisconnecteduntil you authenticate. -
Run
/mcp authfollowed by the server name, such as/mcp auth customer-journey-analyticsor/mcp auth adobe-analytics. -
Gemini CLI opens a browser window. Authenticate using your Adobe ID credentials. Ensure that you select the desired IMS org if your Adobe ID belongs to more than one. This step requires a browser on the same machine as Gemini CLI, so it doesn't work over a remote SSH session.
-
Return to Gemini CLI and run
/mcp listagain. When authentication succeeds, each server lists its tools.
The tool is ready for use. You can converse with Gemini CLI in the context of your Analytics environment by invoking the tool:
"Use the Adobe Analytics tool to show me what report suites are available."
"Use the Customer Journey Analytics tool to show me what data views are available."
By default, Gemini CLI asks you to approve each tool call before it runs. If your Adobe session expires, run /mcp auth with the server name again.