MCP server exposing Indian financial and government APIs — GSTIN, IFSC, PAN, UPI, pincode, HSN/SAC — for AI agents. Zero auth. Offline-first.
Project description
mcp-india-stack
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
lookup_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
Validation Tools
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
Tax Calculators (FY2025-26)
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
Additional Tools
bulk_validate_gstin— Parallel GSTIN batch validationbulk_validate_pan— Parallel PAN batch validationbulk_validate_ifsc— Parallel IFSC batch validationvalidate_fssai— FSSAI license number validation and decodecalculate_hra_exemption— HRA exemption calculator for salary planningcalculate_capital_gains— Capital gains tax helpercalculate_advance_tax— Advance tax estimatorlookup_bbps_biller— BBPS biller directory lookupdecode_pan_type— Decode PAN entity type from the 4th characterlookup_bank— Basic bank master lookup by name or codevalidate_epf_code— EPF establishment code validatorvalidate_esic_code— ESIC employer code validatordecode_digilocker_uri— DigiLocker URI decoder and validator mapper
Prompt Workflows
vendor_kyc— GSTIN, PAN, and IFSC verification workflowsalary_planner— Income, HRA, and take-home salary workflowinvoice_audit— GSTIN, HSN, and GST rate audit workflow
Resources
india://status— Version, DB connectivity, and runtime flagsindia://changelog— Structured changelog resource
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=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).
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.
Launch Notes
This repository is release-ready for GitHub launch with:
0.3.0package metadata and changelog coverage- A complete MCP server-card under
docs/.well-known/mcp/server-card.json - Local setup and publishing steps in
SETUP.md - Contribution guidance and versioning policy in
CONTRIBUTING.md
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_india_stack-0.3.0.tar.gz.
File metadata
- Download URL: mcp_india_stack-0.3.0.tar.gz
- Upload date:
- Size: 10.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e21237c50c5afd6c22ff6c65e30469a37a1796384b61d7dde2847fd5cf45258
|
|
| MD5 |
d29d1751758a2364f57d02c607dfe1e7
|
|
| BLAKE2b-256 |
47d00966b260579bd09f3e04357be6d90865957b9ddefa2e0b1db24b73e806af
|
Provenance
The following attestation bundles were made for mcp_india_stack-0.3.0.tar.gz:
Publisher:
publish.yml on rehan1020/MCP-India-Stack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_india_stack-0.3.0.tar.gz -
Subject digest:
0e21237c50c5afd6c22ff6c65e30469a37a1796384b61d7dde2847fd5cf45258 - Sigstore transparency entry: 1403209165
- Sigstore integration time:
-
Permalink:
rehan1020/MCP-India-Stack@bfe91f8525b5433391c6c651530233c3d9159d7e -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/rehan1020
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bfe91f8525b5433391c6c651530233c3d9159d7e -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_india_stack-0.3.0-py3-none-any.whl.
File metadata
- Download URL: mcp_india_stack-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b90328104e826d33fcc80fc19e3102644277b3e5129e5c716ace3fa38da3aac4
|
|
| MD5 |
9cce6d30a8ade89c06c386f0ac041db0
|
|
| BLAKE2b-256 |
0ce1476ce38c3f509ace18a181df492a45e74ea1f89a3ca4888eda2d63d8ec26
|
Provenance
The following attestation bundles were made for mcp_india_stack-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on rehan1020/MCP-India-Stack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_india_stack-0.3.0-py3-none-any.whl -
Subject digest:
b90328104e826d33fcc80fc19e3102644277b3e5129e5c716ace3fa38da3aac4 - Sigstore transparency entry: 1403209282
- Sigstore integration time:
-
Permalink:
rehan1020/MCP-India-Stack@bfe91f8525b5433391c6c651530233c3d9159d7e -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/rehan1020
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bfe91f8525b5433391c6c651530233c3d9159d7e -
Trigger Event:
push
-
Statement type: