Skip to main content

Connect Measure Studio to Google Gemini (Gemini CLI)

How to connect Measure Studio's MCP server to Gemini CLI so you can query your social analytics in plain language.

Written by Nicole Soria

Measure Studio runs over MCP (Model Context Protocol), so you can pull your social analytics straight into Gemini CLI and ask about performance in plain language instead of exporting data or digging through dashboards.

Before you start

You need:

  • A Measure Studio account, logged in

  • Gemini CLI installed, with your Google account signed in (geminicli.com)

The connection uses your Measure Studio login, so Gemini sees exactly what you'd see in the app. If you can only edit reports you authored, that's still true inside Gemini CLI.

Set it up

  1. Open (or create) your Gemini CLI settings file: ~/.gemini/settings.json on macOS/Linux, %USERPROFILE%\.gemini\settings.json on Windows. Use a project-level .gemini/settings.json instead if you only want this connected for one project.

  2. Add Measure Studio to the mcpServers block:

    {
      "mcpServers": {
        "measure-studio": {
          "httpUrl": "https://app.measure.studio/mcp"
        }
      }
    }

    Use a hyphen, not an underscore, in the server name (measure-studio), since Gemini CLI uses underscores internally to prefix tool names.

  3. Restart Gemini CLI, then run:

    /mcp auth measure-studio

  4. Your browser opens to Measure Studio. Sign in and approve the connection.

  5. Run /mcp list and confirm Measure Studio shows as connected.

That's it. No API keys, no exports.

What to ask

Once connected, ask Gemini about your accounts the way you'd ask a teammate:

  • "What were my top 5 Instagram posts last month by reach?"

  • "How does my TikTok engagement rate compare to my benchmark?"

  • "Build a slide comparing engagement on YouTube vs. TikTok in Q1."

  • "Give me a summary of our social performance this month for a client email.

Any slides Gemini builds land in Measure Studio under Reports → My AI reports, so you can keep working on them there.

For sharper answers, name the platform, give an exact date range, and say which metric you want. "How did my posts do recently?" leaves Gemini guessing; "How did my Instagram Reels perform May 1-31, 2026 on reach?" doesn't.

What it can and can't do

Gemini can read post and account metrics, benchmarks, groups, and historical trends, and it can create report slides on your behalf. It can't post content, change account settings, or touch billing.

Authentication runs on OAuth 2.1 with PKCE: Measure Studio never shares your credentials with Gemini, only a token scoped to your account, cached locally by Gemini CLI. You can revoke access anytime from your Measure Studio account settings.

If something's not working

  • Can't connect: double check the URL is exactly https://app.measure.studio/mcp, no trailing slash, and that it's set as httpUrl (not url or command).

  • Authorization fails: confirm you're logged into Measure Studio in your browser first, and that /mcp auth measure-studio was able to open a browser window (this won't work over SSH or on a headless machine).

  • No data comes back: check that the connected account you authorized with actually has recent data.

  • Data looks stale: check Settings → Connected Accounts for the last sync time; LinkedIn data can lag up to 48 hours.

  • "Unauthorized" keeps coming back: run /mcp auth measure-studio again to re-authenticate; if that doesn't help, delete Gemini CLI's cached MCP tokens and retry.

Still stuck? Remove the measure-studio entry from settings.json and set it up again following the steps above.

Did this answer your question?