PluginBench
MCP Server
Maintained

io.github.cashfree/cashfree-mcp MCP Server

io.github.cashfree/cashfree-mcp

AI-powered integration with Cashfree payment gateway, payouts, and identity verification APIs.

What is the io.github.cashfree/cashfree-mcp MCP server?

The Cashfree MCP server enables AI tools and agents to integrate with Cashfree's Payment Gateway, Payouts, and SecureID APIs through the Model Context Protocol. It provides access to payment processing, fund transfers, refunds, settlements, disputes, and KYC verification capabilities.

This server connects Claude, Cursor, and other AI agents to Cashfree's payment infrastructure. Use it to automate payment link creation, order management, refund processing, batch payouts, KYC verification, and dispute handling—all through natural language commands. Supports both sandbox and production environments with configurable API credentials.

How to install io.github.cashfree/cashfree-mcp

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • PAYMENTS_APP_ID
    secret

    Payment Gateway App Id

  • PAYMENTS_APP_SECRET
    secret

    Payment Gateway App Secret

  • PAYOUTS_APP_ID
    secret

    Payouts App Id

  • PAYOUTS_APP_SECRET
    secret

    Payouts App Secret

  • TWO_FA_PUBLIC_KEY_PEM_PATH

    Path to the PEM file containing the public key for verifying 2FA signatures

  • SECUREID_APP_ID
    secret

    SecureId App Id

  • SECUREID_APP_SECRET
    secret

    SecureId App Secret

  • TOOLS
    required

    Tools (Comma-separated list of modules to enable. Available options: pg, payouts, secureid)

  • ENV
    required

    Environment (production/sandbox default: sandbox)

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "cashfree-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cashfreepayments/cashfree-mcp"
      ],
      "env": {
        "PAYMENTS_APP_ID": "<YOUR_PAYMENTS_APP_ID>",
        "PAYMENTS_APP_SECRET": "<YOUR_PAYMENTS_APP_SECRET>",
        "PAYOUTS_APP_ID": "<YOUR_PAYOUTS_APP_ID>",
        "PAYOUTS_APP_SECRET": "<YOUR_PAYOUTS_APP_SECRET>",
        "TWO_FA_PUBLIC_KEY_PEM_PATH": "<YOUR_TWO_FA_PUBLIC_KEY_PEM_PATH>",
        "SECUREID_APP_ID": "<YOUR_SECUREID_APP_ID>",
        "SECUREID_APP_SECRET": "<YOUR_SECUREID_APP_SECRET>",
        "TOOLS": "<YOUR_TOOLS>",
        "ENV": "<YOUR_ENV>"
      }
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • search — Search across the Cashfree Payments Developer Documentation.
  • create-payment-link — Create a new payment link.
  • fetch-payment-link-details — View all details and status of a payment link.
  • cancel-payment-link — Cancel an active payment link.
  • create-order — Create orders with Cashfree to get a payment_sessions_id for transactions.
  • get-order — Fetch order details using order_id.
  • get-eligible-payment-methods — Get eligible payment methods for a given order amount and ID.
  • create-refund — Initiate refunds.
  • get-all-refunds-for-an-order — Fetch all refunds processed against an order.
  • get-all-settlements — Get all settlement details by specifying the settlement ID, settlement UTR, or date range.
  • get-disputes-by-order-id — Get all dispute details by Order ID.
  • accept-dispute-by-dispute-id — Accept a dispute by its Dispute ID.
  • submit-evidence-to-contest-the-dispute-by-dispute-id — Submit evidence to contest a dispute.
  • standard-transfer-v2 — Initiate an amount transfer at Cashfree Payments.
  • get-transfer-status-v2 — Get the status of an initiated transfer.
  • batch-transfer-v2 — Initiate a batch transfer request at Cashfree Payments.
  • create-cashgram — Create a Cashgram.
  • verify-name-match — Verify names with variations.
  • generate-kyc-link — Generate a verification form for KYC information.
  • get-kyc-link-status — Get the status of a KYC verification form.

Use cases

  • Automate payment link creation and order management for e-commerce platforms
  • Process refunds and manage disputes programmatically
  • Execute batch payouts and fund transfers to multiple recipients
  • Perform KYC verification and identity checks for compliance
  • Query settlement details and payment reconciliation data

io.github.cashfree/cashfree-mcp MCP server FAQ

What is the Cashfree MCP server?

It's an MCP server that gives AI agents access to Cashfree's Payment Gateway, Payouts, and SecureID APIs for automating payments, transfers, refunds, disputes, and KYC verification.

Is the Cashfree MCP server free?

The server itself is open-source (MIT licensed), but you need a Cashfree account with API credentials. Cashfree's payment processing services have their own pricing.

How do I install it in Claude?

Add the configuration block to your claude_desktop_config.json file with your Cashfree API credentials (PAYMENTS_APP_ID, PAYMENTS_APP_SECRET, etc.) and the path to the built dist/index.js file, then restart Claude.

What API credentials do I need?

You need client IDs and secrets for each service you want to enable: Payment Gateway, Payouts, and/or SecureID. Optionally, a 2FA public key PEM file if 2FA is enabled.

Can I use it in sandbox mode?

Yes, set the ENV variable to 'sandbox' (default) for testing, or 'production' for live transactions.

What Node.js version is required?

Node.js v14.x or higher is required; v20.18.1 or higher is recommended to avoid peer dependency issues.

README (reference)

Source of truth, from the repository.

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

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:

node -v
# Should output v14.x or higher

Step 1: Install project dependencies

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

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

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

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

Related MCP servers

Solana memecoin rug + creator-reputation checks for agents. PASS/CAUTION/FAIL + 0-100 score.

Privacy-first file tools for AI agents — PDF & image ops, metadata scrubbing, background removal.

0
JavaScript
MIT
View repository →

AI-curated book catalog that eliminates hallucinations and surfaces lesser-known titles.

Structured AI project planning: cycles, tasks, strategy reviews, and build handoffs.

View repository →
PUPuzzleTide logo

PuzzleTide

Maintained

Word search, crossword, and sudoku generators, printable PDF worksheets, and verifiable LLM evals.

0
TypeScript
MIT
View repository →

Local-first MCP server for text, JSON, Base64, CSV, regex, and developer utilities.