Skip to main content
Glama
Abidit

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

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.
    5 npm
    MIT
  • A
    license
    Not graded
    quality
    B
    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.
    46 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.
    -
  • A
    license
    C
    quality
    D
    maintenance
    Enables Claude to integrate with Stripe for creating payment links, processing payments, and managing products and customers.
    17
    23 npm
    MIT