Razorpay MCP server
io.github.indiamcp/razorpay·v0.1.0·1 starsMCP server for Razorpay API.
1 stars25 downloads/wk
Reviews
Write oneNobody has reviewed Razorpay yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Razorpay tools (14, 2 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
get_customerFetch details of a specific customer by ID
get_dashboard_summaryGet a high-level business summary \u2014 revenue today, this week, this month, success rate, top payment methods. Perfect for a quick business health check.
get_failed_payment_analysisAnalyze why payments are failing \u2014 breakdown by error code, bank, payment method
get_orderwrite actionFetch details of a specific order by ID
get_paymentFetch details of a specific payment by ID
get_payment_analyticsAnalyze payments for a date range \u2014 total revenue, success rate, failure breakdown, payment method distribution
get_refundwrite actionFetch details of a specific refund
get_subscriptionFetch details of a specific subscription
get_subscription_analyticsAnalyze subscriptions \u2014 active count, churn rate, MRR, upcoming renewals
list_customersList customers with optional filters
list_ordersList orders with optional filters
list_paymentsList payments with optional filters
list_refundsList refunds for a payment
list_subscriptionsList subscriptions with optional filters
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan3 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 129 days ago8/15
- Maintainer identityregistry namespace matches repository owner7/10
How Razorpay compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 71/100
- higher than 36% of 48,255 servers
- Tools
- 14
- the typical server has 7
- Tools that change things
- 14%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 1
- more than 65% of 28,688 servers
- Downloads a week
- 25
- more than 11% of 12,191 servers with a package
What its tools let an agent do: 12 read · 2 change
Install Razorpay in Claude Code, Cursor or VS Code
Runs npx -y @indiamcp/razorpay-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add razorpay -- npx -y @indiamcp/razorpay-mcp
What the publisher says
From the Razorpay repository's README, as published. We do not edit it. Read it on GitHub
razorpay-mcp
An MCP (Model Context Protocol) server that connects AI assistants like Claude directly to your Razorpay account. Once configured, you can ask your AI to fetch payments, analyze revenue trends, inspect failed transactions, monitor subscriptions, and get a real-time business dashboard — all in natural language, with no code required.
Quick Start
# Clone
git clone https://github.com/indiamcp/razorpay-mcp
# Install
cd razorpay-mcp
npm install
# Configure
cp .env.example .env
# Add your Razorpay API keys to .env
# Build
npm run build
# Run
npm startClaude Desktop Setup
Add this to your claudedesktopconfig.json (usually at ~/Library/Application Support/Claude/claudedesktopconfig.json on macOS or %APPDATA%\Claude\claudedesktopconfig.json on Windows):
{
"mcpServers": {
"razorpay": {
"command": "node",
"args": ["/path/to/razorpay-mcp/dist/index.js"],
"env": {
"RAZORPAY_KEY_ID": "rzp_test_xxxxxxxxxxxx",
"RAZORPAY_KEY_SECRET": "your_secret_here"
}
}
}
}Or use npx (once published):
{
"mcpServers": {
"razorpay": {
"command": "npx",
"args": ["-y", "@indiamcp/razorpay-mcp"],
"env": {
"RAZORPAY_KEY_ID": "rzp_test_xxxxxxxxxxxx",
"RAZORPAY_KEY_SECRET": "your_secret_here"
}
}
}
}Available Tools
Example Prompts
Once connected, try asking Claude:
- "Show me all failed payments in the last 7 days and why they failed"
- "What's my total revenue this month?"
- "List all active subscriptions"
- "Which payment method do my customers prefer?"
- "Show me customers who signed up this week"
- "What's my subscription churn rate this month?"
- "Find payment pay_xxxxx"
- "How many refunds are pending?"
- "Give me a dashboard summary of my business today"
- "Analyze payment failures for the last 30 days"
Security Note
- Environment variables only — API keys are read from env vars and never hardcoded or logged
- Read-only in v1 — this server only fetches data; it cannot create payments, issue refunds, or modify any records
- No data storage — payment data is never persisted or cached by this server
- Use test keys during development — Razorpay test keys (rzptest) are safe and make no real charges
Development
# Run in dev mode (no build needed)
npm run dev
# Type check
npm run lint
# Run tests
npm testPart of IndiaMCP
This server is part of IndiaMCP — a suite of open-source MCP servers for the Indian API stack.
github.com/indiamcp
Nothing above is checked by us. What we check is on the safety report.
Razorpay: common questions
- Is Razorpay MCP server safe?
- Mostly: it is graded B (71/100). Read the Razorpay safety report
- How do I install Razorpay?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Razorpay need an API key?
- Yes. The registry entry asks for
RAZORPAY_KEY_SECRET. - Is Razorpay maintained?
- The last commit was 167 days ago (2026-05-21). The latest release is v0.1.0.
- How does Razorpay compare with other MCP servers?
- safety score 71/100 (higher than 36% of 48,255 servers); tools 14 (the typical server has 7); tools that change things 14% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.