Get the FREE Ultimate OpenClaw Setup Guide →

razorpay

Unofficial Razorpay MCP server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio lightheads-razorpay-mcp razorpay-mcp-stdio --key-id rzp_test_yourkeyid --key-secret yoursecretkey \
  --env RAZORPAY_KEY_ID="rzp_test_yourkeyid" \
  --env RAZORPAY_KEY_SECRET="yoursecretkey"

How to use

This MCP server provides a standardized interface for interacting with the Razorpay payment gateway API from AI assistants. It exposes a set of tools that can fetch payments, orders, settlements, refunds, disputes, invoices, contacts, transactions, VPAs, and customers, with pagination support. The server can be run in stdio mode for direct integration with clients like Cursor, or via SSE for web applications, and it can also be deployed with Docker. Use the provided commands and arguments to securely supply your Razorpay API credentials and then query the available tools to retrieve gateway data through the MCP interface.

How to install

{"steps":["Prerequisites: Node.js (recommended v14+), npm, and access to install global npm packages.","Install the Razorpay MCP package globally (example used in the README):","bash","npm install -g razorpay-mcp@0.1.4","","Run the STDIO transport (for direct usage with Cursor or similar clients):","bash","razorpay-mcp-stdio --key-id rzp_test_yourkeyid --key-secret yoursecretkey","","Alternatively, run the SSE transport (for web apps) that serves events over HTTP:","bash","razorpay-mcp-sse --key-id rzp_test_yourkeyid --key-secret yoursecretkey --port 3001","","If you prefer Docker, build and run the container as described in the README (docker run commands are provided for stdio and SSE)."]}

Additional notes

Tips and common considerations: Keep your Razorpay API credentials secure and do not commit them to source control. When using the SSE endpoint, you can connect a web app via an EventSource and issue tool calls by posting JSON messages to /messages with the appropriate sessionId. The MCP supports a wide range of Razorpay data retrieval tools, all with optional pagination parameters: count (default 10, max 100), skip, from, and to. If you encounter CUDA-related or environment-related issues, ensure Node/npm paths are correctly configured and that the global binary razorpay-mcp-stdio is accessible in your PATH. For Windows users, the README provides a Windows-specific command wrapper that invokes the stdio binary via cmd /c.

Related MCP Servers

Sponsor this space

Reach thousands of developers