Connect ChatMaxima MCP with Gemini
Add ChatMaxima as an MCP server in the Gemini CLI. Configure the URL in settings, authenticate with OAuth and build chatbots, 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. You add ChatMaxima to the CLI configuration, authenticate once with OAuth, and Gemini can then use ChatMaxima tools.
ChatMaxima MCP is a remote, streamable HTTP server secured with OAuth 2.1, so you never store an API key in your 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.
- The MCP URL:
https://chatmaxima.com/mcp
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.
Step 3: Authenticate 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 4: Verify the connection
List the MCP servers and their tools to confirm ChatMaxima is connected:
/mcp list
You should see the chatmaxima server with its available tools. The tools shown depend on your role in the selected workspace.
Step 5: 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.
Manage or revoke access
- In the Gemini CLI: remove the
chatmaximaentry frommcpServersinsettings.jsonto stop using it. - In ChatMaxima: open Settings, then Connected Apps, and revoke the connection. It stops working immediately.
Troubleshooting
/mcp list does not show ChatMaxima
- Confirm the
mcpServersblock useshttpUrland the exact URLhttps://chatmaxima.com/mcp. - Confirm the JSON is valid, with no trailing commas.
- Restart the Gemini CLI so it reloads
settings.json.
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.