Cashfree CLI
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cashfree CLIverify a successful payment for order 123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cashfree CLI
Prove a Cashfree integration works end to end — from your terminal, or from your AI agent.
Built by Mothi Venkatesh — Product Marketing at Cashfree Payments. An agent-native CLI for the developer (and the coding agent) who would rather never open the dashboard.
Most payment CLIs fetch objects. This one proves the loop: create an order, pay it, catch the webhook, verify the signature, and cross-check the API before it says "done." Sandbox by default. Runs fully offline with
--mock— no keys, no setup.
git clone https://github.com/mothivenkatesh/cashfree-cli
cd cashfree-cli && npm install && npm run build
node dist/index.js verify --mockVerifying upi success (mock)
✓ order created order_d5f8…ae97 (ACTIVE)
✓ payment initiated MOCK_pay_db0f…01a0
✓ webhook received signature valid
✓ api cross-check order_status=PAID (expected PAID)
✓ artifact .cashfree/verify-….jsonZero runtime dependencies · Node 20+ · one binary that is also an MCP server.
What it does
Closes the integration loop in five commands —
init→simulate→listen→verify→doctor. The slow part of a payment integration is testing webhooks and proving it works; this is built for exactly that.One binary, two consumers — a human at a terminal, and an AI agent over MCP. Same commands, same safety, both ways.
Runs offline —
--mockboots a built-in sandbox simulator that signs and delivers real webhooks, so the whole loop runs with no credentials.Agent-native by default —
--jsonoutput (auto-on when piped), semantic exit codes, and structured errors withsuggested_fixso an agent self-corrects.A webhook is a signal, not the truth —
verifyalways cross-checks the authoritative API before declaring success. Never the webhook payload alone.Grounded in the real API —
x-api-version: 2025-01-01, real endpoints, HMAC-SHA256 webhook verification. No invented shapes.
Related MCP server: Tunzaa MCP Server
What works today
✅
verify— the full loop, validated against the live Cashfree sandbox: real order → pay → simulate → webhook → signature match → API cross-check → typed artifact.✅ Payment Gateway, live-validated:
orders create/get,payments list,links create/get, order pay,simulate,refunds create,settlements get+settlements today,disputes order/get.✅ Signed webhook delivery confirmed live — the sandbox delivers signed webhooks; this CLI's signature verification matches Cashfree's exactly.
✅
listen— forward webhooks to localhost and verify signatures locally, no ngrok (mock + cross-process proven).✅ Real-mode webhooks via
--tunnel—verify --tunnel/listen --tunnelopen a cloudflared tunnel so live Cashfree webhooks reach localhost; graceful fallback if cloudflared is absent.✅ OpenAPI codegen —
npm run codegengenerates typed defs from Cashfree's live specs (PG/Payouts/Verification) for drift-checking.✅
init— scaffolds.env.example, a webhook handler with real signature verification, and anAGENTS.mdso coding agents stop guessing the API.✅
doctor— preflight: credentials, API version, connectivity, mode.✅
mcp serve— exposes the surface as 8 MCP tools over stdio JSON-RPC.✅ 10/10 tests, clean TypeScript build, zero runtime dependencies.
Roadmap — not done yet
⏳ Secure ID (PAN, bank account, UPI verification) — client built; needs signature auth + IP allowlisting handled for a CLI context; live validation pending.
⏳ Payouts (transfers, beneficiaries) — client built; needs IP allowlisting + V2 body finalized; live validation pending.
⏳ Subscriptions (UPI Autopay, plans, mandates) — commands built and grounded in the docs; pending sandbox product enablement; live validation pending.
⏳ Publish to npm for
npx cashfree-cli(package is publish-ready), plus a Homebrew tap.⏳ Migrate the client to generated types — the
npm run codegenpipeline exists; wiring the client to it is the follow-up.⏳ More
initlanguages — Python and PHP scaffolds.
The commands
# the loop
cashfree init # scaffold a working integration + AGENTS.md
cashfree simulate payment --payment-id <id> --status SUCCESS
cashfree listen --forward-to http://localhost:3000/webhook
cashfree verify --outcome success # prove it works, emit an artifact
cashfree doctor # why you are not live yet
# resources (Payment Gateway)
cashfree orders create --amount 100 # orders get <id>
cashfree payments list <order_id>
cashfree refunds create --order <id> --amount 50
cashfree links create --amount 100 # links get <id>
cashfree settlements get <order_id> # settlements today
cashfree disputes order <order_id> # disputes get <id>
# roadmap surfaces (built, validation pending)
cashfree payouts transfer --amount 500 --vpa name@bank # payouts balance
cashfree secureid pan --pan ABCDE1234F --name "Name"
cashfree subscriptions create-plan --amount 499 --interval-type MONTH
# auth + agents
cashfree login --client-id <id> --client-secret <secret>
cashfree mcp serveAdd --mock to run any of it offline. Add --json for machine output.
For AI agents
--jsonon every command, auto-on when stdout is piped (TTY detection).Semantic exit codes:
0ok ·2auth ·3validation ·4confirmation-required ·6not-found ·7rate-limited ·8network. Branch on them; don't scrape text.Structured errors with
suggested_fixandretry_after.cashfree mcp serve— the same surface as MCP tools, same gates.cashfree initwritesAGENTS.mdwith the pinned API version, base URLs, and the "webhook is not the truth" rule.
Safety
Sandbox by default.
--liveis required for production.Live money movement (payouts, refunds) also needs
--confirm, so a script or agent never moves real money by accident.Credentials live in a
0600file (OS keychain hardening on the roadmap), never in argv, never logged.
How it's built
TypeScript, compiled with
tsc, zero runtime dependencies — even the MCP server is a hand-rolled JSON-RPC stdio loop. Fast, reliablenpm install.The real HTTP client and an offline mock sandbox implement one
CashfreeClientinterface, so the CLI and the MCP server share logic and the whole thing is testable without a network.API shapes are grounded in Cashfree's public SDKs and OpenAPI specs.
Status: community project, not an official Cashfree product (yet). Payment Gateway is validated against the live sandbox; the rest is on the roadmap above. Issues and PRs welcome.
MIT © Mothi Venkatesh
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
Flicense-qualityDmaintenanceEnables 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.Last updated9013
Tunzaa MCP Serverofficial
FlicenseAqualityCmaintenanceEnables AI agents to integrate Tunzaa Payments by generating accurate boilerplate code and webhook handlers. Operates in mock mode by default with optional live verification against Tunzaa APIs when credentials are provided.Last updated10- AlicenseAqualityBmaintenanceEnables AI agents to create disposable webhook URLs, capture incoming HTTP requests, inspect headers and bodies, and replay them against local or remote endpoints, streamlining the webhook handler development loop.Last updated54MIT

PayRam MCP Serverofficial
Flicense-qualityCmaintenanceEnables AI agents to deploy and operate a self-hosted, no-signup crypto payment gateway with multi-chain support, card-to-crypto checkout, and MCP tools for payment links and integration snippets.Last updated156
Related MCP Connectors
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
A paid remote MCP for AI agent browser DevTools MCP, built to return verdicts, receipts, usage logs,
A webhook inbox for agents: one call returns a live URL. Mock, verify, inspect and replay.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/mothivenkatesh/cashfree-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server