Razorpay Remote MCP Server Setup

Step-by-step guide to set up the Razorpay Remote MCP Server with zero infrastructure overhead.


The Razorpay Remote MCP Server is a hosted solution that provides zero infrastructure overhead with automatic updates and high availability. This is the recommended deployment option for most users.

Before installing the Razorpay Remote MCP Server, ensure you have:

  • AI Assistant: Claude Desktop, Cursor, Visual Studio Code, or similar AI-assisted application.
  • Razorpay Account: Active Razorpay account with API access.
  • API Keys: Generate from the Dashboard.

The Remote MCP Server requires Node.js and npm. Choose the installation method for your operating system:

After installing Node.js, open your terminal/command prompt and verify the installation:

node --version
npm --version
npx --version

You should see version numbers for all three commands.

Generate API keys and create a merchant token.

Follow these steps to generate the API keys:

  1. Log in to your .
  2. Navigate to Account & SettingsAPI Keys.
  3. Generate your API keys (Key ID and Key Secret).
  4. Copy both the Key ID and Key Secret.

Encode your merchant token by running the following command in your terminal:

echo <RAZORPAY_API_KEY>:<RAZORPAY_API_SECRET> | base64
# Output: cnpwX3Rlc3RfYWJjMTIzOnNlY3JldF9kZWY0NTY=

Watch Out!

Replace <RAZORPAY_API_KEY> and <RAZORPAY_API_SECRET> with your actual credentials.

Save this base64-encoded token as you will need it for configuration.

Choose your AI-assisted application and follow the corresponding configuration steps:

Claude Desktop Configuration

  1. Open Claude Desktop.
  2. Navigate to SettingsDeveloperEdit Config.
  3. Paste the following configuration and save the file:
{
"mcpServers": {
"rzp-sse-mcp-server": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.razorpay.com/sse",
"--header",
"Authorization: Bearer <your-base64-encoded-key-secret>"
]
}
}
}

Replace <your-base64-encoded-key-secret> with the base64 token generated in Step 3.

Cursor Configuration

  1. Open Cursor.
  2. Navigate to SettingsCursor Settings.
  3. Go to MCP tools and click Add Custom MCP (or edit existing MCP.json file).
  4. Paste the following configuration:
{
"mcpServers": {
"rzp-sse-mcp-server": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.razorpay.com/sse",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer <Base64(key:secret)>"
}
}
}
}

Replace <Base64(key:secret)> with your base64-encoded token.

Visual Studio Code Configuration

  1. Open Visual Studio Code
  2. Open Command Palette and type Preferences: Open User Settings (JSON)
  3. Select it from the dropdown to open the settings file
  4. Paste the following configuration:
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "merchant_token",
"description": "Razorpay Merchant Token",
"password": true
}
],
"servers": {
"razorpay-remote": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.razorpay.com/sse",
"--header",
"Authorization: Bearer ${input:merchant_token}"
]
}
}
}
}

Learn about MCP servers in VS Code's

.

Restart your AI assistant application after adding the configuration. You should see Razorpay MCP tools become available. Test the connection by asking: Show me available Razorpay tools.

If successful, you should see a list of available Razorpay MCP tools.

Once your Remote MCP Server is set up:

  1. Explore Use Cases: Review of AI-powered payment operations.
  2. Learn Available Tools: Check the for complete capabilities.
  3. Advanced Configuration: See for additional options.
  4. Start Building: Begin using natural language commands to interact with Razorpay APIs

Was this page helpful?


razorpay remote mcp server
mcp server setup
claude desktop
cursor
visual studio code