io.github.cashfree/cashfree-mcp

平台与服务

by cashfree

面向 Cashfree docs 与 APIs 的 MCP server,便于 AI 统一检索文档并调用相关接口能力。

什么是 io.github.cashfree/cashfree-mcp

面向 Cashfree docs 与 APIs 的 MCP server,便于 AI 统一检索文档并调用相关接口能力。

README

MseeP.ai Security Assessment Badge

Cashfree MCP Server

Cashfree MCP server allows AI tools and agents to integrate with Cashfree APIs (Payment Gateway, Payouts, and SecureID) using the Model Context Protocol (MCP).

Setup

Clone the Repository

bash
git clone https://github.com/cashfree/cashfree-mcp.git
cd cashfree-mcp

Install Dependencies

Before installing, ensure you have Node.js v14.x or higher installed. If you're using nvm or brew, make sure the correct version is active:

bash
node -v
# Should output v14.x or higher

Step 1: Install project dependencies

bash
npm install

This will install all required packages listed in package.json.

💡 If you're using Node.js >=18, you might face peer dependency issues with packages like undici. In that case, upgrade Node.js to >=20.18.1 or adjust the package version if needed.

Step 2: Build the project

bash
npm run build

This compiles the source files to the dist/ directory, which is required to run the MCP server.

🛠️ If you see errors related to missing files in /dist, ensure you've run the build step successfully.

Configuration

You will need a Cashfree account with API credentials (we support both sandbox and production keys). You can use Cashfree MCP in your favorite client, some sample configurations are shown below:

Claude

Add the following configuration block to your claude_desktop_config.json

json
{
  "mcpServers": {
    "cashfree": {
      "command": "node",
      "args": ["/path/to/cashfree-mcp/dist/index.js"],
      "env": {
        "PAYMENTS_APP_ID": "YOUR_PG_CLIENT_ID",
        "PAYMENTS_APP_SECRET": "YOUR_PG_CLIENT_SECRET",
        "PAYOUTS_APP_ID": "YOUR_PAYOUTS_CLIENT_ID",
        "PAYOUTS_APP_SECRET": "YOUR_PAYOUTS_CLIENT_SECRET",
        "TWO_FA_PUBLIC_KEY_PEM_PATH": "/path/to/public_key.pem",
        "SECUREID_APP_ID": "YOUR_SECUREID_CLIENT_ID",
        "SECUREID_APP_SECRET": "YOUR_SECUREID_CLIENT_SECRET",
        "TOOLS": "pg,payouts,secureid",
        "ENV": "sandbox",
        "ELICITATION_ENABLED": "true"
      }
    }
  }
}

VS Code

Add the following configuration block to your VS Code settings

json
{
  "mcp": {
    "inputs": [],
    "servers": {
      "cashfree": {
        "command": "node",
        "args": ["/path/to/cashfree-mcp/dist/index.js"],
        "env": {
          "PAYMENTS_APP_ID": "YOUR_PG_CLIENT_ID",
          "PAYMENTS_APP_SECRET": "YOUR_PG_CLIENT_SECRET",
          "PAYOUTS_APP_ID": "YOUR_PAYOUTS_CLIENT_ID",
          "PAYOUTS_APP_SECRET": "YOUR_PAYOUTS_CLIENT_SECRET",
          "TWO_FA_PUBLIC_KEY_PEM_PATH": "/path/to/public_key.pem",
          "SECUREID_APP_ID": "YOUR_SECUREID_CLIENT_ID",
          "SECUREID_APP_SECRET": "YOUR_SECUREID_CLIENT_SECRET",
          "TOOLS": "pg,payouts,secureid",
          "ENV": "sandbox",
          "ELICITATION_ENABLED": "true"
        }
      }
    }
  }
}

API Credentials

Set the following environment variables for each service: Payment Gateway:

  • PAYMENTS_APP_ID: Your Payment Gateway client ID
  • PAYMENTS_APP_SECRET: Your Payment Gateway client secret

Payouts:

  • PAYOUTS_APP_ID: Your Payouts client ID
  • PAYOUTS_APP_SECRET: Your Payouts client secret
  • TWO_FA_PUBLIC_KEY_PEM_PATH: Path to your 2FA public key (required only if 2FA is enabled)

