Connect Dexi to Gemini CLI
MCP server · https://mcp.dexi.net/mcp
Gemini CLI is Google’s open-source AI agent for the terminal. It connects to remote MCP servers over streamable HTTP and handles the OAuth sign-in for you. With Dexi added, Gemini can search your notes by keyword or meaning, read them, and save notes as you work.
Your notes are the same ones Claude and ChatGPT see when they’re connected, so a decision saved from one assistant can be found from any of the others.
What you need
- Gemini CLI installed and signed in (
npm install -g @google/gemini-cli, or Homebrew). - A Dexi account — free at app.dexi.net, or create one on the approval page when you connect.
Setup
Add the server
In a terminal:
{
"mcpServers": {
"dexi": {
"url": "https://mcp.dexi.net/mcp",
"type": "http"
}
}
}gemini mcp add --transport http --scope user dexi https://mcp.dexi.net/mcp- Without
--scope userthe server is added to the current project’s.gemini/settings.jsononly.
Authenticate
- Start
geminiand run/mcp auth dexi. - Your browser opens Dexi’s approval page — sign in (or create a free account), review the access being granted, and approve.
- Run
/mcpto confirm dexi shows as connected with its tools listed.
Try it
Try: “Search my Dexi notes for what we decided about the billing migration” — or “save a note to Dexi summarizing this session, tagged #atlas.” Gemini CLI asks you to confirm each tool call unless you trust the server.
Troubleshooting
gemini mcp list shows dexi as Disconnected
That’s the state before you sign in. Run /mcp auth dexi inside Gemini CLI and complete the browser approval; afterwards tokens refresh automatically.
The browser approval finished but Gemini still can’t use the tools
Restart the session so the server reconnects with the new credentials, then check /mcp. If it still fails, remove the stored credentials with /mcp auth dexi again and approve once more.
Gemini hangs on “This is taking a bit longer” or says a model is “no longer available”
That’s Gemini’s model, not Dexi: no Dexi tool has been called yet. Google retires older models for new API keys, and Gemini CLI’s Auto setting can still pick one, which shows up as an endless spinner in the interactive app. Choose a current model with /model, or start Gemini CLI with the -m flag (for example gemini -m gemini-3.8-flash). If it still hangs on a brand-new free-tier key, wait a few minutes and try again.
Login with Google fails with “requires setting the GOOGLE_CLOUD_PROJECT”
Google Workspace accounts need a Google Cloud project with Gemini Code Assist before Login with Google works. The quickest way around it is a Gemini API key from aistudio.google.com/apikey: run /auth, choose Use Gemini API Key, and paste it. A personal Google account also works. Either way, the Dexi connection stays as it is.
Disconnecting
In the Dexi app, open Settings → Connected apps to see every app connected to your account and disconnect any of them instantly. Revoking access there signs Gemini CLI out of your notes no matter what’s configured on the client side.
Frequently asked questions
Does this work in the Gemini app?
Yes, from a personal Google account: the Gemini app connects through Developer Mode, and it has its own setup guide (Connect Dexi to Gemini). This page covers Gemini CLI.
Does Gemini need an API key for Dexi?
No. Dexi uses OAuth: Gemini CLI registers itself and you approve it on Dexi’s sign-in page. You can revoke it any time from Settings → Connected apps in Dexi.
Can I see which notes Gemini wrote?
Yes. Notes created through an AI app are labelled with the app’s name in Dexi, and the tools return that name too, so Claude can see a note came from Gemini and the other way round.
Other clients
Dexi works with any MCP client that supports streamable HTTP with OAuth — see the overview, or jump to a guide: Claude, Claude Code, ChatGPT, Gemini, Goose, Hermes Agent, OpenClaw, Cursor, VS Code, Smithery.
Questions?
Email team@dexi.net — see also Support and our Privacy Policy.