Skip to main content
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.
  1. Clone the repository:
    Clone Repo
  2. Build the Docker image:
    Build Docker Image
The image razorpay-mcp-server:latest is now available in your local Docker registry. Use it in place of razorpay/mcp in the configurations below.
  1. Clone the repository:
    Clone Repo
  2. Build the Go binary:
    Build Go Binary
The 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:
To use the Razorpay MCP Server with Claude Desktop:
  1. Install Claude Desktop.
  2. Go to Settings → Developer → Edit Config.
  3. Add the following to your claude_desktop_config.json file:
Handy Tips

Step 2: Set the Region

The server runs for one region at a time. Always set the region to US, 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.
To set the region, pass -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.
Watch Out!The region you set must match the country in your API key. For example, setting IN with an rzp_live_us_… key stops the server with an error.
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:
  1. Explore the Tools: See the Tools Reference for everything you can do.
  2. Configure Advanced Options: See the Configuration Guide for detailed settings.
  3. Review Use Cases: Check practical examples.
Last modified on November 26, 2026