Connect Gemini CLI

MCP Endpoint

URL
https://ai-mcp.insyncanalytics.com/mcp

Config File

Gemini CLI reads MCP server configuration from:

bash
~/.gemini/settings.json

Create the file if it does not exist.

Configuration Block

Gemini CLI reads MCP server configuration from:

json
{
  "mcpServers": {
    "insync-analytics": {
      "httpUrl": "https://ai-mcp.insyncanalytics.com/mcp",
      "timeout": 30000
    }
  }
}

Important: Gemini CLI uses "httpUrl" — not "url" as used by Claude Desktop and VS Code. Using the wrong key will result in the server not being recognized.

Setup Steps

  1. Open or create ~/.gemini/settings.json`.
  2. Add the configuration block above. If the file already has other content, merge the "mcpServers" section.
  3. Save the file.
  4. Start (or restart) Gemini CLI.
  5. On first financial data query, a browser window will open for OAuth authentication.
  6. Log in with your InSync Analytics credentials. The token is stored automatically.

Authentication Flow

Gemini CLI handles OAuth via the same redirect flow as other clients:

  1. First request requiring financial data → browser opens.
  2. Log in at the InSync authentication page.
  3. Log in with your InSync Analytics credentials.
  4. Browser redirects back → token stored in Gemini CLI's session.

Tokens refresh automatically on subsequent sessions.

Verification

After setup, run Gemini CLI and ask: "What financial data tools are available?"

The response should reference insync_assistant and list InSync's financial data capabilities.