Cashfree MCP Server

Official
by cashfree
Integrations
  • Hosts the Cashfree MCP repository for direct cloning and source code access, enabling developers to examine or contribute to the payment integration codebase.

  • Runs the Cashfree MCP server on Node.js runtime (requires v18.x+), providing the execution environment for the payment integration functionality.

  • Provides installation and distribution of the Cashfree MCP package via npm registry, allowing developers to easily install and configure the Cashfree payment integration tools.

无现金 MCP 服务器

Cashfree MCP 服务器允许 AI 工具和代理使用模型上下文协议 (MCP)Cashfree API(支付网关、支付和安全 ID)集成。

安装

从 npm 安装(推荐)

# Install globally npm install -g @cashfreepayments/cashfree-mcp # Or install in your project npm install @cashfreepayments/cashfree-mcp

克隆存储库

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

安装依赖项

npm install

(需要 Node.js 18.x 或更高版本)

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 cashfree-mcp:

npm exec @smithery/cli install @cashfree/cashfree-mcp --client claude

首选:Claude Desktop 中的链接

配置

您需要一个拥有 API 凭证的 Cashfree 帐户(我们支持沙盒密钥和生产密钥)。您可以在您喜欢的客户端中使用 Cashfree MCP,以下是一些示例配置:

克劳德

将以下配置块添加到您的claude_desktop_config.json

{ "mcpServers": { "cashfree": { "command": "npx", "args": ["@cashfreepayments/cashfree-mcp"], "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" } } } }

VS 代码

将以下配置块添加到您的 VS Code 设置中

{ "mcp": { "inputs": [], "servers": { "cashfree": { "command": "npx", "args": ["@cashfreepayments/cashfree-mcp"], "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" } } } } }

API 凭证

为每个服务设置以下环境变量:支付网关:

  • PAYMENTS_APP_ID :您的支付网关客户端 ID
  • PAYMENTS_APP_SECRET :您的支付网关客户端密钥

支出:

  • PAYOUTS_APP_ID :您的付款客户端 ID
  • PAYOUTS_APP_SECRET :您的 Payouts 客户端密钥
  • TWO_FA_PUBLIC_KEY_PEM_PATH :2FA 公钥的路径(仅在启用 2FA 时才需要)

安全ID:

  • SECUREID_APP_ID :您的安全 ID 客户端 ID
  • SECUREID_APP_SECRET :您的 Secure ID 客户端密钥
  • TWO_FA_PUBLIC_KEY_PEM_PATH :2FA 公钥的路径(仅在启用 2FA 时才需要)

替代配置方法

有几种方法可以运行 Cashfree MCP 服务器:

  1. 使用 npx (推荐)
    { "mcpServers": { "cashfree": { "command": "npx", "args": ["@cashfreepayments/cashfree-mcp"] } } }
  2. 使用全局安装的包
    { "mcpServers": { "cashfree": { "command": "cashfree-mcp" } } }
  3. 指定确切的路径(如果您需要特定的版本):
    { "mcpServers": { "cashfree": { "command": "node", "args": [ "path/to/node_modules/@cashfreepayments/cashfree-mcp/src/index.js" ] } } }

环境

ENV :设置为production表示生产环境,设置为sandbox表示沙盒环境(默认值: sandbox

工具配置

TOOLS :要启用的模块列表(以逗号分隔)。可用选项:

  • pg : 支付网关 API
  • payouts :付款 API
  • secureid :安全 ID API

工具

Cashfree MCP 提供以下工具,按产品类别分组

支付网关(PG)

工具名称描述
搜索搜索 Cashfree Payments 开发者文档。
创建付款链接创建新的付款链接。
获取付款链接详情查看付款链接的所有详细信息和状态。
取消付款链接取消有效的付款链接。取消的链接将无法再进行付款
获取订单付款链接查看所有订单详情的付款链接。
创建订单使用 Cashfree 创建订单以获取交易的 payment_sessions_id
获取订单使用 order_id 获取订单详情
获取订单扩展获取扩展订单数据,如地址、购物车、优惠、客户详细信息等
获取符合条件的付款方式获取给定订单金额和 ID 的合格付款方式
获取订单付款查看订单的所有付款详情。
通过 ID 获取付款查看付款 ID 的订单付款详情。
创建退款开始退款。
获得订单全部退款获取针对订单处理的所有退款。
获得退款获取您 Cashfree 账户上已处理的特定退款。
获得全部和解通过指定结算 ID、结算 UTR 或日期范围获取所有结算详情。
按订单 ID 获取拆分结算详情-v2-0获取拆分和结算详情,包括订单中供应商的已结算/未结算交易
按订单 ID 获取结算查看特定订单的所有结算。
按订单 ID 获取争议通过订单ID获取所有争议详情
通过付款 ID 获取争议通过付款 ID 获取所有争议详情
通过争议ID获取争议通过争议ID获取争议详情
通过争议ID接受争议通过争议 ID 接受争议
按争议ID提交证据以对抗争议提交证据以对抗争议
模拟支付模拟付款进行测试。需要提前创建订单
获取模拟获取模拟付款详情

支出

工具名称描述
标准传输-v2在 Cashfree Payments 发起金额转账。
获取传输状态-v2获取已启动传输的状态。
批量传输-v2伊尼蒂

发展 | create-cashgram | 创建 Cashgram。 | | deactivate-cashgram | 停用 Cashgram。 | | get-cashgram-status | 获取已创建 Cashgram 的状态。 |

安全ID

工具名称描述
验证名称匹配验证具有变体的名称。
生成 KYC 链接生成 KYC 信息的验证表。
获取 KYC 链接状态获取 KYC 验证表的状态。
生成静态 KYC 链接生成静态 KYC 链接。
停用静态 kyc 链接停用静态 KYC 链接。

执照

本项目遵循 MIT 开源许可证。请参阅许可证了解完整条款。

文档

有关详细的 API 文档,请访问Cashfree API 文档

支持

如需支持,请联系care@cashfree.com

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

使 AI 工具和代理能够使用模型上下文协议与 Cashfree 的支付服务(支付网关、支付和安全 ID)集成,从而允许通过自然语言进行交易和账户管理。

  1. 安装
    1. 从 npm 安装(推荐)
    2. 克隆存储库
    3. 安装依赖项
    4. 通过 Smithery 安装
    5. 首选:Claude Desktop 中的链接
    6. 配置
    7. 克劳德
    8. VS 代码
    9. API 凭证
    10. 替代配置方法
    11. 环境
    12. 工具配置
  2. 工具
    1. 支付网关(PG)
    2. 支出
    3. 安全ID
  3. 执照
    1. 文档
      1. 支持

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that enables Claude AI to interact with Paybyrd's payment processing API, allowing for creating payment links, processing refunds, and retrieving order information.
          Last updated -
          5
          TypeScript
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that connects AI assistants like Claude to Moneybird accounting software, enabling management of contacts, financial data, products, and business operations through natural language.
          Last updated -
          1
          JavaScript
          MIT License
          • Apple
        • -
          security
          F
          license
          -
          quality
          Provides AI assistants with access to Payman's documentation, helping developers build integrations more efficiently through enhanced contextual support.
          Last updated -
          TypeScript
        • A
          security
          F
          license
          A
          quality
          A server that provides easy access to Payman AI's APIs, allowing users to create payees, search payees, send payments, and check balances using natural language prompts.
          Last updated -
          5
          3
          JavaScript
          • Apple

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/cashfree/cashfree-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server