SecureID:

  • SECUREID_APP_ID: Your SecureID client ID
  • SECUREID_APP_SECRET: Your SecureID client secret
  • TWO_FA_PUBLIC_KEY_PEM_PATH: Path to your 2FA public key (required only if 2FA is enabled)

Environment

ENV: Set to production for production environment, sandbox for sandbox (default: sandbox)

Tools Configuration

TOOLS: Comma-separated list of modules to enable. Available options:

  • pg: Payment Gateway APIs
  • payouts: Payouts APIs
  • secureid: SecureID APIs

Elicitation Configuration

ELICITATION_ENABLED: Set to true to enable interactive parameter elicitation, false to disable (default: false)

When enabled, the MCP server will prompt users for missing required parameters instead of failing with validation errors. This provides a more interactive experience by asking users to provide values for required fields that weren't initially supplied.

Tools

Cashfree MCP has the following tools available, grouped by the product category

Payment Gateway (PG)

Tool NameDescription
searchSearch across the Cashfree Payments Developer Documentation.
get-input-source-helpGet comprehensive instructions for handling input source variable errors.
create-payment-linkCreate a new payment link.
fetch-payment-link-detailsView all details and status of a payment link.
cancel-payment-linkCancel an active payment link. No further payments can be done against cancelled links
get-orders-for-a-payment-linkView all order details for a payment link.
create-orderCreate orders with Cashfree to get a payment_sessions_id for transactions
get-orderFetch order details using order_id
get-order-extendedGet extended order data like address, cart, offers, customer details etc
get-eligible-payment-methodsGet eligible payment methods for a given order amount and ID
get-payments-for-an-orderView all payment details for an order.
get-payment-by-idView payment details of an order for a Payment ID.
create-refundInitiate refunds.
get-all-refunds-for-an-orderFetch all refunds processed against an order.
get-refundFetch a specific refund processed on your Cashfree Account.
get-all-settlementsGet all settlement details by specifying the settlement ID, settlement UTR, or date range.
get-split-and-settlement-details-by-order-id-v2-0Get split and settlement details, including settled/unsettled transactions for vendors in an order
get-settlements-by-order-idView all the settlements of a particular order.
get-disputes-by-order-idGet all dispute details by Order ID
get-disputes-by-payment-idGet all dispute details by Payment ID
get-disputes-by-dispute-idGet dispute details by Dispute ID
accept-dispute-by-dispute-idAccept a dispute by its Dispute ID
submit-evidence-to-contest-the-dispute-by-dispute-idSubmit evidence to contest a dispute
simulate-paymentSimulate payment for testing. Requires prior order creation
fetch-simulationFetch simulated payment details

Payouts

Tool NameDescription
standard-transfer-v2Initiate an amount transfer at Cashfree Payments.
get-transfer-status-v2Get the status of an initiated transfer.
batch-transfer-v2Initiate a batch transfer request at Cashfree Payments.
get-batch-transfer-status-v2Get the status of an initiated batch transfer.
authorizeAuthenticate with the Cashfree system and obtain the authorization bearer token.
create-cashgramCreate a Cashgram.
deactivate-cashgramDeactivate a Cashgram.
get-cashgram-statusGet the status of a created Cashgram.

SecureID

Tool NameDescription
verify-name-matchVerify names with variations.
generate-kyc-linkGenerate a verification form for KYC information.
get-kyc-link-statusGet the status of a KYC verification form.
generate-static-kyc-linkGenerate a static KYC link.
deactivate-static-kyc-linkDeactivate a static KYC link.

License

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

Documentation

For detailed API documentation, visit the Cashfree API Documentation.

Support

For support, contact care@cashfree.com or raise an issue in the GitHub repository.

常见问题

io.github.cashfree/cashfree-mcp 是什么?

面向 Cashfree docs 与 APIs 的 MCP server,便于 AI 统一检索文档并调用相关接口能力。

相关 Skills

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描164.6k

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描164.6k

接口测试套件

by alirezarezvani

Universal
热门

扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。

帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。

平台与服务
未扫描23.3k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
89.0k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
79.5k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
71.5k

评论