Use Adzviser on Gemini
Setup Gemini CLI

Set Up Gemini CLI with Adzviser

To use Adzviser with Gemini, you'll need to install and configure Gemini CLI with our remote MCP server.

Watch this guide to using Adzviser on Gemini CLI

⚠️

Prerequisites: You need Node.js (v20+) and npm installed on your system. Gemini CLI runs in your terminal and requires a command-line environment.

Step 1: Install Gemini CLI

Open your terminal and install Gemini CLI globally using npm:

npm install -g @google/gemini-cli

Or if you prefer using npx without installing globally:

npx @google/gemini-cli

Step 2: Authenticate with Google

Run Gemini CLI for the first time to authenticate with your Google account:

gemini

When asked "How would you like to authenticate for this project?" select 1. Login with Google, then follow the browser prompts to sign in.

Step 3: Configure Adzviser MCP Server

Create or edit the Gemini CLI settings file to add Adzviser as an MCP server. The settings file is located at ~/.gemini/settings.json.

Add the following configuration:

{
  "mcpServers": {
    "adzviser": {
      "url": "https://mcp.adzviser.com/html"
    }
  }
}

For project-specific configuration, you can also create a .gemini/settings.json file in your project directory.

Step 4: Start Gemini CLI

Launch Gemini CLI:

gemini

Step 5: Complete OAuth with Adzviser

To authenticate with Adzviser, run the following command in Gemini CLI:

/mcp auth adzviser

This will start the OAuth flow. You'll be given a URL to open in your browser:

  1. Open the authentication URL in your browser
  2. Log in to your Adzviser account (or create one if you don't have one)
  3. Grant Gemini CLI access to your connected data sources
  4. Return to your terminal—authentication will complete automatically

Step 6: Verify Connection

Test that Adzviser is connected by asking Gemini about your data:

What workspaces have I created in Adzviser?

Gemini should respond with a list of your workspaces.

Troubleshooting

"MCP server not found" error

Make sure your settings.json file is properly formatted and the Adzviser URL is correct:

  • URL: https://mcp.adzviser.com/html

For more details on MCP server configuration, see the official Gemini CLI MCP server guide.

Authentication issues

If OAuth fails:

  1. Clear your browser cookies for adzviser.com
  2. Try the authentication process again
  3. Make sure you're using the correct Adzviser account

Connection timeouts

If you experience timeouts:

  1. Check your internet connection
  2. Ensure you have an active Adzviser subscription
  3. Restart Gemini CLI and try again

Next Steps

Once connected, you can start getting data insights from your marketing and sales data!