Razorpay MCP Server
Provides tools for interacting with the Razorpay payment gateway API, enabling AI assistants to fetch payments, orders, settlements, refunds, disputes, invoices, contacts, transactions, VPAs, customers, and account balance.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Razorpay MCP Server
Connect your Razorpay payment gateway to AI assistants using the Model Context Protocol
A Model Context Protocol (MCP) server for interacting with the Razorpay payment gateway API. This package enables AI assistants like Cursor, Claude, and Copilot to directly access your Razorpay account data through a standardized interface.
Quick Start
The most reliable way to use this package:
# Install globally first
npm install -g razorpay-mcp@0.1.4
# Then use the binary directly
razorpay-mcp-stdio --key-id rzp_test_yourkeyid --key-secret yoursecretkeyRelated MCP server: Paytm MCP Server
Cursor Configuration
After installing globally, add this configuration to your .cursor/mcp.json file:
{
"mcpServers": {
"razorpay": {
"command": "razorpay-mcp-stdio",
"args": [
"--key-id",
"rzp_test_yourkeyid",
"--key-secret",
"yoursecretkey"
]
}
}
}For Windows Users
{
"mcpServers": {
"razorpay": {
"command": "cmd",
"args": [
"/c",
"razorpay-mcp-stdio",
"--key-id",
"rzp_test_yourkeyid",
"--key-secret",
"yoursecretkey"
]
}
}
}For Web Applications (Using SSE)
Start the SSE server:
# Install globally first
npm install -g razorpay-mcp@0.1.4
# Then use the binary directly
razorpay-mcp-sse --key-id rzp_test_yourkeyid --key-secret yoursecretkey --port 3001Connect from your web app:
// Create SSE connection
const eventSource = new EventSource('http://localhost:3001/sse');
// Handle connection event
eventSource.onmessage = (event) => {
const data = JSON.parse(event.data);
// If this is a hello message, store the sessionId
if (data.type === 'hello') {
const sessionId = data.sessionId;
console.log(`Connected with session ID: ${sessionId}`);
// Now you can make API calls
callRazorpayAPI(sessionId, 'getAllPayments', {count: 10});
}
};
// Send API requests
async function callRazorpayAPI(sessionId, toolName, params) {
const response = await fetch(`http://localhost:3001/messages?sessionId=${sessionId}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: 'toolCall',
id: Date.now().toString(),
name: toolName,
params
})
});
return response.json();
}Docker Usage
You can also run this MCP server using Docker:
Build the Docker Image
# Clone the repository
git clone https://github.com/yourusername/razorpay-mcp.git
cd razorpay-mcp
# Build the Docker image
docker build -t razorpay-mcp .Run the Container
For the stdio transport (for direct use with Cursor):
docker run --rm -it razorpay-mcp node dist/transports/stdio.cjs \
--key-id rzp_test_yourkeyid --key-secret yoursecretkeyFor the SSE server (for web applications):
docker run --rm -p 3001:3001 razorpay-mcp node dist/transports/sse.cjs \
--key-id rzp_test_yourkeyid --key-secret yoursecretkey --port 3001Available Razorpay Tools
Tool Name | Description | Parameters |
| Fetch payments with pagination |
|
| Fetch orders with pagination |
|
| Fetch settlements with pagination |
|
| Fetch refunds with pagination |
|
| Fetch disputes with pagination |
|
| Fetch invoices with pagination |
|
| Fetch contacts with pagination |
|
| Fetch transactions with pagination |
|
| Fetch Virtual Payment Addresses |
|
| Fetch customers with pagination |
|
| Fetch account balance |
|
All pagination parameters are optional:
count: Number of items to fetch (default: 10, max: 100)skip: Number of items to skipfrom: Start timestampto: End timestamp
Resources
License
Apache-2.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect e-commerce and marketing data to AI assistants via MCP.
A paid remote MCP for AI SDK data query MCP, built to return verdicts, receipts, usage logs, and aud
Multi-tenant MCP gateway for AI commerce. One connection, every store.
Multi-tenant MCP gateway for AI commerce. One connection, every store.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with PayBridgeNP payment gateway accounts through natural language. Provides read-only access to payments, refunds, analytics, and account data, with write capabilities planned for future versions.39 npm1MIT
- AlicenseAqualityDmaintenanceEnables AI agents and developers to securely access Paytm's Payments and Business Payments APIs via MCP, allowing contextual automation of payment workflows like refunds, settlement tracking, and transaction status checks.3MIT
- FlicenseNot gradedqualityDmaintenanceEnables Razorpay merchants to become AI-transactable by letting MCP-compatible agents search catalogs, create real Razorpay orders, and complete purchases with enforced wallet limits and audit trails.-
- FlicenseNot gradedqualityCmaintenanceEnables conversational AI agents to manage Razorpay payments directly, including payment lookups, order creation, refunds, UPI QR generation, and real-time webhook triage via the Model Context Protocol.-