Razorpay

io.github.indiamcp由 GitHub 账号 indiamcp 发布v0.1.0更新于 Oct 24, 2026

MCP server for Razorpay API.

概览

AI 生成的概览

让助手通过自然语言查询读取 Razorpay 的支付、订单、客户、订阅、退款和收入数据。

可以做什么
将 AI 助手连接到 Razorpay 账户,提供只读工具:按 ID 获取单笔支付、订单、客户、订阅或退款,并按日期、数量和状态筛选列出这些记录。还提供分析工具,涵盖收入、成功率与支付方式分布、订阅流失率与即将续费、业务仪表盘摘要,以及按原因、方式和银行分析支付失败。
适用场景
适合希望用自然语言询问 Razorpay 业务数据的场景,例如本月总收入、活跃订阅、流失率、待处理退款,或某段时间内支付失败的原因,无需编写代码或打开后台。
运行要求
以 Node.js 本地进程运行,可通过 npm 包 @indiamcp/razorpay-mcp 安装或从源码构建。需要 Razorpay 账户,并通过环境变量提供两个凭据:RAZORPAY_KEY_ID 和 RAZORPAY_KEY_SECRET。需要配置桌面客户端,并需要访问 Razorpay API 的网络连接。
安装前请注意
该服务器需要 Razorpay 的 API 密钥(RAZORPAY_KEY_SECRET)和密钥 ID(RAZORPAY_KEY_ID),可访问真实账户数据;开发时建议使用测试密钥。README 说明 v1 为只读,不会创建支付、发起退款或修改记录,也不存储或缓存支付数据,但会把账户数据发送到 Razorpay API 并返回给助手。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Razorpay,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

razorpay-mcp

An MCP (Model Context Protocol) server that connects AI assistants like Claude directly to your Razorpay account. Once configured, you can ask your AI to fetch payments, analyze revenue trends, inspect failed transactions, monitor subscriptions, and get a real-time business dashboard — all in natural language, with no code required.

Quick Start

bash
# Clonegit clone https://github.com/indiamcp/razorpay-mcp
# Installcd razorpay-mcpnpm install
# Configurecp .env.example .env# Add your Razorpay API keys to .env
# Buildnpm run build
# Runnpm start

Claude Desktop Setup

Add this to your claude_desktop_config.json (usually at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):

json
{  "mcpServers": {    "razorpay": {      "command": "node",      "args": ["/path/to/razorpay-mcp/dist/index.js"],      "env": {        "RAZORPAY_KEY_ID": "rzp_test_xxxxxxxxxxxx",        "RAZORPAY_KEY_SECRET": "your_secret_here"      }    }  }}

Or use npx (once published):

json
{  "mcpServers": {    "razorpay": {      "command": "npx",      "args": ["-y", "@indiamcp/razorpay-mcp"],      "env": {        "RAZORPAY_KEY_ID": "rzp_test_xxxxxxxxxxxx",        "RAZORPAY_KEY_SECRET": "your_secret_here"      }    }  }}

Available Tools

ToolDescriptionKey Parameters
get_paymentFetch a specific payment by IDpayment_id
list_paymentsList payments with filtersfrom, to, count, status
get_payment_analyticsRevenue, success rate, method breakdownfrom, to
get_orderFetch a specific order by IDorder_id
list_ordersList orders with filtersfrom, to, count, status, receipt
get_customerFetch a specific customer by IDcustomer_id
list_customersList customerscount, skip
get_subscriptionFetch a specific subscription by IDsubscription_id
list_subscriptionsList subscriptions with filtersfrom, to, count, status
get_subscription_analyticsActive count, churn rate, upcoming renewalsfrom, to
get_refundFetch a specific refundpayment_id, refund_id
list_refundsList refunds for a paymentpayment_id, count
get_dashboard_summaryBusiness health check — revenue today/week/month(none)
get_failed_payment_analysisFailure reasons, by method and bankfrom, to

Example Prompts

Once connected, try asking Claude:

  • "Show me all failed payments in the last 7 days and why they failed"
  • "What's my total revenue this month?"
  • "List all active subscriptions"
  • "Which payment method do my customers prefer?"
  • "Show me customers who signed up this week"
  • "What's my subscription churn rate this month?"
  • "Find payment pay_xxxxx"
  • "How many refunds are pending?"
  • "Give me a dashboard summary of my business today"
  • "Analyze payment failures for the last 30 days"

Security Note

  • Environment variables only — API keys are read from env vars and never hardcoded or logged
  • Read-only in v1 — this server only fetches data; it cannot create payments, issue refunds, or modify any records
  • No data storage — payment data is never persisted or cached by this server
  • Use test keys during development — Razorpay test keys (rzp_test_*) are safe and make no real charges

Development

bash
# Run in dev mode (no build needed)npm run dev
# Type checknpm run lint
# Run testsnpm test

Part of IndiaMCP

This server is part of IndiaMCP — a suite of open-source MCP servers for the Indian API stack.

github.com/indiamcp

来源:README.md,提交 55e91c6

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。