Skip to main content
Glama
Easypaisa MCP

Easypaisa MCP

by theYahia
README.md
# Easypaisa MCP — take mobile wallet payments in Pakistan from an AI assistant

If you were looking for a way to charge an Easypaisa mobile account from Claude or another AI assistant, create an over-the-counter payment, refund a customer or pull a transaction statement without writing gateway code, this is it. 8 tools cover payments, mobile account and OTC flows, token generation, status and transaction inquiry, refunds and statements, over credential-based HMAC authentication.

## Tools (8)

| Tool | Description |
|------|-------------|
| `create_payment` | Create a payment |
| `check_status` | Check payment status |
| `create_ma_payment` | Mobile account payment |
| `inquire_transaction` | Inquire about a transaction |
| `create_otc_payment` | Over-the-counter payment |
| `generate_token` | Generate a payment token |
| `refund_payment` | Refund a payment |
| `get_statement` | Get transaction statement |

## Quick Start

```json
{
  "mcpServers": {
    "easypaisa": {
      "command": "npx",
      "args": ["-y", "@theyahia/easypaisa-mcp"],
      "env": {
        "EASYPAISA_STORE_ID": "<YOUR_STORE_ID>",
        "EASYPAISA_HASH_KEY": "<YOUR_HASH_KEY>"
      }
    }
  }
}
```

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `EASYPAISA_STORE_ID` | Yes | Store ID from Easypaisa merchant portal |
| `EASYPAISA_HASH_KEY` | Yes | Hash key for HMAC signatures |

## Demo Prompts

- "Create an Easypaisa payment of 5000 PKR to 03451234567"
- "Check status of order ORD-001"
- "Create an OTC payment for 3000 PKR"
- "Generate a payment token for 10000 PKR"
- "Get my transaction statement for April 2026"

## License

MIT

---

Telegram: [@vhodvai](https://t.me/vhodvai)

TDQS

B3/5.0

Scored across 8 tools

Disambiguation3/5

The three create_* tools are distinguishable by payment rail (generic, OTC, mobile account), but check_status and inquire_transaction have unclear boundaries—both appear to query transaction state and could easily be misselected. The descriptions do little to clarify how status checking differs from transaction inquiry.

Naming Consistency5/5

Every tool follows a consistent verb_noun snake_case pattern (generate_token, refund_payment, create_otc_payment, check_status, inquire_transaction). No mixing of conventions or casing styles.

Tool Count5/5

Eight tools is well-scoped for a payment gateway covering token generation, payment creation across rails, refund, status, inquiry, and statements. Each tool maps to a distinct operation without bloat.

Completeness4/5

Core payment lifecycle is covered: token, create (three rails), refund, status, inquiry, and statement. Minor gaps exist—no cancel/void payment, no payment detail retrieval or listing—but agents can work around these.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues