1. Conduid
  2. Developer Tools
  3. Razorpay
MCP server · Developer Tools

Razorpay

Razorpay's Official MCP Server

85Excellent

Scored 3 days ago · breakdown

About Razorpay

Razorpay is an MCP server published by razorpay in the Developer Tools category: razorpay's Official MCP Server.

The repository has 231 stars and 45 forks, with the last commit a month ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/razorpay/razorpay-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (45)

capture_paymentChange the payment status from authorized to captured.

Parameters not published.

close_qr_codeCloses a QR Code

Parameters not published.

create_instant_settlementCreate an instant settlement

Parameters not published.

create_orderCreates an order

Parameters not published.

create_payment_linkCreates a new payment link (standard)

Parameters not published.

create_payment_link_upiCreates a new UPI payment link

Parameters not published.

create_qr_codeCreates a QR Code

Parameters not published.

create_refundCreates a refund

Parameters not published.

create_registration_linkCreate a registration link (auth link) for subscription registration

Parameters not published.

detect_stackDetect project language/framework for checkout integration

Parameters not published.

Show all 45 tools
fetch_all_instant_settlementsFetch all instant settlements

Parameters not published.

fetch_all_ordersFetch all orders

Parameters not published.

fetch_all_payment_linksFetch all the payment links

Parameters not published.

fetch_all_paymentsFetch all payments with filtering and pagination

Parameters not published.

fetch_all_payoutsFetch all payout details with A/c number

Parameters not published.

fetch_all_qr_codesFetch all QR Codes

Parameters not published.

fetch_all_refundsFetch all refunds

Parameters not published.

fetch_all_settlementsFetch all settlements

Parameters not published.

fetch_instant_settlement_with_idFetch instant settlement with ID

Parameters not published.

fetch_multiple_refunds_for_paymentFetch multiple refunds for a payment

Parameters not published.

fetch_orderFetch order with ID

Parameters not published.

fetch_order_paymentsFetch all payments for an order

Parameters not published.

fetch_paymentFetch payment details with ID

Parameters not published.

fetch_payment_card_detailsFetch card details used for a payment

Parameters not published.

fetch_payment_linkFetch details of a payment link

Parameters not published.

fetch_payments_for_qr_codeFetch Payments for a QR Code

Parameters not published.

fetch_payout_by_idFetch the payout details with payout ID

Parameters not published.

fetch_qr_codeFetch QR Code with ID

Parameters not published.

fetch_qr_codes_by_customer_idFetch QR Codes with Customer ID

Parameters not published.

fetch_qr_codes_by_payment_idFetch QR Codes with Payment ID

Parameters not published.

fetch_refundFetch refund details with ID

Parameters not published.

fetch_settlement_recon_detailsFetch settlement reconciliation report

Parameters not published.

fetch_settlement_with_idFetch settlement details

Parameters not published.

fetch_specific_refund_for_paymentFetch a specific refund for a payment

Parameters not published.

fetch_tokensGet all saved payment methods by customer ID or contact number

Parameters not published.

initiate_paymentInitiate a payment using saved payment method with order and customer details

Parameters not published.

integrate_razorpay_checkoutGenerate end-to-end Razorpay Standard Checkout integration code for supported frameworks

Parameters not published.

resend_otpResend OTP if the previous one was not received or expired

Parameters not published.

revoke_tokenRevoke a saved payment method (token) for a customer

Parameters not published.

send_payment_linkSend a payment link via SMS or email.

Parameters not published.

submit_otpVerify and submit OTP to complete payment authentication

Parameters not published.

update_orderUpdate an order

Parameters not published.

update_paymentUpdate the notes field of a payment

Parameters not published.

update_payment_linkUpdates a new standard payment link

Parameters not published.

update_refundUpdate refund notes with ID

Parameters not published.

Ask AI

✦

Ask AI about Razorpay

Powered by Claude · Grounded in docs

I know everything about Razorpay. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.2.1Razorpay MCP Server 1.2.1 · 26 Sep 2025Updates in order tool and payment initiate tools parameters.
v1.2.0v1.2.0 · 30 May 2025v1.2.0 This release focuses on improving the distribution and versioning of the Razorpay MCP Server, making it significantly easier to deploy and use. Major Highlights Public Docker Images - Official images now available on Docker Hub…
v1.1.0Razorpay MCP Server 1.1.0 · 7 May 2025v1.1.0 Building on the foundation of v1.0.0, this release significantly expands the available tools, improves error handling, and enhances documentation. Major Highlights Complete Payment Ecosystem - Full support for payments, payment…
v1.0.0Razorpay MCP Server 1.0.0 · 26 Apr 2025v1.0.0 Introducing Razorpay's MCP Server (Official) — First Release! 🚀 Please read the README for setup and usage details. Description It was internally developed, and with v1.0.0 made public. Contributors @stuckinforloop @ChiragChiranjib…

README

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:

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

# Install Node.js (which includes npm and npx) using Homebrew
brew install node

# Alternatively, download from https://nodejs.org/

Windows

# Install Node.js (which includes npm and npx) using Chocolatey
choco install nodejs

