home / mcp / cashfree mcp server
Provides Cashfree Payments, Payouts, and SecureID MCP endpoints for AI tool integration.
Configuration
View docs{
"mcpServers": {
"cashfree-cashfree-mcp": {
"command": "node",
"args": [
"/path/to/cashfree-mcp/dist/index.js"
],
"env": {
"ENV": "sandbox",
"TOOLS": "pg,payouts,secureid",
"PAYOUTS_APP_ID": "YOUR_PAYOUTS_CLIENT_ID",
"PAYMENTS_APP_ID": "YOUR_PG_CLIENT_ID",
"SECUREID_APP_ID": "YOUR_SECUREID_CLIENT_ID",
"PAYOUTS_APP_SECRET": "YOUR_PAYOUTS_CLIENT_SECRET",
"ELICITATION_ENABLED": "true",
"PAYMENTS_APP_SECRET": "YOUR_PG_CLIENT_SECRET",
"SECUREID_APP_SECRET": "YOUR_SECUREID_CLIENT_SECRET",
"TWO_FA_PUBLIC_KEY_PEM_PATH": "/path/to/public_key.pem"
}
}
}
}The Cashfree MCP Server lets AI tools and agents talk to Cashfree’s Payment Gateway, Payouts, and SecureID APIs using the Model Context Protocol. It provides a programmable bridge so you can perform payments, manage payouts, and verify identities from your MCP-enabled clients.
You run the MCP server locally (stdio) and connect your MCP client to it. The server exposes the Cashfree APIs you enable with the TOOLS setting. Start the server with Node and point it at the built distribution, then configure your MCP client to load the cashfree mcp server with the appropriate environment credentials. You can set the environment to sandbox for testing or production for live operations. Interactive parameter elicitation can prompt you for missing values if you enable it.
Prerequisites: ensure you have Node.js installed (version 14.x or higher). If you use a helper tool like nvm or brew, make sure the active Node version meets this requirement.
node -v
# Should output v14.x or higherClone the MCP server repository, install dependencies, and build the project.
git clone https://github.com/cashfree/cashfree-mcp.git
cd cashfree-mcp
npm install
npm run buildStart the MCP server using the stdio configuration. The final start command shown below is the runtime command you should use to run the server in your environment.
node /path/to/cashfree-mcp/dist/index.jsYou enable specific Cashfree APIs by listing them in the TOOLS environment variable. For example, to enable Payment Gateway, Payouts, and SecureID, set TOOLS to pg,payouts,secureid. You also need to provide API credentials for each service via environment variables.
Provide credentials securely through environment variables. The following env vars are used by the MCP server: PAYMENTS_APP_ID, PAYMENTS_APP_SECRET, PAYOUTS_APP_ID, PAYOUTS_APP_SECRET, TWO_FA_PUBLIC_KEY_PEM_PATH, SECUREID_APP_ID, SECUREID_APP_SECRET, ENV, ELICITATION_ENABLED. Use sandbox values for testing and production values for live operation.
If you set ELICITATION_ENABLED to true, the MCP server will prompt you for any required parameters that were not supplied, rather than failing with validation errors. This helps you complete configurations interactively during setup.
Search across the Cashfree Payments Developer Documentation.
Get comprehensive instructions for handling input source variable errors.
Create a new payment link.
View all details and status of a payment link.
Cancel an active payment link. No further payments can be made against it.
View all order details for a payment link.
Create orders with Cashfree to obtain a payment_sessions_id for transactions.
Fetch order details by order_id.
Get extended order data like address, cart, offers, customer details.
Get eligible payment methods for a given order amount and ID.
View all payment details for an order.
View payment details by Payment ID.
Initiate refunds.
Fetch all refunds for an order.
Fetch a specific refund on your Cashfree account.
Get settlement details by ID, UTR, or date range.
Get split and settlement details for vendors in an order.
View settlements for a particular order.
Get all dispute details by Order ID.
Get all dispute details by Payment ID.
Get dispute details by Dispute ID.
Accept a dispute by its Dispute ID.
Submit evidence to contest a dispute.
Simulate payment for testing. Requires a prior order creation.
Fetch simulated payment details.
Initiate an amount transfer at Cashfree Payments.
Get the status of an initiated transfer.
Initiate a batch transfer at Cashfree Payments.
Get the status of a batch transfer.
Authenticate with Cashfree and obtain a bearer token.
Create a Cashgram.
Deactivate a Cashgram.
Get the status of a created Cashgram.
Verify names with variations in SecureID.
Generate a verification form for KYC information.
Get the status of a KYC verification form.
Generate a static KYC link.
Deactivate a static KYC link.