Razorpay — Claude Code MCP server: what it does, how to set up
Connects Razorpay APIs to your coding agent to inspect transactions, issue payment links, handle orders, and check settlements in chat.
no license updated 2026-10-29
Open on GitHubWhat Razorpay does
The server exposes tools for interacting directly with the Razorpay payment infrastructure. Through the Model Context Protocol, an AI assistant can look up payments by ID, capture authorized charges with capture_payment, inspect card attributes, and process OTP authentication for saved customer methods.
It also handles merchant workflows: creating orders, building UPI or standard payment links, transmitting links via SMS or email, and generating QR codes. Finance reconciliation tools like fetch_all_settlements and fetch_settlement_recon_details allow auditing balance payouts without logging into the merchant dashboard. You can point your client to Razorpay's hosted remote endpoint or deploy a local instance on your own machine.
The hosted remote setup blocks create_refund and close_qr_code. Any workflow that requires issuing customer refunds requires hosting the server locally.
What it helps with
- check payment status and card details by transaction ID
- create standard or UPI payment links for orders
- capture authorized payments and submit authentication OTPs
- track QR code payments tied to a specific customer
- retrieve settlement reconciliation statements inside the development agent
Example prompts for the agent
- Fetch payment details and card info for ID
pay_12345 - Create a standard payment link for customer order
order_98765 - Fetch settlement reconciliation details using
fetch_settlement_recon_details
How to install Razorpay
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Razorpay
How do you install the Razorpay MCP server?
You can connect directly to the remote server hosted by Razorpay without local installation, or run the local version on your infrastructure from the razorpay/razorpay-mcp-server repository.
What does the Razorpay MCP server do?
It provides tools for AI clients to run payment captures, query order states, inspect settlements, and generate QR codes or payment links through Razorpay APIs.
What are the limitations of the remote hosted server?
The remote version does not allow running create_refund or close_qr_code. Both tools require a self-hosted local server instance.