Gemini CLI connected to Reachd answers from a business’s AI visibility data: the score, the place among competitors and the open Reachd actions, each tied to a page and to what that page is missing. Run in the site’s repository, it can make those edits in the same session.
Gemini CLI connects to Reachd in two ways: OAuth with a Reachd login, or a personal API key sent in a header. Either way, setup is one gemini mcp add command, and the only extra step is trusting the folder Gemini CLI runs in.
Before you add the MCP server to Gemini CLI
- A Reachd account with at least one business. A free AI visibility check creates one in a few minutes.
- For the key route, an API key. In the Reachd app open Settings with the gear in the top bar, choose API & MCP and click Create key. Reachd shows the key once, so copy it before leaving the page.
Add Reachd to Gemini CLI with gemini mcp add
gemini mcp add --transport http -s user reachd https://api.reachd.ai/mcp
-s user writes the server to ~/.gemini/settings.json, so it loads in every folder. Without it, gemini mcp add writes to .gemini/settings.json in the current folder only. Without --transport http, the address is taken as a local command to start. Then sign in:
- Start
geminiin a trusted folder. - Run
/mcp auth reachd. A browser tab opens on the Reachd sign-in. - Sign in with the email used in the Reachd app and approve access on the consent screen.
Gemini CLI keeps the token in ~/.gemini/mcp-oauth-tokens.json and refreshes it. The agent then reads every business that login can open in Reachd. The sign-in needs a local browser and a free local port for the redirect, so over SSH the key route below is simpler.
Add Reachd to Gemini CLI with an API key
The key travels in the Authorization header with every request, so there is no sign-in:
gemini mcp add --transport http -s user \
--header "Authorization: Bearer rk_your_key" \
reachd https://api.reachd.ai/mcp
Put the key from Reachd in place of rk_your_key. The key reads the Reachd workspace it was created in, with its creator’s access, and stops working if that person leaves the workspace. It sits in settings.json as plain text, so keep a project-level file with a key out of git. If the key leaks, revoke it in Settings → API & MCP, run gemini mcp remove reachd and add the server again.
The Reachd entry in settings.json
gemini mcp add writes this to settings.json:
{
"mcpServers": {
"reachd": {
"url": "https://api.reachd.ai/mcp",
"type": "http",
"headers": {
"Authorization": "Bearer rk_your_key"
}
}
}
}
Without the key, the entry has no headers block. Older guides show the address under httpUrl, which still selects the same streamable HTTP transport. Other fields the entry accepts include timeout in milliseconds (10 minutes by default), trust to skip tool confirmations, and includeTools or excludeTools to narrow the tools.
Check that the Reachd MCP server works
Inside gemini, run /mcp. The reachd line should read CONNECTED and list the Reachd tools. From the shell, gemini mcp list prints the same status. Then ask:
How is the AI visibility of my business this week?
What insights has Reachd found to get my business recommended first by ChatGPT?
Gemini CLI finds the business with list_businesses, then answers the first question from get_visibility_status, which returns the score, the main competitors and how often each AI engine recommends the business. For the second it calls get_action_items and lists the insights Reachd has open, each with the page to change and what that page is missing. With several businesses in the account, the question should name one. Gemini CLI asks before each tool call unless the server is marked trust, and every Reachd tool only reads. Ask next:
- “Which competitors does AI recommend ahead of my business, and what does it quote about the leader?”
- “Take the Reachd action for the pricing page and make that change in this repository.”
Reachd reads a changed page on its next run and closes the action once the page carries the change. The Reachd MCP server page shows what else Gemini CLI can ask Reachd.
Gemini CLI MCP problems and what they mean
MCP servers are configured but disabled because this folder is untrusted
gemini mcp list shows reachd as Disabled. In an untrusted folder Gemini CLI connects to no MCP server, the ones in ~/.gemini/settings.json included. Start gemini in the folder and choose Trust folder, or run gemini trust there.
MCP issues detected. Run /mcp list for status.
Gemini CLI stays quiet about server errors at startup and shows this one line instead. /mcp list prints the reason for reachd.
reachd shows DISCONNECTED
With a key, Reachd refused it: the header has to read Bearer, a space and the whole key, and the key must be active in Settings → API & MCP. With OAuth, the sign-in hasn’t happened or expired, so run /mcp auth reachd.
The server is missing from /mcp
It was added at project scope in another folder. Run gemini mcp list there, or add it again with -s user.
Gemini CLI answers without calling Reachd
Name Reachd in the request, for example “using Reachd, list the open actions for my business”.
Frequently Asked Questions
Where does Gemini CLI store MCP servers?
In settings.json, under mcpServers. The user file is ~/.gemini/settings.json and applies in every folder. A project file at .gemini/settings.json applies in that folder only, and gemini mcp add writes there unless it gets -s user.
How do I add a remote MCP server to Gemini CLI?
Run gemini mcp add --transport http <name> <url>, with -s user to make it available in every folder. The command writes an entry with url and type http to settings.json. Headers go in with --header "Name: value".
Does Gemini CLI support OAuth for MCP servers?
Yes. When a remote server answers 401 and publishes OAuth metadata, Gemini CLI discovers the sign-in, registers itself and opens a browser. /mcp auth <name> starts or repeats the sign-in, and tokens are kept in ~/.gemini/mcp-oauth-tokens.json.
Why does Gemini CLI show my MCP server as Disabled?
The current folder isn't trusted. Gemini CLI connects to no MCP server in an untrusted folder, user-level ones included. Trust the folder in the dialog shown when gemini starts there, or run gemini trust in it.