Skip to main content

🇮🇳 MCP India Stack

A high-performance, offline-first Model Context Protocol (MCP) server equipping AI agents with Indian financial, tax, and government APIs. Zero authentication required.

PyPI version License: MIT MCP Compatible CI Verified on MseeP MseeP.ai Security Assessment Badge

📑 Table of Contents


📌 Problem Statement

  • Fragmented Access: Indian fintech, identity, and tax APIs are heavily siloed, requiring multiple disjointed integrations.
  • High Barriers to Entry: Existing solutions are plagued by paid subscriptions, strict rate limits, and complex API key management.
  • No Native AI Integration: There is no MCP-native standard designed specifically for autonomous AI agents to validate GSTIN, PAN, IFSC, or compute tax data.
  • Latency & Reliability Issues: Depending on remote third-party APIs for static/slow-moving datasets introduces unnecessary network delays and potential points of failure for AI workflows.

🛠️ Tech Stack

Layer Technology
Protocol MCP (FastMCP)
Runtime Python
Distribution PyPI / Smithery
Hosting Render
Datasets Offline-bundled (jsDelivr CDN sync)

🏗️ Architecture Diagram

Architecture MCP Client ↔ MCP Server ↔ 76 offline-first tool modules


✨ Key Features

  • Offline-First Architecture: Bundles compressed datasets for zero-latency lookups (IFSC, Pincodes, HSN/SAC). No API rate limits.
  • Zero Authentication: No API keys, secrets, or subscriptions required. All logic runs locally.
  • Background Auto-Updates: Non-blocking CDN fetching ensures your datasets never go stale without impacting request latency.
  • Comprehensive Coverage: 76 dedicated tools for identity validation (PAN, Aadhaar, GSTIN, TAN, PRAN), tax calculation (Income Tax, TDS, GST), savings calculators (EPF, PPF, SIP), and master data lookups.
  • Enterprise-Ready: Thread-pool accelerated bulk validation tools for processing large batches of vendor or customer data.

🚀 Quick Start

Installation

pip install mcp-india-stack

Claude Desktop Configuration

Add the following to your claude_desktop_config.json file to enable the India Stack in Claude Desktop:

Windows (%APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "mcp-india-stack": {
      "command": "python",
      "args": ["-m", "mcp_india_stack"]
    }
  }
}

macOS/Linux (~/Library/Application Support/Claude/claude_desktop_config.json or ~/.config/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "mcp-india-stack": {
      "command": "python3",
      "args": ["-m", "mcp_india_stack"]
    }
  }
}

🛠️ Tool Catalog

🔍 Lookup Tools

✅ Validation Tools

📱 Identity & Contact

⚡ Bulk Operations

🧮 Tax & Financial Calculators (FY2025-26)

💰 Savings & Investment Calculators

🏠 Real Estate

💼 HR & Payroll

🏦 Banking & Payments

📈 Stock Market

  • get_stock_quote — Fetch live/delayed Indian stock quotes and summaries (NSE/BSE) using yfinance.
  • get_stock_history — Fetch historical end-of-day data for Indian stocks using yfinance.

📋 RTI Toolkit

🔐 Account Aggregator (Offline)


🔄 Agent Workflows & Resources

Prompt Workflows (Overview)

Built-in prompt templates to guide AI agents through complex multi-step tasks:

  • vendor_kyc — GSTIN, PAN, and IFSC verification sequence.
  • salary_planner — Income, HRA, and optimized take-home salary planning.
  • invoice_audit — Cross-referencing GSTINs, HSN codes, and applicable GST rates.

Server Resources (Overview)

Dynamic JSON resources provided directly to the LLM context:

  • india://status — Version, DB connectivity, and runtime flags
  • india://changelog — Structured changelog resource
  • india://schema/* — JSON schemas for all tool outputs

📡 Data Architecture & Freshness

This package bundles static datasets for offline-first workflows (approx. 10-11MB compressed footprint), covering IFSCs, Pincodes, HSN/SAC masters, and curated UPI handles.

All datasets are bundled directly within the package and checksum-verified at build time:

  • Offline First: Zero runtime network calls for dataset queries. No external CDN dependency or cache shadowing.
  • Deterministic: Data freshness is tied to package releases. To receive updated datasets, upgrade mcp-india-stack.
  • Integrity: Bundled dataset integrity is verified against a build-time SHA-256 manifest.

⚠️ Limitations

  • Stateless Validation: GSTIN, Aadhaar, Voter ID, DL, Passport, CIN, and DIN validators check structural formatting and checksums only. They do not verify active registration status with government issuing authorities.
  • Algorithmic Constraints: PAN validation is structural; the PAN check character logic is not publicly verifiable.
  • Tax Estimates: All tax calculations are algorithmic estimates based on FY2025-26 rules. Actual liability may differ. Always consult a Chartered Accountant.
  • Static Rates: HSN/SAC rates are static references and may vary based on specific conditions or new government notifications.

