Gemini CLI Setup

Last updated February 24, 2026Published February 24, 2026

Use InsightfulPipe with Google's Gemini CLI to query your marketing data from the terminal.

Requirements

  • Node.js installed on your machine.
  • At least one active connector inside InsightfulPipe.

Setup Steps

  1. **Install Gemini CLI** if you haven't already:

```

npm install -g @google/gemini-cli

```

See the Gemini CLI documentation for details.

  1. **Add the MCP server** by running this command (replace the URL with the endpoint from your MCPs Servers page):

```

gemini mcp add --transport http google-ads-mcp https://google-ads.insightfulmcp.com/

```

  1. **Authenticate** — inside Gemini CLI, type `/mcp auth google-ads-mcp` to start the authentication flow.
  1. **Authorize access** — a browser window opens. Log in and click **Authorize access** to complete the connection.

Start a new session and ask questions about your data.

Tips

  • The server name (e.g., `google-ads-mcp`) is how Gemini CLI identifies the connection. Keep it short and descriptive.
  • Add multiple servers for different platforms — one command per server.
  • If authentication expires, re-run the `/mcp auth` command.

Unified MCP Server

Instead of adding individual servers, you can add the unified endpoint that gives access to all your connected platforms at once:

gemini mcp add --transport http insightfulpipe-mcp https://main.insightfulmcp.com/

Example Prompts

  • "Use Google Ads to show my top 5 campaigns by spend this month."
  • "Pull my Facebook Pages engagement for the last 7 days."
  • "What's my Google Analytics traffic breakdown by channel?"