Razorpay MCP Server (Official)
About
The Razorpay MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Razorpay APIs, enabling advanced payment processing capabilities for developers and AI tools. It supports both a remote hosted option (recommended, zero setup) and a local…
Details
- Author
- razorpay
- GitHub stars
- 226
- Downloads
- 327
- Categories
- Other
Jump to
- Capture, fetch, and update payments and card details.
- Create and manage payment links (standard/UPI).
- Manage orders, refunds, and settlements.
- Generate and close QR codes for payments.
- Fetch payouts, tokens, and instant settlements.
- Integration helpers: detect stack and generate checkout code.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Razorpay MCP Server (Official)Command (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Choose the remote server (recommended) by configuring your MCP client with npx mcp-remote https://mcp.razorpay.com/mcp --header "Authorization: Basic <token>". Replace <token> with a Razorpay merchant token or base64-encoded API key:secret. Configuration examples are provided for Cursor, Claude Desktop, and VS Code.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"razorpay mcp server (official)": {
"razorpay-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"RAZORPAY_KEY_ID",
"-e",
"RAZORPAY_KEY_SECRET",
"razorpay-mcp-server:latest"
],
"env": {
"RAZORPAY_KEY_ID": "your_razorpay_key_id",
"RAZORPAY_KEY_SECRET": "your_razorpay_key_secret"
}
}
}
}
}
McpServers
{
"razorpay-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"RAZORPAY_KEY_ID",
"-e",
"RAZORPAY_KEY_SECRET",
"razorpay-mcp-server:latest"
],
"env": {
"RAZORPAY_KEY_ID": "your_razorpay_key_id",
"RAZORPAY_KEY_SECRET": "your_razorpay_key_secret"
}
}
}
Razorpay MCP Server (Official)
The Razorpay MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Razorpay APIs, enabling advanced payment processing capabilities for developers and AI tools.
Quick Start
Choose your preferred setup method:
- Remote MCP Server - Hosted by Razorpay, no setup required
- Local MCP Server - Run on your own infrastructure
Available Tools
Currently, the Razorpay MCP Server provides the following tools:
| Tool | Description | API | Remote Server Support |
|:-------------------------------------|:-------------------------------------------------------|:------------------------------------|:---------------------|
| capture_payment | Change the payment status from authorized to captured. | Payment | ✅ |
| fetch_payment | Fetch payment details with ID | Payment | ✅ |
| fetch_payment_card_details | Fetch card details used for a payment | Payment | ✅ |
| fetch_all_payments | Fetch all payments with filtering and pagination | Payment | ✅ |
| update_payment | Update the notes field of a payment | Payment | ✅ |
| initiate_payment | Initiate a payment using saved payment method with order and customer details | Payment | ✅ |
| resend_otp | Resend OTP if the previous one was not received or expired | Payment | ✅ |
| submit_otp | Verify and submit OTP to complete payment authentication | Payment | ✅ |
| create_payment_link | Creates a new payment link (standard) | Payment Link | ✅ |
| create_payment_link_upi | Creates a new UPI payment link | Payment Link | ✅ |
| fetch_all_payment_links | Fetch all the payment links | Payment Link | ✅ |
| fetch_payment_link | Fetch details of a payment link | Payment Link | ✅ |
| send_payment_link | Send a payment link via SMS or email. | Payment Link | ✅ |
| update_payment_link | Updates a new standard payment link | Payment Link | ✅ |
| create_order | Creates an order | Order | ✅ |
| fetch_order | Fetch order with ID | Order | ✅ |
| fetch_all_orders | Fetch all orders | Order | ✅ |
| update_order | Update an order | Order | ✅ |
| fetch_order_payments | Fetch all payments for an order | Order | ✅ |
| create_refund | Creates a refund | Refund | ❌ |
| fetch_refund | Fetch refund details with ID | Refund | ✅ |
| fetch_all_refunds | Fetch all refunds | Refund | ✅ |
| update_refund | Update refund notes with ID | Refund | ✅ |
| fetch_multiple_refunds_for_payment | Fetch multiple refunds for a payment | Refund | ✅ |
| fetch_specific_refund_for_payment | Fetch a specific refund for a payment | Refund | ✅ |
| create_qr_code | Creates a QR Code | QR Code | ✅ |
| fetch_qr_code | Fetch QR Code with ID | QR Code | ✅ |
| fetch_all_qr_codes | Fetch all QR Codes | QR Code | ✅ |
| fetch_qr_codes_by_customer_id | Fetch QR Codes with Customer ID | QR Code | ✅ |
| fetch_qr_codes_by_payment_id | Fetch QR Codes with Payment ID | QR Code | ✅ |
| fetch_payments_for_qr_code | Fetch Payments for a QR Code | QR Code | ✅ |
| close_qr_code | Closes a QR Code | QR Code | ❌ |
| fetch_all_settlements | Fetch all settlements | Settlement | ✅ |
| fetch_settlement_with_id | Fetch settlement details | Settlement | ✅ |
| fetch_settlement_recon_details | Fetch settlement reconciliation report | Settlement | ✅ |
| create_instant_settlement | Create an instant settlement | Settlement | ❌ |
| fetch_all_instant_settlements | Fetch all instant settlements | Settlement | ✅ |
| fetch_instant_settlement_with_id | Fetch instant settlement with ID | Settlement | ✅ |
| fetch_all_payouts | Fetch all payout details with A/c number | Payout | ✅ |
| fetch_payout_by_id | Fetch the payout details with payout ID | Payout | ✅ |
| fetch_tokens | Get all saved payment methods by customer ID or contact number | Token | ✅ |
| revoke_token | Revoke a saved payment method (token) for a customer | Token | ✅ |
| create_registration_link | Create a registration link (auth link) for subscription registration | Registration Link | ❌ |
| detect_stack | Detect project language/framework for checkout integration | N/A (MCP Integration Helper) | ✅ |
| integrate_razorpay_checkout | Generate end-to-end Razorpay Standard Checkout integration code for supported frameworks | N/A (MCP Integration Helper) | ✅ |
Use Cases
- Workflow Automation: Automate your day to day workflow using Razorpay MCP Server. - Agentic Applications: Building AI powered tools that interact with Razorpay's payment ecosystem using this Razorpay MCP server.Remote MCP Server (Recommended)
The Remote MCP Server is hosted by Razorpay and provides instant access to Razorpay APIs without any local setup. This is the recommended approach for most users.
Benefits of Remote MCP Server
- Zero Setup: No need to install Docker, Go, or manage local infrastructure
- Always Updated: Automatically stays updated with the latest features and security patches
- High Availability: Backed by Razorpay's robust infrastructure with 99.9% uptime
- Reduced Latency: Optimized routing and caching for faster API responses
- Enhanced Security: Secure token-based authentication with automatic token rotation
- No Maintenance: No need to worry about updates, patches, or server maintenance
Prerequisites
npx is needed to use mcp server.
You need to have Node.js installed on your system, which includes both npm (Node Package Manager) and npx (Node Package Execute) by default:
macOS
```bashSign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



