The Razorpay MCP Server is a
Currently, the Razorpay MCP Server provides the following tools:
Tool | Description | API |
---|---|---|
capture_payment |
Change the payment status from authorized to captured. | |
fetch_payment |
Fetch payment details with ID | |
fetch_payment_card_details |
Fetch card details used for a payment | |
fetch_all_payments |
Fetch all payments with filtering and pagination | |
update_payment |
Update the notes field of a payment | |
create_payment_link |
Creates a new payment link (standard) | |
create_payment_link_upi |
Creates a new UPI payment link | |
fetch_all_payment_links |
Fetch all the payment links | |
fetch_payment_link |
Fetch details of a payment link | |
send_payment_link |
Send a payment link via SMS or email. | |
update_payment_link |
Updates a new standard payment link | |
create_order |
Creates an order | |
fetch_order |
Fetch order with ID | |
fetch_all_orders |
Fetch all orders | |
update_order |
Update an order | |
fetch_order_payments |
Fetch all payments for an order | |
create_refund |
Creates a refund | |
fetch_refund |
Fetch refund details with ID | |
fetch_all_refunds |
Fetch all refunds | |
update_refund |
Update refund notes with ID | |
fetch_multiple_refunds_for_payment |
Fetch multiple refunds for a payment | |
fetch_specific_refund_for_payment |
Fetch a specific refund for a payment | |
create_qr_code |
Creates a QR Code | |
fetch_qr_code |
Fetch QR Code with ID | |
fetch_all_qr_codes |
Fetch all QR Codes | |
fetch_qr_codes_by_customer_id |
Fetch QR Codes with Customer ID | |
fetch_qr_codes_by_payment_id |
Fetch QR Codes with Payment ID | |
fetch_payments_for_qr_code |
Fetch Payments for a QR Code | |
close_qr_code |
Closes a QR Code | |
fetch_all_settlements |
Fetch all settlements | |
fetch_settlement_with_id |
Fetch settlement details | |
fetch_settlement_recon_details |
Fetch settlement reconciliation report | |
create_instant_settlement |
Create an instant settlement | |
fetch_all_instant_settlements |
Fetch all instant settlements | |
fetch_instant_settlement_with_id |
Fetch instant settlement with ID | |
fetch_all_payouts |
Fetch all payout details with A/c number | |
fetch_payout_by_id |
Fetch the payout details with payout ID |
- 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.
- Docker
- Golang (Go)
- Git
To run the Razorpay MCP server, use one of the following methods:
You need to clone the Github repo and build the image for Razorpay MCP Server using docker
. Do make sure docker
is installed and running in your system.
# Run the server
git clone https://github.com/razorpay/razorpay-mcp-server.git
cd razorpay-mcp-server
docker build -t razorpay-mcp-server:latest .
Post this razorpay-mcp-server:latest docker image would be ready in your system.
# Clone the repository
git clone https://github.com/razorpay/razorpay-mcp-server.git
cd razorpay-mcp-server
# Build the binary
go build -o razorpay-mcp-server ./cmd/razorpay-mcp-server
Binary razorpay-mcp-server
would be present in your system post this.
Add the following to your claude_desktop_config.json
:
{
"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"
}
}
}
}
Please replace the your_razorpay_key_id
and your_razorpay_key_secret
with your keys.
- Learn about how to configure MCP servers in Claude desktop:
Link - How to install Claude Desktop:
Link
Add the following to your VS Code settings (JSON):
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "razorpay_key_id",
"description": "Razorpay Key ID",
"password": false
},
{
"type": "promptString",
"id": "razorpay_key_secret",
"description": "Razorpay Key Secret",
"password": true
}
],
"servers": {
"razorpay": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"RAZORPAY_KEY_ID",
"-e",
"RAZORPAY_KEY_SECRET",
"razorpay-mcp-server:latest"
],
"env": {
"RAZORPAY_KEY_ID": "${input:razorpay_key_id}",
"RAZORPAY_KEY_SECRET": "${input:razorpay_key_secret}"
}
}
}
}
}
Learn more about MCP servers in VS Code's
The server requires the following configuration:
RAZORPAY_KEY_ID
: Your Razorpay API key IDRAZORPAY_KEY_SECRET
: Your Razorpay API key secretLOG_FILE
(optional): Path to log file for server logsTOOLSETS
(optional): Comma-separated list of toolsets to enable (default: "all")READ_ONLY
(optional): Run server in read-only mode (default: false)
The server supports the following command line flags:
--key
or-k
: Your Razorpay API key ID--secret
or-s
: Your Razorpay API key secret--log-file
or-l
: Path to log file--toolsets
or-t
: Comma-separated list of toolsets to enable--read-only
: Run server in read-only mode
You can use the standard Go debugging tools to troubleshoot issues with the server. Log files can be specified using the --log-file
flag (defaults to ./logs)
This project is licensed under the terms of the MIT open source license. Please refer to LICENSE for the full terms.