Skip to main content
Available in🇮🇳 India🇸🇬 Singapore🇺🇸 United States
The Razorpay MCP Server uses the following environment variables for configuration:

Command Line Flags

When running the Local MCP Server binary directly, you can use the following command line flags:

Regions

The server runs for one region at a time. The region decides:
  • Which Razorpay API host is called. For the United States, this is api-us.razorpay.com.
  • Which tools are available. Tools for products not offered in the region are hidden.
  • The default currency and how amounts are described to the AI assistant. For the United States, this is USD.

How the Region is Chosen

Always set the region to US. Not every API key carries a country code, so do not rely on the key to select the region. The server chooses the region in the following order:
  1. The --region flag or the RAZORPAY_REGION environment variable, if set.
  2. Otherwise, the country code in the API key. Keys such as rzp_live_us_… or rzp_test_us_… select US.
  3. Otherwise, India (IN).
Watch Out!Setting a region that does not match the country in the API key stops the server with an error. For example, --region IN with an rzp_live_us_… key.

Regions and Toolsets

The region decides which tools exist. The --toolsets and --read-only options only narrow that set further.
  • If you request a toolset that has no tools in the region, the server stops with an error. For example, --toolsets payouts --region US.
  • If a requested toolset has some tools that the region does not offer, the server leaves those tools out and logs them.

Accounts in More Than One Region

If you have Razorpay accounts in more than one region, add one server per region in your MCP client, each with the API keys of that region:

Override a Region Profile

Use a region config file to change the tools the server offers for a region. An entry needs only the fields it changes. The rest are kept from the built-in profile. For example, to serve only payment reads in the United States:
regions.yaml
Pass the file with --region-config or RAZORPAY_REGION_CONFIG. With Docker, you must also mount the file into the container. For example, add -v /path/regions.yaml:/regions.yaml -e RAZORPAY_REGION_CONFIG=/regions.yaml to the docker run arguments.
Last modified on November 26, 2026