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:
- Go to .
- Download the LTS (Long Term Support) version.
- Run the installer (.pkg file).
- Follow the installation prompts.
- Go to .
- Download the LTS version for Windows.
- Run the installer (.msi file).
- Follow the installation wizard.
- Make sure to check Add to PATH during installation.
After installing Node.js, open your terminal/command prompt and verify the installation:
node --versionnpm --versionnpx --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:
- Log in to your .
- Navigate to Account & Settings → API Keys.
- Generate your API keys (Key ID and Key Secret).
- 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:
- Open Claude Desktop.
- Navigate to Settings → Developer → Edit Config.
- 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.
- Open Cursor.
- Navigate to Settings → Cursor Settings.
- Go to MCP tools and click Add Custom MCP (or edit existing MCP.json file).
- 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.
- Open Visual Studio Code
- Open Command Palette and type Preferences: Open User Settings (JSON)
- Select it from the dropdown to open the settings file
- 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:
- Explore Use Cases: Review of AI-powered payment operations.
- Learn Available Tools: Check the for complete capabilities.
- Advanced Configuration: See for additional options.
- Start Building: Begin using natural language commands to interact with Razorpay APIs
Was this page helpful?