# Alternatively, download from https://nodejs.org/

Verify Installation

npx --version

Usage with Cursor

Inside your cursor settings in MCP, add this config.

{
  "mcpServers": {
    "rzp-mcp-server": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.razorpay.com/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Basic <Base64(key:secret)>"
      }
    }
  }
}

Replace key & secret with your Razorpay API KEY & API SECRET

Usage with Claude Desktop

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "rzp-mcp-server": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.razorpay.com/mcp",
        "--header",
        "Authorization: Basic <Merchant Token>"
      ]
    }
  }
}

Replace <Merchant Token> with your Razorpay merchant token. Check Authentication section for steps to generate token.

  • Learn about how to configure MCP servers in Claude desktop: Link
  • How to install Claude Desktop: Link

Usage with VS Code

Add the following to your VS Code settings (JSON):

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "merchant_token",
        "description": "Razorpay Merchant Token",
        "password": true
      }
    ],
    "servers": {
      "razorpay-remote": {
        "command": "npx",
        "args": [
          "mcp-remote",
          "https://mcp.razorpay.com/mcp",
          "--header",
          "Authorization: Basic ${input:merchant_token}"
        ]
      }
    }
  }
}

Learn more about MCP servers in VS Code's agent mode documentation.

Authentication

The Remote MCP Server uses merchant token-based authentication. To generate your merchant token:

  1. Go to the Razorpay Dashboard and navigate to Settings > API Keys

  2. Locate your API Key and API Secret:

    • API Key is visible on the dashboard
    • API Secret is generated only once when you first create it. Important: Do not generate a new secret if you already have one
  3. Generate your merchant token by running this command in your terminal:

    echo <RAZORPAY_API_KEY>:<RAZORPAY_API_SECRET> | base64
    

    Replace <RAZORPAY_API_KEY> and <RAZORPAY_API_SECRET> with your actual credentials

  4. Copy the base64-encoded output - this is your merchant token for the Remote MCP Server

Note: For local MCP Server deployment, you can use the API Key and Secret directly without generating a merchant token.

Local MCP Server

For users who prefer to run the MCP server on their own infrastructure or need access to all tools (including those restricted in the remote server), you can deploy the server locally.

Prerequisites

  • Docker
  • Golang (Go)
  • Git

To run the Razorpay MCP server, use one of the following methods:

Using Public Docker Image (Recommended)

You can use the public Razorpay image directly. No need to build anything yourself - just copy-paste the configurations below and make sure Docker is already installed.

Note: To use a specific version instead of the latest, replace razorpay/mcp with razorpay/mcp:v1.0.0 (or your desired version tag) in the configurations below. Available tags can be found on Docker Hub.

Usage with Claude Desktop

This will use the public razorpay image

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"
            ],
            "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

Usage with VS Code

Add the following to your VS Code settings (JSON):

{
    "mcpServers": {
        "razorpay-mcp-server": {
            "command": "docker",
            "args": [
                "run",
                "--rm",
                "-i",
                "-e",
                "RAZORPAY_KEY_ID",
                "-e",
                "RAZORPAY_KEY_SECRET",
                "razorpay/mcp"
            ],
            "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

Usage with VS Code

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"
        ],
        "env": {
          "RAZORPAY_KEY_ID": "${input:razorpay_key_id}",
          "RAZORPAY_KEY_SECRET": "${input:razorpay_key_secret}"
        }
      }
    }
  }
}

Learn more about MCP servers in VS Code's agent mode documentation.

Build from Docker (Alternative)

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 .

Once the razorpay-mcp-server:latest docker image is built, you can replace the public image(razorpay/mcp) with it in the above configurations.

Build from source

You can directly build from the source instead of using docker by following these steps:

# 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

Once the build is ready, you need to specify the path to the binary executable in the command option. Here's an example for VS Code settings:

{
  "razorpay": {
    "command": "/path/to/razorpay-mcp-server",
    "args": ["stdio","--log-file=/path/to/rzp-mcp.log"],
    "env": {
      "RAZORPAY_KEY_ID": "<YOUR_ID>",
      "RAZORPAY_KEY_SECRET" : "<YOUR_SECRET>"
    }
  }
}

Configuration

The server requires the following configuration:

  • RAZORPAY_KEY_ID: Your Razorpay API key ID
  • RAZORPAY_KEY_SECRET: Your Razorpay API key secret
  • LOG_FILE (optional): Path to log file for server logs
  • TOOLSETS (optional): Comma-separated list of toolsets to enable (default: "all")
  • READ_ONLY (optional): Run server in read-only mode (default: false)

Command Line Flags

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

Debugging the Server

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)

License

This project is licensed under the terms of the MIT open source license. Please refer to LICENSE for the full terms.

README fetched from the repository 4 days ago. The original is authoritative.

Questions

About Razorpay

How do I install Razorpay?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Razorpay safe to use with an AI agent?

Its trust score is 85 out of 100 (excellent). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Razorpay still maintained?

Yes — the last commit was a month ago. The repository has 231 stars and 45 forks and 52 open issues.