- Razorpay MCP Server
Razorpay MCP Server
Content
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 yoursecretkey
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 3001
- Connect 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 yoursecretkey
For 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 3001
Available Razorpay Tools
| Tool Name | Description | Parameters |
|---|---|---|
getAllPayments | Fetch payments with pagination | count, skip, from, to |
getAllOrders | Fetch orders with pagination | count, skip, from, to |
getAllSettlements | Fetch settlements with pagination | count, skip, from, to |
getAllRefunds | Fetch refunds with pagination | count, skip, from, to |
getAllDisputes | Fetch disputes with pagination | count, skip, from, to |
getAllInvoices | Fetch invoices with pagination | count, skip, from, to |
getAllContacts | Fetch contacts with pagination | count, skip, from, to |
getAllTransactions | Fetch transactions with pagination | count, skip, from, to |
getAllVPAs | Fetch Virtual Payment Addresses | count, skip, from, to |
getAllCustomers | Fetch customers with pagination | count, skip, from, to |
getAccountBalance | Fetch account balance | accountId |
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
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
WindsurfThe new purpose-built IDE to harness magic
Serper MCP ServerA Serper MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
CursorThe AI Code Editor
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
DeepChatYour AI Partner on Desktop
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
ChatWiseThe second fastest AI chatbot™
Playwright McpPlaywright MCP server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Tavily Mcp
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Amap Maps高德地图官方 MCP Server