Available in🇮🇳 India🇸🇬 Singapore🇺🇸 United States
The Razorpay Local MCP Server is a self-hosted solution that runs in your own environment and gives you complete control over your infrastructure. Your AI-assisted application starts the server and passes it your Razorpay API keys.
Handy TipsRegion support for the United States is available from version 1.3.0 of the Razorpay MCP Server. If you pulled the Docker image or built the binary earlier, update it before you continue.
Prerequisites
Before setting up the Razorpay Local MCP Server, ensure you have:- Docker: Container platform for running the MCP server.
- Git and Golang (Go): Required only if you build from source.
- Razorpay API Keys: Generate API keys from your Dashboard.
- AI-assisted Application: Claude Desktop, Visual Studio Code or a similar MCP-compatible application.
Setup Options
Choose a setup method to proceed. You can use the public Docker image (recommended), build the Docker image yourself or build from source.Public Docker Image (Recommended)
Public Docker Image (Recommended)
Razorpay publishes the server as the public Docker image To use a specific version, replace
razorpay/mcp. You do not need to build anything. Ensure Docker is installed and running, then pull the latest image:Pull Docker Image
razorpay/mcp with a version tag such as razorpay/mcp:v1.3.0 in the configurations below. You can find the available tags on Docker Hub.Build the Docker Image
Build the Docker Image
-
Clone the repository:
Clone Repo
-
Build the Docker image:
Build Docker Image
razorpay-mcp-server:latest is now available in your local Docker registry. Use it in place of razorpay/mcp in the configurations below.Build From Source
Build From Source
-
Clone the repository:
Clone Repo
-
Build the Go binary:
Build Go Binary
razorpay-mcp-server is created in your current directory. In your application’s MCP configuration, set command to the path of the binary instead of docker:Integration Steps
Step 1: Configure Application
Follow the integration steps given below:- For Claude Desktop
- For Visual Studio Code
To use the Razorpay MCP Server with Claude Desktop:
- Install Claude Desktop.
- Go to Settings → Developer → Edit Config.
- Add the following to your
claude_desktop_config.jsonfile:
Handy Tips
- Replace
your_razorpay_key_idandyour_razorpay_key_secretwith the API keys of your account in the United States. - Configure MCP servers in Claude Desktop
Step 2: Set the Region
The server runs for one region at a time. Always set the region toUS, as shown in the configuration samples above. For the United States, the server then:
- Calls the Razorpay API host
api-us.razorpay.com. - Shows only the tools available in the United States.
- Uses USD as the default currency and describes amounts to the AI assistant in USD.
-e RAZORPAY_REGION in the Docker args and add "RAZORPAY_REGION": "US" to env, or use the --region US flag with the binary. The server can also detect the region from the country code in an API key, such as rzp_live_us_…, but not every key carries a country code. Without a region, the server defaults to India and requests made with these keys fail authentication.
Refer to Configuration for all region options, including how to use accounts in more than one region.
Step 3: Restart Application
Restart your AI assistant application after configuration. You should see Razorpay MCP tools become available. Test the connection by asking: Show me available Razorpay tools. If successful, you should see the list of Razorpay MCP tools available in the United States.Next Steps
Once your Local MCP Server is running:- Explore the Tools: See the Tools Reference for everything you can do.
- Configure Advanced Options: See the Configuration Guide for detailed settings.
- Review Use Cases: Check practical examples.