Gemini CLI MCP integration

Connect Gemini CLI to Mida from your terminal with an HTTP MCP server command and Mida account authorization.

AI Assistants Two-way sync Remote MCP Works with Mida A/B Testing & Personalization

About Gemini CLI

Gemini CLI is an AI assistant or MCP-compatible client that can use Mida tools after you authorize your dashboard account. Connecting it with Mida lets teams inspect experiments, create drafts, request preview URLs, and summarize results from the assistant they already use.

How the Gemini CLI integration works

Mida exposes a remote HTTP MCP server at https://mcp.mida.so/mcp. Gemini CLI can register it with the gemini mcp add command, verify it with /mcp, and authorize Mida when prompted.

Requirements

  • Gemini CLI installed and authenticated.
  • An active Mida dashboard account.
  • Access to the Mida project you want Gemini CLI to use.

How to use Gemini CLI with Mida

  • Make sure Gemini CLI is installed and you are signed in before adding MCP servers.
  • Run: gemini mcp add --transport http mida https://mcp.mida.so/mcp
  • Run gemini, then use /mcp to confirm that mida appears. If Gemini asks for authorization, complete Mida sign-in and choose your project.
  • Ask Gemini CLI to summarize Mida experiments, generate draft ideas, or retrieve preview URLs from your terminal.

Use cases

Summarize experiment performance in plain English

Ask Gemini CLI to list active Mida experiments, explain winners and losers, and highlight what to review before making a launch decision.

Create draft tests faster

Describe the page, hypothesis, and variant idea to Gemini CLI. Mida MCP can create drafts where supported so your team can review changes before launch.

Generate preview URLs for review

Ask Gemini CLI for a Mida preview URL for a variant or draft, then share it with teammates before publishing.

Turn business goals into conversion goals

Use Gemini CLI to help create Mida goals for purchases, signups, bookings, or custom events without hunting through the dashboard.

Shared data

Mida and Gemini CLI exchange the following events:

Event Direction Description
list_experiments Data out Gemini CLI can request experiment lists and summaries from the Mida workspace you authorize.
create_draft_experiment Data in Gemini CLI can create draft experiments, goals, or personalizations for review in Mida.
get_preview_url Data out Gemini CLI can fetch Mida preview URLs for variants and drafts.

Frequently asked questions

Do I need to share a Mida API key with Gemini CLI?

No. Use the Mida MCP server URL and sign in with Mida when prompted. Do not paste API keys into your assistant.

Can Gemini CLI launch experiments automatically?

MCP creates drafts by default where supported, so you can review changes in Mida before launching. You remain in control of what goes live.

Which Mida project does Gemini CLI use?

During authorization, choose the Mida project the assistant should use. If you manage multiple projects, verify the selected project before creating tests, goals, or personalizations.

What MCP server URL should I use?

Use https://mcp.mida.so/mcp as the remote MCP server URL.

Ship A/B tests 10x faster — connected to your stack

Mida is the lightweight A/B testing and personalization platform that integrates with the tools you already pay for.

Decorative graphic Decorative graphic Decorative graphic Decorative graphic