Skip to content

Connect Gryz MCP in Gemini CLI

Add the Gryz MCP server to Google Gemini CLI with one command and OAuth sign-in, so Gemini can use your Gryz memory, documents and shared context.

Jacob Cansler · Maker of Gryz

Updated Reviewed by Jacob Cansler4 minBeginner

For your agent

Before you start

Connect Gryz and Gemini CLI can save and recall what you decided, read and publish your Gryz documents, and work from the same context as your other AI tools, like Claude Code, Codex and Cursor.

You need:

  • A free Gryz account (sign up)
  • Gemini CLI installed
  • A web browser on the same computer, for sign-in
  • The Gryz MCP server URL (always use www):
https://www.gryz.ai/api/mcp

Step 1: Add the Gryz server

gemini mcp add --transport http -s user gryz https://www.gryz.ai/api/mcp

--transport http is the streamable HTTP transport Gryz uses. -s user adds Gryz for every project. Leave it out to add Gryz to the current project only.

Prefer to edit the file? Add this to ~/.gemini/settings.json. Use httpUrl, not url: url is for the older SSE transport.

{
  "mcpServers": {
    "gryz": {
      "httpUrl": "https://www.gryz.ai/api/mcp"
    }
  }
}

Step 2: Sign in to Gryz

Start Gemini CLI, then run:

/mcp auth gryz
  1. Your browser opens to Gryz
  2. Sign in with Google, GitHub, an email code or a password
  3. Select Allow
  4. Go back to Gemini CLI

No API key is needed. Gemini CLI keeps the sign-in in ~/.gemini/mcp-oauth-tokens.json and refreshes it on its own. If it ever stops working, run /mcp auth gryz again.

On the Allow screen, Gemini CLI shows as Not verified. That is expected: only apps Gryz has checked show Verified by Gryz.

Step 3: Confirm the connection

In Gemini CLI:

/mcp list

Or in your terminal:

gemini mcp list

gryz should show as connected, with its tools listed.

Step 4: Make it automatic

Ask Gemini: Set up Gryz. Gryz offers to add a short note to ~/.gemini/GEMINI.md that tells Gemini to check Gryz when you ask about your work and to save your decisions. Gemini shows you the change and waits for your approval before it writes anything. See Make it automatic for what the note says.

Step 5: Verify with a prompt

  • List my Gryz documents
  • Remember that this repo uses pnpm, not npm
  • What did we decide about the database schema?

Example prompts

  • Save this plan to Gryz as a private document
  • Recall my open decisions for this project from Gryz before you start
  • Update my Gryz project doc with what we changed today

Troubleshooting

IssueFix
gryz shows as disconnectedRun /mcp auth gryz and finish sign-in in the browser
No browser opensSign-in needs a local browser. Run Gemini CLI on your own computer, not over SSH
Connection failedCheck the URL uses www and has no trailing slash. The bare domain redirects and drops sign-in
Tools not showingCheck settings.json uses httpUrl, not url, then restart Gemini CLI
Duplicate gryz entrygemini mcp remove gryz, then add it again

Gemini CLI's own reference is its MCP servers guide.

Reference

For Claude, ChatGPT, Cursor, Codex and other apps, plus the tools table and API key sign-in, see the MCP setup reference. Using Google Antigravity instead? See Connect in Antigravity.

Was this page helpful?

Next steps