Open-source Model Context Protocol (MCP) server for JazzCash — Pakistan's largest mobile-money platform. Hosted Checkout, Mobile Wallet charges, inquiries, and refunds for AI agents.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"jazzcash": {
"env": {
"JAZZCASH_ENV": "sandbox",
"JAZZCASH_PASSWORD": "...",
"JAZZCASH_RETURN_URL": "https://yourapp.example.com/jazzcash/callback",
"JAZZCASH_MERCHANT_ID": "MC...",
"JAZZCASH_INTEGRITY_SALT": "..."
},
"args": [
"C:/path/to/mcp-jazzcash/dist/index.js"
],
"command": "node"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Open-source Model Context Protocol (MCP) server for JazzCash — Pakistan's largest mobile-money platform. Hosted Checkout, Mobile Wallet charges, inquiries, and refunds for AI agents.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'cp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked cp against OSV.dev.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationBe the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in ai-ml / finance
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
An open-source AI agent that brings the power of Gemini directly into your terminal.
Just a Better Chatbot. Powered by Agent & MCP & Workflows.
MCP Security Weekly
Get CVE alerts and security updates for JazzCashMCP and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
An open-source Model Context Protocol server for JazzCash — Pakistan's largest mobile-money platform. Plug it into Claude Desktop, Cursor, Cline, or any MCP-aware agent and let it create checkouts, charge mobile wallets, look up transactions, and issue refunds against the JazzCash REST API.
Sandbox-by-default. Bring your own merchant credentials. No secrets bundled.
The Pakistani payments stack is fragmented and English-language documentation for AI agents is thin. This MCP gives any agent a stable, typed interface to JazzCash so you don't have to teach it the signature scheme, field names, and gotchas every time. Prompt your agent in plain English; let the server do the cryptography and HTTP.
| Tool | Purpose |
|---|---|
jazzcash_create_hosted_checkout | Builds a signed Hosted Checkout (Page Redirection) form. Returns the action URL, hidden fields, and a ready-to-use HTML snippet your app can serve. |
jazzcash_charge_mobile_wallet | Server-to-server MWALLET charge. Customer authorizes via MPIN on their phone. |
jazzcash_inquire_transaction | Status lookup by pp_TxnRefNo. |
jazzcash_refund_transaction | Full or partial refund (requires merchant role). |
jazzcash_environment_info | Reports active environment, endpoint URLs, and which credentials are present. Never returns secrets. |
All amounts are passed as PKR paisa (rupees × 100) to avoid float rounding.
git clone https://github.com/TehreemArbab/JazzCashMCP.git
cd JazzCashMCP
npm install
cp .env.example .env # then edit .env with your sandbox credentials
npm run build
npm start
The server speaks MCP over stdio, so npm start is most useful when launched by an MCP client (see below). To verify the build alone:
npm run typecheck
Copy .env.example to .env and fill in credentials from your JazzCash merchant portal:
JAZZCASH_MERCHANT_ID=MC...
JAZZCASH_PASSWORD=...
JAZZCASH_INTEGRITY_SALT=...
JAZZCASH_ENV=sandbox
JAZZCASH_RETURN_URL=https://yourapp.example.com/jazzcash/callback
Sandbox credentials are issued at https://sandbox.jazzcash.com.pk. To go live, switch JAZZCASH_ENV=production and swap in your live merchant credentials — no code changes required.
| Variable | Required | Notes |
|---|---|---|
JAZZCASH_MERCHANT_ID | yes | From the merchant portal. |
JAZZCASH_PASSWORD | yes | API password, not your portal login. |
JAZZCASH_INTEGRITY_SALT | yes | HMAC key for pp_SecureHash. |
JAZZCASH_ENV | yes | sandbox or production. |
JAZZCASH_RETURN_URL | only for hosted checkout | Where JazzCash redirects the customer post-payment. |
JAZZCASH_LANGUAGE | no | Default EN. |
JAZZCASH_CURRENCY | no | Default PKR. |
JAZZCASH_VERSION | no | Default 1.1. |
JAZZCASH_*_URL | no | Per-endpoint URL override; see Endpoint overrides. |