Gemini CLI
Updated .
Gemini CLI can read your alerts and propose changes through Terminal's MCP server. MCP (Model Context Protocol) lets an AI assistant call tools on a server you choose. Read MCP for the tools and what they cost.
The address is https://terminal.tokensmarketcap.com/mcp. Use this address. Sign-in works only on this host.
Add the server
Gemini CLI reads MCP servers from ~/.gemini/settings.json for your user, or from .gemini/settings.json in a project. Add terminal under mcpServers:
{
"mcpServers": {
"terminal": {
"httpUrl": "https://terminal.tokensmarketcap.com/mcp"
}
}
}
Sign in
In a Gemini CLI session, type /mcp auth terminal. Your browser opens Terminal. Sign in to Terminal first if it asks.
Terminal's page asks whether to allow the app to use your Terminal account, and lists what it may do. "Read alerts, rules and receipts" is always on. "Create and change alerts" lets Gemini CLI propose changes for you to confirm. "Subscribe to services on the exchange" shows only if the exchange is open to your account. It starts unticked, because it spends credits. Untick anything you do not want, then press Allow.
Terminal's server follows the sign-in rules of the MCP specification. We have tested sign-in from Claude Code. We have not tested it from Gemini CLI yet. If sign-in does not finish, use an API key.
With an API key
Create a key at API keys. Tick "Create and change alerts" when you create it if Gemini CLI should propose changes. Every plan includes a key. Then send the key on the Authorization: Bearer header:
{
"mcpServers": {
"terminal": {
"httpUrl": "https://terminal.tokensmarketcap.com/mcp",
"headers": {
"Authorization": "Bearer your API key"
}
}
}
}
Replace your API key with the key. The key is then in the file, so use the file in your home directory, not the one in a project that other people can read. Do not put the key in the address. Each tool call counts as one API call for the key. Read Authentication for scopes and caps.
What the tools do
- Three tools read public pages and need no account:
get_scoreboard,get_shared_alertandget_methodology. - The read tools list your alert rules, your alerts, and what the price did after each one.
preview_ruleandexplain_movecan spend credits past what your plan includes. MCP gives the amounts.- To change anything, Gemini CLI calls a propose tool and shows you a summary. Nothing changes until you agree in the conversation.
- Gemini CLI asks before each tool call unless you set
trustfor the server. Leavetrustoff.
Terminal does not place trades, and neither do these tools.
What to ask
- "List my Terminal alerts."
- "What did the price do after my last SOL alert?"
- "Explain BTC's move over the last 4 hours." This uses
explain_move, which can spend credits. - "Pause my ETH alert." Gemini CLI proposes the change and shows you a summary. Nothing changes until you agree.
Stop access
Open the API keys page in Settings. Under Connected apps, revoke Gemini CLI. If you connected with a key, revoke the key on the same page. Then remove the terminal entry from the file you added it to.
Where these steps come from
The file names, the mcpServers entry, the httpUrl and headers fields and the /mcp auth command are from the Gemini CLI documentation, MCP servers with the Gemini CLI, read on November 11, 2026. Google can change them. If a step here does not match what you see, follow that page.
All developer pages
Terminal reports market events for conditions you set. It does not tell you to buy, sell, or hold, and it does not place trades.