# Razorpay MCP Server [Official] [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/razorpay/razorpay-mcp-server  
**GitHub Stars:** 232  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/razorpay-mcp-server

## Description
Razorpay's official MCP server. Lets AI agents work with Razorpay's payments APIs: payments, orders, refunds, payment links, QR codes, settlements and payouts. Use the hosted server with your merchant token, or run it yourself.

## Tools
Capabilities this server exposes over MCP:

- **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
- **initiate_payment** — Initiate a payment using saved payment method with order and customer details
- **resend_otp** — Resend OTP if the previous one was not received or expired
- **submit_otp** — Verify and submit OTP to complete payment authentication
- **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
- **fetch_tokens** — Get all saved payment methods by customer ID or contact number
- **revoke_token** — Revoke a saved payment method (token) for a customer
- **create_registration_link** — Create a registration link (auth link) for subscription registration
- **detect_stack** — Detect project language/framework for checkout integration
- **integrate_razorpay_checkout** — Generate end-to-end Razorpay Standard Checkout integration code for supported frameworks

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/razorpay/razorpay-mcp-server), copied verbatim. Run them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/razorpay/razorpay-mcp-server.git
```

2. Run:

```sh
cd razorpay-mcp-server
```

3. Install:

```sh
docker build -t razorpay-mcp-server:latest .
```

4. Install:

```sh
go build -o razorpay-mcp-server ./cmd/razorpay-mcp-server
```

## Documentation

## What Razorpay MCP Server does

Razorpay MCP Server exposes Razorpay payment and commerce operations through the Model Context Protocol. It is designed for AI tools and agent workflows that need to work with Razorpay resources without building a separate MCP wrapper around the API.

The API surface covers payment capture, payment lookup, card-detail retrieval, payment listing with filters and pagination, payment-note updates, and payment initiation using saved payment methods. Authentication flows include resending and submitting OTPs. Agents can also create, inspect, send, and update standard payment links, create UPI payment links, and retrieve link collections.

Order operations include creation, lookup, listing, updates, and retrieving payments associated with an order. Refund tools support creation, lookup, listing, note updates, and finding refunds associated with a payment. QR-code tools create and retrieve codes, list them, and filter them by customer or payment ID. Settlement and payout tools provide access to settlement records, reconciliation details, instant-settlement records, and payout information.

Additional tools retrieve or revoke saved payment tokens, create subscription registration links, detect a project's language or framework, and generate Razorpay Standard Checkout integration code for supported frameworks.

## How it works

The server communicates with MCP-compatible AI clients and translates tool calls into operations against Razorpay APIs. Razorpay offers a hosted remote server, which avoids deploying the MCP process yourself, and a local option for running it on your own infrastructure. The hosted option is used with a merchant token.

Remote availability varies by tool. The tool catalogue marks most payment, order, retrieval, settlement, payout, token, and helper operations as supported remotely. Creating refunds, closing QR codes, creating instant settlements, and creating registration links are listed as local-only operations.

## Setup and configuration

Choose between Razorpay's hosted MCP server and a self-hosted local deployment. The hosted route requires a merchant token and does not require running the server yourself. The local route is appropriate when the MCP process needs to run within your infrastructure.

Connect the selected deployment to an MCP-compatible client, then expose the resulting tools to an agent. Credentials should be configured according to the deployment's authentication requirements and handled as payment-system secrets.

## Tools and capabilities

- Manage payments, including capture, initiation, lookup, listing, notes, card details, and OTP submission.
- Create and manage standard and UPI payment links.
- Create, retrieve, update, and inspect orders and their payments.
- Create and investigate refunds, including payment-specific refund lookups.
- Create and query QR codes by ID, customer, or payment.
- Retrieve settlements, reconciliation data, instant settlements, and payouts.
- Manage saved payment tokens and subscription registration links.
- Detect project stacks and generate supported Razorpay Checkout integration code.

## Limitations and notes

The remote server does not expose every tool. Refund creation, QR-code closure, instant-settlement creation, and registration-link creation are identified as unsupported remotely. Operations that change payment state or move funds should be reviewed carefully before an agent is allowed to invoke them.

_Full upstream README: https://allmcps.com/mcp/razorpay-mcp-server/readme_

