search
Search across the Cashfree Payments Developer Documentation.
Read the money.
Move the money.
Create orders, payment links and refunds on a Cashfree merchant account from your AI client, and look up settlements. Cashfree's hosted server also shows your unsettled balance and runs reconciliation reports.
LABSCO SUMMARY
Cashfree offers it two ways, with different tools: its hosted server (37 tools) and the npm package or local build (38 tools). On Cashfree's hosted server you sign in with your merchant login; the npm package and the local build instead need an app ID and secret for each Cashfree product you turn on (Payments, Payouts or SecureID).
Cashfree's own MCP server for a merchant account. Both versions create orders, payment links and refunds and read them back. The hosted server adds transaction search, your unsettled balance and next settlement date, whether you can take an instant withdrawal and what it would cost, and reconciliation reports; the npm package or local build adds payouts, KYC links and disputes.
Hosted server (Claude on the web, desktop or mobile, ChatGPT, Cursor or Claude Code): a Cashfree merchant account with owner-level access, which you sign in with — no keys to create. npm package or local build: Node.js and npx for the package, or Git and npm to build from source, plus an app ID and secret for each Cashfree product you turn on (Payments, Payouts or SecureID). The package's own configuration starts in sandbox.
USE CASES
Each one is a question you would otherwise answer by logging in, and the tools that answer it. Jobs marked “Hosted server only” need Cashfree's hosted server (Claude, ChatGPT, Cursor or Claude Code); the npm package and local build don't have those tools.
Open the full lifecycle of the transaction, then look at every payment attempt made against that order. Hosted server only.
Ask what is still unsettled and when the next settlement lands, holidays included. Hosted server only.
Check what is eligible right now, then price the exact charge for the amount you had in mind. Hosted server only.
Kick off a reconciliation report, poll it until it is ready, and download it from the same conversation. Hosted server only.
Create a payment link, check its status later, and see the orders that came through it.
Start the refund against the payment and read its status back rather than waiting for a report.
All 38 tools of the npm package and local build, grouped under the vendor's own three headings — the same three its configuration selects. Each description is the project's own wording. Cashfree's hosted server has its own 37, listed in Cashfree's MCP Server docs; the 13 payment-gateway tools for links, orders, payments, refunds and the simulator are on both.
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
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.
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.
BEFORE YOU INSTALL
38 in the npm package and local build; 37 on Cashfree's hosted server. Both cover payment links, orders, payments, refunds and standard settlement lookups. Only the hosted server reads your settlement balance, checks and prices instant withdrawals, and runs reports; only the package does payouts, KYC and disputes.
A Cashfree merchant account. On the hosted server you sign in with it; the npm package and local build also need an app ID and secret for each product you turn on. Each option under Installation lists the rest.
Claude (web, desktop or mobile app), ChatGPT, Cursor and Claude Code connect to Cashfree's hosted server (37 tools). VS Code — and Claude Desktop, if you prefer — launch the npm package or a local build on your computer instead (38 tools). The package's own configuration starts in sandbox.
INSTALLATION
The project publishes this on npm. Credentials come from your Cashfree merchant dashboard.
npx -y @cashfreepayments/cashfree-mcp{
"mcpServers": {
"cashfree": {
"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>",
"SECUREID_APP_ID": "<YOUR_SECUREID_APP_ID>",
"SECUREID_APP_SECRET": "<YOUR_SECUREID_APP_SECRET>",
"TOOLS": "pg,payouts,secureid",
"ENV": "sandbox",
"ELICITATION_ENABLED": "true"
}
}
}
}The README says npm run build "compiles the source files to the dist/ directory, which is required to run the MCP server" — and the Claude Desktop and VS Code configurations below launch that dist/index.js, so it has to exist first.
git clone https://github.com/cashfree/cashfree-mcp.git
cd cashfree-mcp
npm install
npm run buildLog in to Claude on the web, Claude Desktop or the Claude mobile app. Select Customize in the left navigation, then the Connectors tab.
Search for Cashfree, select the Cashfree listing, then Connect. You are redirected to the Cashfree Merchant Dashboard — log in with the merchant account that should have access. If the connection is blocked, check your Claude account settings: connector access may need a paid plan.
The configuration in the next step launches the dist/index.js this produces.
git clone https://github.com/cashfree/cashfree-mcp.git
cd cashfree-mcp
npm install
npm run buildThe path in args is the dist/index.js the build produced, and <YOUR_PATH_TO_CASHFREE_MCP> is the full path to your cashfree-mcp clone. <YOUR_TWO_FA_PUBLIC_KEY_PEM> is the path to your 2FA public key, needed only if 2FA is enabled. The other six are the client ID and secret for Payment Gateway, Payouts and SecureID; you need the pair only for the products listed in TOOLS.
{
"mcpServers": {
"cashfree": {
"command": "node",
"args": [
"<YOUR_PATH_TO_CASHFREE_MCP>/dist/index.js"
],
"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>",
"SECUREID_APP_ID": "<YOUR_SECUREID_APP_ID>",
"SECUREID_APP_SECRET": "<YOUR_SECUREID_APP_SECRET>",
"TOOLS": "pg,payouts,secureid",
"ENV": "sandbox",
"ELICITATION_ENABLED": "true"
}
}
}
}Same build as above; the configuration launches its dist/index.js.
git clone https://github.com/cashfree/cashfree-mcp.git
cd cashfree-mcp
npm install
npm run buildVS Code nests the server under mcp.servers rather than mcpServers.
{
"mcp": {
"inputs": [],
"servers": {
"cashfree": {
"command": "node",
"args": [
"<YOUR_PATH_TO_CASHFREE_MCP>/dist/index.js"
],
"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>",
"SECUREID_APP_ID": "<YOUR_SECUREID_APP_ID>",
"SECUREID_APP_SECRET": "<YOUR_SECUREID_APP_SECRET>",
"TOOLS": "pg,payouts,secureid",
"ENV": "sandbox",
"ELICITATION_ENABLED": "true"
}
}
}
}
}Open Cursor's Settings (gear icon) → Tools & Integrations, and under MCP Tools select Add Custom MCP. That opens mcp.json — add this and save the file. No local clone needed.
{
"mcpServers": {
"cashfree": {
"url": "https://mcp.cashfree.com/mcp"
}
}
}Back in Settings → Tools & Integrations, find Cashfree under MCP Tools and select Needs login. A browser window opens on the Cashfree Merchant Dashboard — log in with the merchant account that should have access.
One command, the same hosted endpoint Cursor uses.
claude mcp add --transport http cashfree https://mcp.cashfree.com/mcpIn a Claude Code session, run /mcp, select cashfree, then Login. A browser window opens on the Cashfree Merchant Dashboard — log in with the merchant account that should have access.
Log in to ChatGPT, select your profile icon, then Settings → Plugins (shown as Apps on some accounts).
Search for Cashfree, select the Cashfree listing, then Connect. You are redirected to the Cashfree Merchant Dashboard — log in with the merchant account that should have access.