Gemini CLI Setup
Connect Ad Superpowers to Google Gemini CLI for AI-powered marketing insights in your terminal.
API Key Required
This setup requires an API key. Get your key from the API Keys page in your dashboard.
Install Gemini CLI
Install Gemini CLI globally via npm. Requires Node.js 18+.
npm install -g @google/gemini-cliStore Your API Key Securely
Create a .env file in ~/.gemini/ to store your Ad Superpowers API key securely:
# ~/.gemini/.env
AD_SUPERPOWERS_KEY=YOUR_API_KEYConfigure Ad Superpowers
Add Ad Superpowers to your ~/.gemini/settings.json. Create this file if it doesn't exist:
{
"mcpServers": {
"ad-superpowers": {
"url": "https://mcp.adsuperpowers.ai/v1",
"headers": {
"Authorization": "Bearer $AD_SUPERPOWERS_KEY"
}
}
}
}Verify Installation
Start Gemini CLI and check that Ad Superpowers is connected:
gemini
/mcp listStart Using
You should see ad-superpowers with 39 tools available. Try asking about your marketing data!
Tips
- Use `/mcp list` in Gemini CLI to verify the connection and see all available tools.
- You can also use `httpUrl` instead of `url` for HTTP streaming transport.
- Set `"trust": true` in the config to bypass tool confirmations (use with caution).
External Resources
Next Steps
Having trouble? Check our troubleshooting guide or contact support.