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-cliOr if you prefer using npx without installing globally:
npx @google/gemini-cliStep 2: Authenticate with Google
Run Gemini CLI for the first time to authenticate with your Google account:
geminiWhen 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:
geminiStep 5: Complete OAuth with Adzviser
To authenticate with Adzviser, run the following command in Gemini CLI:
/mcp auth adzviserThis will start the OAuth flow. You'll be given a URL to open in your browser:
- Open the authentication URL in your browser
- Log in to your Adzviser account (or create one if you don't have one)
- Grant Gemini CLI access to your connected data sources
- 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:
- Clear your browser cookies for adzviser.com
- Try the authentication process again
- Make sure you're using the correct Adzviser account
Connection timeouts
If you experience timeouts:
- Check your internet connection
- Ensure you have an active Adzviser subscription
- Restart Gemini CLI and try again
Next Steps
Once connected, you can start getting data insights from your marketing and sales data!