Skip to main content
Glama
Easypaisa MCP

Easypaisa MCP

by theYahia

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

Related MCP server: Pakistan Payments MCP

Quick Start

{
  "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

Available Tools

8 tools
check_statusC

Check Easypaisa payment status.

Inputs: order_id (required).

create_ma_paymentC

Create a mobile account payment.

Inputs: amount (required), order_id (required), mobile_account_no (required), email.

create_otc_paymentC

Create an over-the-counter payment.

Inputs: amount (required), order_id (required), email.

create_paymentC

Create an Easypaisa payment.

Inputs: amount (required), order_id (required), mobile_number (required), email.

generate_tokenC

Generate a payment token.

Inputs: amount (required), order_id (required), expiry_date.

get_statementC

Get transaction statement.

Inputs: date_to (required), date_from (required), page, page_size.

inquire_transactionC

Inquire about a transaction.

Inputs: order_id (required), payment_token.

refund_paymentC

Refund an Easypaisa payment.

Inputs: amount (required), order_id (required), reason.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    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

    Related MCP Connectors

    Related MCP Servers