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.

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).

Installation

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

Clone the Repository

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

Install Dependencies

npm install

(requires Node.js 18.x or higher)

Installing via Smithery

To install cashfree-mcp for Claude Desktop automatically via Smithery:

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

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

{ "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 Code

Add the following configuration block to your VS Code settings

{ "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 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)

Secure ID:

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

Alternative Configuration Methods

There are several ways to run the Cashfree MCP server:

  1. Using npx (Recommended):
    { "mcpServers": { "cashfree": { "command": "npx", "args": ["@cashfreepayments/cashfree-mcp"] } } }
  2. Using the globally installed package:
    { "mcpServers": { "cashfree": { "command": "cashfree-mcp" } } }
  3. Specifying the exact path (if you need a specific version):
    { "mcpServers": { "cashfree": { "command": "node", "args": [ "path/to/node_modules/@cashfreepayments/cashfree-mcp/src/index.js" ] } } }

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: Secure ID APIs

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.
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-disputed-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-v2Initi

desenvolvimento | create-cashgram | Create a Cashgram. | | deactivate-cashgram | Deactivate a Cashgram. | | get-cashgram-status | Get the status of a created Cashgram. |

Secure ID

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

-
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.

Enables AI tools and agents to integrate with Cashfree's payment services (Payment Gateway, Payouts, and SecureID) using the Model Context Protocol, allowing transactions and account management through natural language.

  1. Installation
    1. Install from npm (Recommended)
    2. Clone the Repository
    3. Install Dependencies
    4. Installing via Smithery
    5. Preferred: Link in Claude Desktop
    6. Configuration
    7. Claude
    8. VS Code
    9. API Credentials
    10. Alternative Configuration Methods
    11. Environment
    12. Tools Configuration
  2. Tools
    1. Payment Gateway (PG)
    2. Payouts
    3. Secure ID
  3. License
    1. Documentation
      1. Support

        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