Back to Home
Dipesh600 icon

esewa-mcp-server

by Dipesh600

Overview

This server acts as a Model Context Protocol (MCP) wrapper for eSewa payment gateway, enabling creation of payment sessions, transaction verification, refunds, and status checks.

Installation

Run Command
node server.mjs

Environment Variables

  • ESEWA_MERCHANT_CODE
  • ESEWA_SECRET_KEY
  • ESEWA_TOKEN

Security Notes

The `smithery.yaml` file hardcodes sensitive environment variables like `ESEWA_SECRET_KEY` and `ESEWA_TOKEN`. Additionally, `services/esewa.js` provides hardcoded fallback values for `ESEWA_MERCHANT_CODE` and `ESEWA_SECRET_KEY` if environment variables are not set. This is a critical security vulnerability as it exposes credentials that should be securely managed and never committed to version control, especially for production deployments. While the code uses `crypto` for HMAC-SHA256, the static keys undermine this security measure.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassLow
Avg Tokens1
Stars0
Forks0
Last Update2025-11-28

Tags

eSewaPayment GatewayMCPNode.jsAPI Wrapper