Skip to main content
Glama
eSewa-Khalti MCP

eSewa-Khalti MCP

by Abidit

eSewa & Khalti MCP Servers

npm version npm version npm downloads License: MIT

Nepal's first MCP servers for eSewa and Khalti — the two dominant payment gateways in Nepal (eSewa alone serves 15M+ users). This monorepo lets Claude initiate and manage payments directly in conversation, with HMAC-SHA256 request signing so credentials never leave your own environment.

What is MCP?

The Model Context Protocol (MCP) is an open standard that enables Claude and other AI models to safely interact with tools, APIs, and data sources. MCP servers allow you to extend Claude's capabilities by exposing custom functionality through a standardized interface.

Related MCP server: PayBridgeNP MCP Server

What's Included

This monorepo contains two MCP servers for Nepali payment gateways:

Quick Start

Using with Claude Desktop

  1. Install all packages:

    npm install
    npm run build
  2. Configure in ~/.config/Claude/claude_desktop_config.json:

    {
      "mcpServers": {
        "khalti-mcp": {
          "command": "npx",
          "args": ["-y", "khalti-mcp"],
          "env": {
            "KHALTI_SECRET_KEY": "your-khalti-secret-key",
            "KHALTI_GATEWAY_URL": "https://a.khalti.com/api/v2"
          }
        },
        "esewa-mcp": {
          "command": "npx",
          "args": ["-y", "esewa-mcp"],
          "env": {
            "ESEWA_SECRET_KEY": "your-esewa-secret-key",
            "ESEWA_PRODUCT_CODE": "your-esewa-product-code",
            "ESEWA_GATEWAY_URL": "https://uat.esewa.com.np/api/epay/main/v2/form"
          }
        }
      }
    }
  3. Restart Claude Desktop and start using payment tools in conversations.

Using with Claude Code

claude mcp add khalti-mcp -- npx -y khalti-mcp
claude mcp add esewa-mcp -- npx -y esewa-mcp

Development

# Install dependencies
npm install

# Build all packages
npm run build

# Development mode (watch)
npm run dev

Packages

See individual package READMEs for detailed documentation:

License

MIT

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects AI agents to Nepal's payment infrastructure through the PayArk API. It enables users to monitor transaction history, manage projects, and generate hosted checkout links using natural language.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to interact with PayBridgeNP payment gateway accounts through natural language. Provides read-only access to payments, refunds, analytics, and account data, with write capabilities planned for future versions.
      24 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables users to manage personal finances—tracking expenses, income, budgets, and generating summaries—through natural language commands via AI assistants like Claude.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that integrates Safaricom's M-PESA Daraja API with Claude, enabling natural language payment processing and real-time transaction notifications.
      3
      -