Skip to content

Connect Mochi to Gemini

You can connect Mochi to the Gemini app in your browser or to Gemini CLI in your terminal. New to Mochi MCP? Start with the overview.

Server URL: https://mcp.themochi.app/mcp

Gemini app (gemini.google.com)

What you need: Google currently limits custom apps to:

  • a personal Google Account (work and school accounts are excluded);
  • people 18 or over in the US, using Gemini in English;
  • Gemini Apps activity (Keep Activity) switched on.

You add the app on the web. Once added, it also works in the Gemini mobile app.

  1. On a computer, go to gemini.google.com and open Settings → Connected Apps.
  2. Under Custom apps, click Add a custom app.
  3. Enter https://mcp.themochi.app/mcp and click Next.
  4. Follow the on-screen steps. When the Mochi sign-in page opens, sign in, pick your workspace and approve.

To use it, type @ in a chat, pick Mochi and ask your question.

Google's help page doesn't describe the sign-in screens in detail, and some regions show this feature under a different name. If you don't see Custom apps, your account isn't eligible yet. Use Gemini CLI below instead.

Gemini CLI

What you need: Gemini CLI on a computer with a browser. Sign-in needs a browser on the same machine, so it won't work over SSH or in a container.

  1. Add Mochi. Either run:

    bash
    gemini mcp add --transport http mochi https://mcp.themochi.app/mcp

    or add this to ~/.gemini/settings.json yourself:

    json
    {
      "mcpServers": {
        "mochi": {
          "httpUrl": "https://mcp.themochi.app/mcp"
        }
      }
    }

    Use httpUrl, not url: url is for the older SSE transport.

  2. Start gemini and sign in:

    /mcp auth mochi

    A browser opens. Sign in to Mochi, pick your workspace and approve.

  3. Check it worked: /mcp shows Mochi as CONNECTED.

Gemini CLI keeps your sign-in in ~/.gemini/mcp-oauth-tokens.json and refreshes it automatically.

Google has replaced Gemini CLI with Antigravity CLI for unpaid and Google One users. We haven't confirmed whether Antigravity CLI uses the same settings file.

Troubleshooting

ProblemFix
No "Custom apps" in Gemini settingsYour account isn't eligible (personal US account, 18+, English, Keep Activity on).
/mcp auth doesn't open a browserYou're on a remote or headless machine. Run Gemini CLI locally.
Mochi shows as disconnectedRun /mcp auth mochi again.

Checked against Google's documentation on 26 November 2026: custom apps in Gemini and Gemini CLI MCP servers.

Feature reference