See NOTICES for detailed dataset attribution, licensing details, and third-party acknowledgments.

See LEGAL_NOTICE.md for important legal disclaimers including:

  • No Government Affiliation — This project is not affiliated with NIC, eCourts, MeitY, or any government body.
  • Not Legal Advice — All outputs (bare-act lookups, limitation calculations, court fee estimates, stamp duty estimates, RTI deadline/penalty calculations) are algorithmic estimates, not legal advice.
  • Data Accuracy — State-subject data (court fees, stamp duty) carries as_of / last_verified fields and is not live-verified against issuing authorities.
  • Personal Data — Identity validation (Aadhaar, PAN, etc.) is structural/checksum only. Users are responsible for DPDP Act compliance.

🚀 Launch Notes

This repository is release-ready for GitHub launch with:

  • 0.6.0 package 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.
  • Legal Reference: CNR decoder, court establishment lookup, bare-act section lookups (IPC/BNS/CrPC/BNSS/IEA/BSA), IPC↔BNS crosswalk, limitation period calculator, court fee calculator (10 states), stamp duty calculator (10 states).
  • RTI Toolkit: RTI fee calculator, deadline tracker, penalty estimator, application/appeal template drafters.
  • Capital Gains: Updated LTCG exemption from ₹1L to ₹1.25L (Budget 2024).
  • Stock Market: Added yfinance-based get_stock_quote and get_stock_history tools.

Bug fixes in v0.4.2 (Round 2 — Deep Code Audit)

  • Capital Gains: Asset-type-specific LTCG thresholds — real estate 24mo, gold/debentures 36mo, crypto always 30% flat.
  • EPF/ESIC: Employee EPF correctly capped at ₹15K wage ceiling. Added voluntary_pf_on_actual for VPF.
  • HRA: Removed Bangalore/Hyderabad/Pune from metro cities. Only Delhi/Mumbai/Chennai/Kolkata get 50%.
  • Presumptive Tax: Full 7-slab new regime coverage with 87A rebate (was truncated at 3 slabs).
  • GST Late Fee: GSTR9 cap enforced (0.25% of turnover). Nil return rate corrected to ₹20/day.
  • Income Tax Interest: Section 234C uses cumulative paid vs required (not single-quarter).
  • Advance Tax: Installments show incremental installment_amount (not confusing cumulative).
  • Salary Restructuring: Removed obsolete ₹19,200 conveyance exemption. Standard deduction (₹75K) shown.

Bug fixes in v0.4.1

  • Security: Masked Aadhaar number leakage in response fields.
  • Validation: Fixed mobile number over-counting digits issue.
  • Tax Rules: Corrected Presumptive Tax (44AD/44ADA) thresholds to FY25-26 rules.
  • Financial: Fixed Step-up SIP compounding return calculation.
  • Data: Added missing HSN codes (8517, 9401, 2523, 3004, 8708) with correct GST rates.
  • Professional Tax: Fixed annual total calculations based on correct monthly slabs.
  • Income Tax: Fixed 80D deduction cap for senior citizens.
  • ISIN: Fixed Luhn checksum multi-digit expansion logic.
  • EMI Calculator: Improved error responses to not leak fallback fields on invalid inputs.
  • Advance Tax: Added support for overriding internal computations with user-provided tax_liability.

Offline-First Guarantee: All tools in this package work without an internet connection. No API keys required. No data is sent to any external server. All datasets are bundled in the package at install time.

Metadata

Release files for mcp-india-stack 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-india-stack 0.7.0
File Size Uploaded Provenance Actions
mcp_india_stack-0.7.0.tar.gz 10.2 MB With provenance Details for mcp_india_stack-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-india-stack 0.7.0
File Interpreter ABI Platform Actions
mcp_india_stack-0.7.0-py3-none-any.whl Python 3 none any Details for mcp_india_stack-0.7.0-py3-none-any.whl

Total release size: 20.4 MB

Release files / mcp_india_stack-0.7.0.tar.gz

Download URL mcp_india_stack-0.7.0.tar.gz
Size 10.2 MB
Tags Source
SHA-256 checksum
How to use checksums
aeb1dd793b5149b32328f3bd9d34bbe78addb1a803d80eaf1aa5c6dcce5f9f32
BLAKE2b-256 checksum
How to use checksums
de9fdaa312b514d28213acb57c700259026e77dbb63fec1fe5f308f1d4a51382
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / mcp_india_stack-0.7.0-py3-none-any.whl

Download URL mcp_india_stack-0.7.0-py3-none-any.whl
Size 10.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1f1a2f8a8b607a40619c3355f2175783d1510a1102b760796d7dc2885297dc97
BLAKE2b-256 checksum
How to use checksums
ecc81ae17bbf3b527e789a48d55b8648c0725fa1126401e2ae10e997c4df9be1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for mcp-india-stack 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mcp_india_stack-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page