upi-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
upi-mcp
MCP server for UPI handle (VPA) verification. It exposes a single tool,
upi_handle_verify, that checks whether a UPI ID is valid in format —
validated entirely offline, no API key required.
What it does
A UPI ID (also called a VPA — Virtual Payment Address) has the shape:
localpart@serverfor example name@paytm, user@yupi, me@oksbi. The grammar (UPI SDK / NPCI)
is:
localpart : [a-zA-Z0-9._-]+ (letters, digits, dot, underscore, hyphen)
'@'
server : [a-zA-Z]+ (letters only)upi_handle_verify returns:
{ "valid": true, "validFormat": true, "upiId": "name@paytm" }or, for a bad input:
{ "valid": false, "validFormat": false, "error": "Invalid UPI format. ..." }Data source note — format validation only
There is no reliable, free, no-key way to check whether a UPI handle is actually active (i.e. linked to a real, verified bank account). Confirming liveness requires bank / RTP integration through a payment aggregator (penny-drop or VPA-resolution APIs — e.g. Razorpay, Cashfree, Digi KYC, API Express — all paid and business-KYC gated).
So this package validates format only. The active field is always
undefined; if you need live-activation checks, wire in a paid aggregator and
call it from lib/upi.js.
Related MCP server: gst-validator-mcp
Quick start
Requires Node.js 18+.
cd upi-mcp
npm install
npm start # runs: node server.js
npm test # runs: node scripts/test.mjsMCP client configuration (stdio)
Add this to your MCP client config (e.g. claude_desktop_config.json or any
MCP-compatible client):
{
"mcpServers": {
"upi": {
"command": "node",
"args": ["/absolute/path/to/india-mcp/upi-mcp/server.js"],
"transportType": "stdio"
}
}
}(On Windows, point args at the full path to server.js.)
Tool
upi_handle_verify
Verifies the format of a UPI ID.
Arguments
name | type | required | description |
| string | yes | UPI ID / VPA to verify, e.g. |
Example
{
"name": "upi_handle_verify",
"arguments": { "upi_id": "name@paytm" }
}Response
{ "valid": true, "validFormat": true, "upiId": "name@paytm" }How validation works
verifyHandle() in lib/upi.js:
Trims the input.
Rejects empty / non-string input.
Matches against
/^[a-zA-Z0-9._-]+@[a-zA-Z]+$/.Confirms both the localpart and the server are non-empty.
It does not make any network call, so it is fast, free, and deterministic.
Project layout
upi-mcp/
├── lib/
│ └── upi.js # verifyHandle() — offline format validation
├── scripts/
│ └── test.mjs # test suite
├── server.js # MCP server (ListTools + CallTool, stdio)
├── package.json
├── README.md
├── LICENSE
└── .gitignoreLicense
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Validate IBAN, BIC, VAT, national IDs, phones, postal codes offline; 240+ identifiers.
Offline check-digit validation for IBAN, BIC, EU VAT, GTIN/EAN/UPC and ISBN. Format check only.
Offline IBAN/BIC/EU VAT/card/ISBN/GTIN validators + live USD stablecoin peg-health verdict.
Validate and normalize postal codes offline for 252 countries and territories. Format check only.
Related MCP Servers
- AlicenseAqualityAmaintenanceAn offline-first MCP server for Indian financial, tax, and government APIs, providing tools for identity validation (PAN, Aadhaar, GSTIN), tax calculations (Income Tax, TDS, GST), and master data lookups (IFSC, Pincode, HSN/SAC) with zero authentication required.7688MIT
- AlicenseNot gradedqualityDmaintenanceValidates Indian GSTIN numbers with structural checks, embedded PAN extraction, state-code lookup, and mod-36 check character validation, all via local compute.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to validate IBAN, BIC, EU VAT, GTIN/EAN/UPC, and ISBN codes offline through format and check-digit checks, and retrieve related metadata.MIT
- AlicenseAqualityBmaintenanceEnables AI agents to validate Indian identifiers (GSTIN, PAN, Aadhaar format, IFSC) and look up pincodes, state/GST codes, Central Government holidays, and compliance due dates entirely offline. Every result is deterministic and carries its data source and freshness, while making clear that a well-formed number is not proof of registration.834 npmMIT