Razorpay
Razorpay's Official MCP Server
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
Maintainer
Works with
Installation
NPM
npx -y razorpayManual Installation
npx -y razorpayConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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)
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.
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' | base64Choose 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-serverConfigure 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"
]
}
}
}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"
}
}
}
}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.
Razorpay Alternatives — Similar Finance & Fintech Servers
Looking for alternatives to Razorpay? Here are other popular finance & fintech servers you can use with Claude, Cursor, and VS Code.
ValueCell
★ 10.7kValueCell is a community-driven, multi-agent platform for financial applications.
Vibe Trading
★ 8.1k'Vibe-Trading: Your Personal Trading Agent'
Quantdinger
★ 6.2kAI quantitative trading platform for crypto, stocks, and forex with backtesting, live trading, market data, and multi-agent research.vibe-trading ,trading-agents,ai-trader,ai-trading
TradingView
★ 2.8kReal-time crypto & stock screening, advanced technical indicators, Bollinger Bands intelligence, candlestick patterns + native Claude Desktop integration. Multi-exchange (Binance, KuCoin, Bybit+). Open-source AI trading infrastructure.
Financial Datasets
★ 2.1kProvides access to comprehensive financial data including income statements, balance sheets, cash flow statements, stock prices, company news, SEC filings, and cryptocurrency information with built-in financial ratio analysis.
Stripe
★ 1.6kThe Stripe Model Context Protocol server allows you to integrate with Stripe APIs through function calling. This protocol supports various tools to interact with different Stripe services.
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.
Set Up Razorpay in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.