Cashfree Mcp

io.github.cashfree由 GitHub 帳號 cashfree 發布v1.0.0更新於 Oct 25, 2026

Cashfree MCP server for cashfree docs and APIs

概覽

AI 產生的概覽

Cashfree MCP 伺服器,讓 AI 助理在本機程序中檢索 Cashfree 文件,並呼叫支付閘道、代付與 SecureID 介面。

可以做什麼
檢索 Cashfree 開發者文件,並取得支付閘道輸入參數錯誤的處理說明。建立、檢視與取消付款連結,並列出連結下的訂單。建立與查詢訂單、可用付款方式、付款紀錄、退款、結算與爭議,並可接受或申訴爭議。模擬並查詢測試付款。發起單筆與批次代付、查詢轉帳狀態、取得授權權杖,以及建立、停用或查詢 Cashgram 狀態。透過 SecureID 驗證姓名比對,並產生、查詢或停用 KYC 連結。
適用情境
適合在桌面 MCP 用戶端中讓助理處理 Cashfree 的付款、代付或身分驗證事務,例如查閱文件、檢視訂單與結算,或準備退款與轉帳。建議先用沙箱憑證驗證流程,再切換到正式環境。
執行需求
以 npm 套件形式在本機執行,需要 Node.js(README 要求 v14 以上,並提示較新的 Node 需 20.18.1 或更高)。需要 Cashfree 帳戶及 API 憑證:PAYMENTS_APP_ID 與 PAYMENTS_APP_SECRET、PAYOUTS_APP_ID 與 PAYOUTS_APP_SECRET、SECUREID_APP_ID 與 SECUREID_APP_SECRET。需設定 ENV 為 sandbox 或 production,並以 TOOLS 指定啟用的模組(pg、payouts、secureid)。僅在啟用 2FA 時需要 TWO_FA_PUBLIC_KEY_PEM_PATH。
安裝前請注意
伺服器環境中保存著付款、代付與 KYC 的正式 API 金鑰。它可以實際動用資金:單筆與批次轉帳、Cashgram、退款和付款連結都會作用於你的 Cashfree 帳戶,ENV 預設為沙箱但可設為正式。它還能接受或申訴爭議、停用連結。建議先用沙箱金鑰,只啟用需要的模組,並避免把金鑰寫入共用設定檔。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Cashfree Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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.gitcd 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 [email protected] or raise an issue in the GitHub repository.

來源:README.md,提交 04a6278

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。