Skip to content

rehan1020/MCP-India-Stack

Repository files navigation

mcp-india-stack

PyPI version License: MIT CI

MCP server exposing Indian financial and government APIs for AI agents. Zero auth. Offline-first.

Install

pip install mcp-india-stack

Run

mcp-india-stack

or

python -m mcp_india_stack

Tools

Lookup Tools

Validation Tools

Tax Calculators (FY2025-26)

Data Freshness

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=1 environment variable to disable all update checks.
  • Manual refresh — run mcp-india-stack --refresh-all to synchronously refresh all datasets from CDN.
  • Cache location — platform-specific via platformdirs (e.g., ~/.cache/mcp-india-stack on Linux).

Bundled Data Size

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.

Limitations

  • 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.

Legal and Attribution

See NOTICES for dataset attribution and licensing details.