MCP server exposing Indian financial and government APIs for AI agents. Zero auth. Offline-first.
pip install mcp-india-stackmcp-india-stackor
python -m mcp_india_stacklookup_ifsc— Bank branch details from IFSC codelookup_pincode— India pincode details and post officeslookup_hsn_code— HSN/SAC code lookup by code or keyworddecode_state_code— GST state code metadata
validate_gstin— GSTIN structure and checksumvalidate_pan— PAN format and entity type decodevalidate_upi_vpa— UPI VPA structure and provider decodevalidate_aadhaar— Aadhaar number with Verhoeff checksumvalidate_voter_id— Voter ID (EPIC) format with legacy detectionvalidate_driving_license— DL format with state/RTO/year decodevalidate_passport— Indian passport number formatvalidate_cin— Company Identification Number with full field decodevalidate_din— Director Identification Number format
calculate_income_tax— Old vs new regime comparison with surcharge, rebate, cesscalculate_tds— TDS rate lookup and computation for 12+ sectionscalculate_gst— GST breakdown (CGST/SGST/IGST/cess)calculate_surcharge— Surcharge and marginal relief calculator
Datasets are bundled with the package for offline-first operation. An optional auto-update mechanism fetches the latest versions from jsDelivr CDN in the background.
- Auto-update is non-blocking — stale data triggers a background refresh; the current request uses existing data.
- Opt out — set
MCP_INDIA_STACK_NO_AUTO_UPDATE=1environment variable to disable all update checks. - Manual refresh — run
mcp-india-stack --refresh-allto synchronously refresh all datasets from CDN. - Cache location — platform-specific via
platformdirs(e.g.,~/.cache/mcp-india-stackon Linux).
This package bundles static datasets for offline-first workflows.
- IFSC dataset (Razorpay releases)
- India pincode dataset (GeoNames IN postal dump, CC-BY)
- HSN/SAC master (GST tutorial workbook transformed to CSV)
- State codes and curated UPI handles
Expected install footprint includes approximately 10-11MB compressed static data.
- GSTIN validation checks format and checksum, not active GSTN status.
- PAN validation is structural; PAN check character is not publicly algorithmic.
- HSN/SAC rates are static references and may vary by conditions/notifications.
- All tax calculations are estimates for FY2025-26. Actual liability may differ — consult a CA.
- Aadhaar, Voter ID, DL, Passport, CIN, DIN validators are format-only — they do not verify active status with issuing authorities.
See NOTICES for dataset attribution and licensing details.