Connect ChatMaxima MCP with Gemini
Install the ChatMaxima extension for Gemini CLI with one command, sign in with OAuth, and build chatbots, WhatsApp templates and Flows from Gemini.
Overview
This guide shows how to connect ChatMaxima MCP with Gemini so Gemini can build chatbots, WhatsApp templates and WhatsApp Flows in your workspace. The supported path is the Gemini CLI, Google's open-source command-line agent, which can connect to remote MCP servers.
There are two ways to connect:
| Method | What you do | Best for |
|---|---|---|
| ChatMaxima extension (recommended) | Run one install command | Most users. Adds the server, working rules and ready-made skills, and updates itself |
| Manual configuration | Edit settings.json yourself | Teams that manage Gemini CLI settings by hand or per project |
Both methods connect to the same server. ChatMaxima MCP is a remote, streamable HTTP server secured with OAuth 2.1, so you never store an API key in a configuration file.
Prerequisites
Before you begin, ensure you have:
- A ChatMaxima account with a role that can use the builder, templates or Flows.
- The Gemini CLI installed and signed in to your Google account.
- Git installed, for the extension method. The CLI uses it to download the extension.
Option A: Install the ChatMaxima extension (recommended)
The ChatMaxima extension for Gemini CLI registers the ChatMaxima MCP server for you. It also adds a context file with the rules Gemini follows when it works in your workspace, such as asking which workspace to use and confirming before anything that cannot be undone, plus two skills with step-by-step recipes for building bots, templates and Flows.
Step 1: Install the extension
Run this in your terminal, outside an interactive Gemini session:
gemini extensions install https://github.com/chatmaxima-com/chatmaxima-gemini-cli-extension
Review the consent prompt and confirm. The CLI reports that the chatmaxima extension is installed and enabled.
Step 2: Sign in with OAuth
- Start the Gemini CLI.
- Trigger the ChatMaxima sign-in:
/mcp auth chatmaxima
- Your browser opens the ChatMaxima consent screen. Sign in to ChatMaxima.
- Choose the workspace you want Gemini to access if you belong to more than one team.
- Review the access and click Approve.
The CLI stores the connection so you do not need to sign in again for future sessions.
Step 3: Verify the connection
/mcp list
You should see the chatmaxima server with its available tools. The tools shown depend on your role in the selected workspace. Then continue with Build something.
Keep the extension up to date
The extension is published on GitHub. To pick up a new version, run:
gemini extensions update chatmaxima
Add --auto-update to the install command if you want the CLI to update it automatically.
Option B: Configure the server manually
Use this method if you prefer to manage the Gemini CLI configuration yourself. You get the same tools, without the extension's context file and skills.
Step 1: Open your Gemini CLI settings
The Gemini CLI reads MCP servers from a settings.json file. You can use the global file or a project-level file.
- Global:
~/.gemini/settings.json - Project:
.gemini/settings.jsonin your working directory
Open the file you want to use. Create it if it does not exist.
Step 2: Add ChatMaxima as an MCP server
Add a mcpServers entry that points to the ChatMaxima URL using the httpUrl key for streamable HTTP:
{
"mcpServers": {
"chatmaxima": {
"httpUrl": "https://chatmaxima.com/mcp"
}
}
}
If your settings.json already has other keys, add the mcpServers block alongside them rather than replacing the file.
Note: Use
httpUrlfor ChatMaxima. It is a streamable HTTP MCP server, not a local command, so there is nocommandorargsto set. If you also installed the extension, remove this entry, because asettings.jsonentry with the same name takes precedence over the extension.
Step 3: Sign in and verify
Start the Gemini CLI, run /mcp auth chatmaxima, sign in and approve access as described in Option A, then run /mcp list to confirm the chatmaxima server and its tools appear.
Build something
Ask Gemini to build in plain language, for example:
Using ChatMaxima, create a customer support chatbot for an online store.
Greet the visitor, offer buttons for Orders, Returns and Talk to a human,
and route each choice to the right reply. Run a test at the end.
Gemini calls ChatMaxima tools to create the bot, add and connect blocks, organize the canvas and run a test. Open the bot in your ChatMaxima dashboard to review and publish it.
Other prompts to try:
Show me the chatbots in my ChatMaxima workspace.
Draft a WhatsApp utility template that confirms an appointment for tomorrow
with a Reschedule button. Validate it but do not submit it.
Manage or revoke access
- Extension: run
gemini extensions uninstall chatmaxima, orgemini extensions disable chatmaximato turn it off without removing it. - Manual configuration: remove the
chatmaximaentry frommcpServersinsettings.json. - In ChatMaxima: open Settings, then Connected Apps, and revoke the connection. It stops working immediately.
Troubleshooting
The install command fails
- Confirm Git is installed and on your
PATH. - Run the command from a normal terminal, not inside an interactive Gemini session. Extension management commands are not available in interactive mode.
/mcp list does not show ChatMaxima
- For the extension, run
gemini extensions listand confirmchatmaximais installed and enabled. - For manual configuration, confirm the
mcpServersblock useshttpUrland the exact URLhttps://chatmaxima.com/mcp, and that the JSON has no trailing commas. - Restart the Gemini CLI so it reloads its configuration.
Authentication does not complete
- Run
/mcp auth chatmaximaagain and finish the browser sign-in. - Allow your browser to open the ChatMaxima consent window.
No tools appear after connecting
- Confirm your role in the selected workspace has builder, template or Flow access.
- Re-run
/mcp auth chatmaximaand select the correct workspace.