Connect Razorpay MCP Server to Gemini CLI
Connect the Razorpay MCP Server to Gemini CLI by adding the server to the mcpServers block in settings.json using HTTP transport.
Gemini CLI discovers MCP servers from the mcpServers block in its settings.json file. Add the Razorpay Remote MCP Server using HTTP transport.
-
Open your Gemini CLI settings file. Use
~/.gemini/settings.jsonfor global configuration, or.gemini/settings.jsonwithin a project. -
Add the following Razorpay server entry and save the file:
{"mcpServers": {"razorpay": {"httpUrl": "https://mcp.razorpay.com/mcp","headers": {"Authorization": "Basic <your-base64-encoded-key-secret>"}}}} -
Replace
to generate the token.<your-base64-encoded-key-secret>with your Base64 token. You can also reference an environment variable, such as$RAZORPAY_TOKEN, as Gemini CLI expands variables in the configuration. Refer to the -
Restart Gemini CLI and run
/mcpto check the server status. If required, run/mcp reloadto fetch the tools again.
Need Help?
If you need any assistance with the integration, reach out to us at
.Is this integration guide useful?
ON THIS PAGE