Razorpay MCP server

OfficialRazorpay223Config last verified Jun 1, 2026

Razorpay's official MCP server lets agents create orders and payment links, capture and refund payments, and read settlements and payouts.

Razorpay MCP is Razorpay's official server that connects AI agents to the Razorpay payments platform. It exposes a comprehensive tool set covering payments (capture, fetch, update, card details, and saved-method flows including OTP), standard and UPI payment links, orders, refunds, QR codes, settlements and instant settlements, payouts, and saved-method tokens, plus integration helpers that detect a project's stack and generate Razorpay Standard Checkout code. That makes it a strong fit for commerce copilots that need to take a payment, send a link over SMS or email, reconcile a settlement, or scaffold a checkout integration.

Razorpay offers two deployment paths. The recommended one is the hosted remote server at https://mcp.razorpay.com/mcp, which clients without native remote support reach via npx mcp-remote with an Authorization: Basic merchant token header. Teams that need to self-host (or want tools restricted in the remote server, such as create_refund and create_instant_settlement) can run the official Docker image razorpay/mcp or build the Go binary, authenticating with RAZORPAY_KEY_ID and RAZORPAY_KEY_SECRET. A READ_ONLY flag and a TOOLSETS filter scope which tools are exposed.

Quick install

Copy-paste configs are provided for all 8 supported clients. Pick your client below.

Add to ~/.claude.json

~/.claude.json
json
{
  "mcpServers": {
    "razorpay": {
      "type": "http",
      "url": "https://mcp.razorpay.com/mcp"
    }
  }
}
Or via CLI
bash
claude mcp add --transport http razorpay https://mcp.razorpay.com/mcp

Available tools

ToolDescription
capture_paymentChanges the payment status from authorized to captured.
fetch_paymentFetches payment details with an ID.
fetch_payment_card_detailsFetches the card details used for a payment.
fetch_all_paymentsFetches all payments with filtering and pagination.
update_paymentUpdates the notes field of a payment.
initiate_paymentInitiates a payment using a saved payment method with order and customer details.
resend_otpResends the OTP if the previous one was not received or expired.
submit_otpVerifies and submits the OTP to complete payment authentication.
create_payment_linkCreates a new standard payment link.
create_payment_link_upiCreates a new UPI payment link.
fetch_all_payment_linksFetches all payment links.
fetch_payment_linkFetches details of a payment link.
send_payment_linkSends a payment link via SMS or email.
update_payment_linkUpdates a standard payment link.
create_orderCreates an order.
fetch_orderFetches an order with an ID.
fetch_all_ordersFetches all orders.
update_orderUpdates an order.
fetch_order_paymentsFetches all payments for an order.
create_refundCreates a refund.
fetch_refundFetches refund details with an ID.
fetch_all_refundsFetches all refunds.
update_refundUpdates refund notes with an ID.
fetch_multiple_refunds_for_paymentFetches multiple refunds for a payment.
fetch_specific_refund_for_paymentFetches a specific refund for a payment.
create_qr_codeCreates a QR code.
fetch_qr_codeFetches a QR code with an ID.
fetch_all_qr_codesFetches all QR codes.
fetch_qr_codes_by_customer_idFetches QR codes by customer ID.
fetch_qr_codes_by_payment_idFetches QR codes by payment ID.
fetch_payments_for_qr_codeFetches payments for a QR code.
close_qr_codeCloses a QR code.
fetch_all_settlementsFetches all settlements.
fetch_settlement_with_idFetches settlement details.
fetch_settlement_recon_detailsFetches the settlement reconciliation report.
create_instant_settlementCreates an instant settlement.
fetch_all_instant_settlementsFetches all instant settlements.
fetch_instant_settlement_with_idFetches an instant settlement with an ID.
fetch_all_payoutsFetches all payout details with an account number.
fetch_payout_by_idFetches the payout details with a payout ID.
fetch_tokensGets all saved payment methods by customer ID or contact number.
revoke_tokenRevokes a saved payment method (token) for a customer.
create_registration_linkCreates a registration link (auth link) for subscription registration.
detect_stackDetects the project language/framework for checkout integration.
integrate_razorpay_checkoutGenerates end-to-end Razorpay Standard Checkout integration code for supported frameworks.

Required configuration

  • RAZORPAY_KEY_IDRequired

    Razorpay API key ID (for the Docker/binary deployment).

  • RAZORPAY_KEY_SECRETRequired

    Razorpay API key secret (for the Docker/binary deployment).

  • TOOLSETSOptional

    Optional comma-separated list of toolsets to enable.

  • READ_ONLYOptional

    Optional flag to expose only read tools.

What you can do with it

Collect a payment with a link

An agent creates a standard or UPI payment link and sends it to a customer over SMS or email, then checks the linked payments once it is paid.

Reconcile settlements

A finance copilot fetches settlements and their reconciliation report, and can trigger an instant settlement when cash flow is tight (self-hosted deployment).

Scaffold a checkout integration

A developer asks the agent to detect the project's stack and generate Razorpay Standard Checkout code, cutting integration time from hours to minutes.

FAQ

Is it free?
The MCP server is free and open source under Razorpay. You pay normal Razorpay processing fees on any real transactions it helps create.
Does it support remote/OAuth?
Razorpay hosts a remote endpoint at https://mcp.razorpay.com/mcp that authenticates with a Basic merchant token; clients without native remote support bridge to it via npx mcp-remote. You can also self-host with the official Docker image or Go binary using a key ID and secret.
Why are some tools missing on the remote server?
The hosted remote server restricts certain write tools (such as create_refund, close_qr_code, create_instant_settlement, and create_registration_link). Self-host the Docker image or binary to access the full tool set.
Can I make it read-only?
Yes. The self-hosted deployment supports a READ_ONLY flag and a TOOLSETS filter so you can expose only the tools an agent needs.
← Browse all payments servers