settings.json file, or adds them through its own mcp subcommand.
Global or per project?
Add the server
The quickest route is the CLI.-s user writes to your user-level file; without it, the server is added to the current project:
settings.json directly:
settings.json
2extract as another key inside the existing mcpServers object.
Use
httpUrl, not url. In Gemini CLI, httpUrl selects Streamable HTTP, while url selects the older SSE transport.Verify
2extract should be listed as connected. Then start Gemini CLI and ask:
What is my 2extract balance?
A number comes back, and no proxy was created. Inside a session,
/mcp lists the server with its tools and prompts.Troubleshooting
Server is listed but disconnected
Server is listed but disconnected
Check the key is
httpUrl and the URL keeps the /mcp path. https://mcp.2extract.com on its own serves a web page, not the protocol.Some tools fail, others work
Some tools fail, others work
A scope problem rather than a connection problem. The key is missing the scope those tools need - see Overview.
Next steps
Tools
Everything the agent can call.
Other clients
Any other MCP client.