Razorpay

v1.0.0Finance & Fintechstable

Razorpay's Official MCP Server

mcpmcp-serverrazorpay
Share:
222
Stars
0
Downloads
0
Weekly
0/5

What is Razorpay?

Razorpay is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to razorpay's official mcp server

Razorpay's Official MCP Server

This server falls under the Finance & Fintech category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Razorpay's Official MCP Server

Use Cases

Process payments with Razorpay
Manage payment integrations
Enable AI-powered payment operations
razorpay

Maintainer

LicenseMIT
Languagego
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y razorpay

Manual Installation

npx -y razorpay

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Razorpay

Razorpay's official MCP server exposes over 50 tools that let AI assistants interact with the full Razorpay payments platform, covering payment capture and management, orders, refunds, payment links, QR codes, settlements, payouts, and saved payment tokens. It supports both a hosted remote server at mcp.razorpay.com for zero-install use and a self-hosted path via Docker or building from the Go source. Teams use it to automate payment operations, generate checkout integration code, and query transaction data through natural language.

Prerequisites

  • A Razorpay merchant account with API credentials (Key ID and Key Secret from the dashboard)
  • Node.js with npx (for the remote server option) or Docker (for self-hosted)
  • An MCP-compatible client such as Claude Desktop or VS Code with the MCP extension
  • Your Razorpay Key ID and Key Secret (generated once in the Razorpay dashboard)
1

Obtain Razorpay API credentials

Log in to the Razorpay Dashboard, navigate to Settings > API Keys, and generate or copy your Key ID and Key Secret.

2

Generate a merchant token for the remote server

The remote server uses HTTP Basic Auth. Encode your Key ID and Key Secret as a base64 token.

echo -n 'YOUR_KEY_ID:YOUR_KEY_SECRET' | base64
3

Choose your deployment method

Option A (recommended): Use the hosted remote server at mcp.razorpay.com — no local install required. Option B: Run via Docker. Option C: Build from source with Go.

# Option B - Docker
docker run razorpay/mcp

# Option C - Build from source (requires Go)
git clone https://github.com/razorpay/razorpay-mcp-server.git
cd razorpay-mcp-server
go build -o razorpay-mcp-server
4

Configure your MCP client (remote server)

Add the remote server configuration to your claude_desktop_config.json using the merchant token you generated.

{
  "mcpServers": {
    "razorpay": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.razorpay.com/mcp",
        "--header",
        "Authorization: Basic YOUR_BASE64_TOKEN"
      ]
    }
  }
}
5

Configure your MCP client (local server)

If running locally, set environment variables for your API credentials instead.

{
  "mcpServers": {
    "razorpay": {
      "command": "/path/to/razorpay-mcp-server",
      "env": {
        "RAZORPAY_KEY_ID": "rzp_live_YOUR_KEY_ID",
        "RAZORPAY_KEY_SECRET": "YOUR_KEY_SECRET"
      }
    }
  }
}
6

Verify the connection

Restart Claude Desktop and ask it to fetch your recent orders or payments to confirm the server is connected.

Razorpay Examples

Client configuration

Claude Desktop configuration using the Razorpay hosted remote MCP server with Basic Auth.

{
  "mcpServers": {
    "razorpay": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.razorpay.com/mcp",
        "--header",
        "Authorization: Basic cnpwX2xpdmVfWU9VUl9LRVlfSUQ6WVRVSU5fS0VZX1NFQ1JFVA=="
      ]
    }
  }
}

Prompts to try

Example prompts to use with the Razorpay MCP server.

- "Fetch the details for payment ID pay_ABC123."
- "Create a payment link for $50 with the description 'Invoice #1042'."
- "List all refunds processed in the last 7 days."
- "Generate the checkout integration code for my Node.js project."
- "What is the status of order ord_XYZ789?"

Troubleshooting Razorpay

401 Unauthorized error when connecting to the remote server

Re-generate the base64 token with `echo -n 'KEY_ID:KEY_SECRET' | base64`. Make sure there are no trailing newlines. The `-n` flag is essential — without it the newline character is included in the encoding.

A tool you expect is missing from the available toolset

Set the `TOOLSETS` environment variable to explicitly enable the toolset you need, or remove any `READ_ONLY` restriction if you need write operations. Some toolsets are disabled by default.

Docker container exits immediately after starting

Pass the required environment variables when running the container: `docker run -e RAZORPAY_KEY_ID=... -e RAZORPAY_KEY_SECRET=... razorpay/mcp`.

Frequently Asked Questions about Razorpay

What is Razorpay?

Razorpay is a Model Context Protocol (MCP) server that razorpay's official mcp server It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Razorpay?

Install via npm with the command: npx -y razorpay. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Razorpay?

Razorpay works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Razorpay free to use?

Yes, Razorpay is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Finance & Fintech MCP Servers

Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "razorpay": { "command": "npx", "args": ["-y", "razorpay"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Razorpay?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides