MCP Integration
Gemini CLI Setup
Add an InsightfulPipe server to Gemini CLI with gemini mcp add, then authenticate with /mcp auth. After that, Gemini CLI can query your connected accounts from the terminal.
Before you start
- At least one account connected in InsightfulPipe. See First Connection.
- The server URL and name from MCP Servers in the app. Names follow the pattern
<platform>-mcp, for examplegoogle-ads-mcp.
Setup steps
- Install Gemini CLI if you haven't already:
npm install -g @google/gemini-cli - Run this command to add the server:
gemini mcp add --transport http google-ads-mcp https://google-ads.insightfulmcp.com/ - In Gemini CLI, type
/mcp auth google-ads-mcpto authenticate. - A browser window opens. Log in and click Authorize access.
Once connected, start a new session and ask about your data.
Add every connected source at once
gemini mcp add --transport http main-mcp https://main.insightfulmcp.com/Then run /mcp auth main-mcp and authorize access.
Example prompts
- "What was my Google Analytics 4 traffic by channel for the last 7 days?"
- "Show engagement on my Facebook Page posts from the last 7 days."