gst-india-mcp
This MCP server lets you interact with India's GST system—verify registrations, search by PAN, track returns, and (with an OTP-based taxpayer session) access your own GSTR returns and ledgers.
Public tools (no login):
verify_gstin– get legal/trade name, status, type, address, e-invoice status for a GSTIN.search_gstin_by_pan– find all GSTINs registered to a PAN.track_gst_returns– check GST return filing history/status (optionally by financial year).
Taxpayer session tools (require OTP):
taxpayer_generate_otp/taxpayer_verify_otp– start a ~6-hour session.taxpayer_session_status– check if session is active.get_gstr3b/get_gstr2b– fetch GSTR-3B and GSTR-2B for a given period.track_returns_current– list filed/pending returns.get_annual_turnover– fetch Annual Aggregate Turnover (AATO).get_ledger_balance– get cash + ITC balance as of a period.get_cash_ledger/get_itc_ledger– view cash or ITC ledger transactions for a date range.
Demo mode:
Set
GST_MOCK=trueto use deterministic mock data without credentials, ideal for demos and testing.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gst-india-mcp Verify GSTIN 27AABCU9603R1ZM and tell me the business name."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GST India MCP
A Model Context Protocol (MCP) server for India GST, built on the Sandbox (Quicko) tax API. It lets any MCP client (VS Code, Claude, Codex, Cursor…) verify GSTINs, look up businesses by PAN, track return filings, and — with an OTP-based taxpayer session — read your GSTR-2B/3B and cash/ITC ledgers.
🧩 Also available as a VS Code extension for one-click install with secure credential storage.
Features
Tool | Session? | Description |
| Public | Verify a GSTIN → legal/trade name, status, type, address, e-invoice status. |
| Public | Find all GSTINs registered against a PAN. |
| Public | Return filing history/status for a GSTIN (optional FY filter). |
| — | Send an OTP to a taxpayer's registered mobile/email. |
| — | Verify the OTP → start a ~6h taxpayer session. |
| — | Whether a taxpayer session is active. |
| Taxpayer | GSTR-3B (summary return) for a period. |
| Taxpayer | GSTR-2B (auto-drafted ITC/purchases) for a period. |
| Taxpayer | Filed/pending returns for a period. |
| Taxpayer | Annual Aggregate Turnover (AATO). |
| Taxpayer | Cash + ITC balance as on a period. |
| Taxpayer | Electronic cash ledger for a date range. |
| Taxpayer | Electronic ITC ledger for a date range. |
Public tools need only your Sandbox API key/secret. Taxpayer tools additionally require an OTP session (see Authentication).
Related MCP server: india-business-mcp-server
Requirements
Node.js >= 18
A Sandbox account with an API Key + API Secret (test or live).
For taxpayer tools: Manage API Access enabled on gst.gov.in for your GSTIN.
Install
npx gst-india-mcpOr globally:
npm install -g gst-india-mcp
gst-india-mcpConfiguration
Set via .env (local dev) or the MCP host's env block:
Variable | Description |
| Sandbox API key ( |
| Sandbox API secret |
| API base (default |
| API version (default |
| GST portal username (for taxpayer tools) |
| Your GSTIN (for taxpayer tools) |
| Optional pre-obtained 6h taxpayer token (skips OTP) |
Never commit .env — it is git-ignored.
Demo / mock mode (no credentials)
Set GST_MOCK=true to serve deterministic mock data for every tool — no Sandbox account, no network, no real taxpayer data. Ideal for demos, videos, and trying the tools instantly:
GST_MOCK=true npx gst-india-mcpMock GSTINs to try (e.g. with verify_gstin): 27AABCT1234F1ZP (active), 33AABCC1122P1ZW (suspended). search_gstin_by_pan with AABCT1234F returns two branch GSTINs. The taxpayer tools accept any OTP and return sample GSTR-2B/3B and ledger data.
Mock data is adapted from the open-source vnrtumu/mockGSTServer vendor dataset.
Use with VS Code
Ships a .vscode/mcp.json. Open the folder in VS Code and start the server from the MCP view, or install the VS Code extension.
Use with Claude, Codex, Cursor
Standard MCP server — configure npx -y gst-india-mcp in the host's config with the GST_* env vars. Example (Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"gst-india": {
"command": "npx",
"args": ["-y", "gst-india-mcp"],
"env": { "GST_API_KEY": "...", "GST_API_SECRET": "...", "GST_USERNAME": "...", "GST_GSTIN": "..." }
}
}
}Documentation
Security
Credentials come from environment variables only; nothing is logged to stdout (reserved for MCP).
The taxpayer session token is held in memory for the server's lifetime and is never written to disk by the server.
This project uses the Sandbox sandbox/test environment by default — switch to live keys only when ready.
License
MIT © Bhavy Khatri
Available Tools
13 toolsget_annual_turnoverGet annual aggregate turnover (AATO)A
Fetch the authenticated taxpayer's Annual Aggregate Turnover values. Requires an active taxpayer session.
Inputs: no named parameters.
get_cash_ledgerGet cash ledgerA
Fetch the electronic cash ledger transactions for a date range. Requires an active taxpayer session.
Inputs: to (required), from (required).
get_gstr2bGet GSTR-2BA
Fetch GSTR-2B (auto-drafted ITC statement of purchases) for a return period. Requires an active taxpayer session.
Inputs: year (required), month (required).
get_gstr3bGet GSTR-3BA
Fetch GSTR-3B (monthly summary return) details for a return period. Requires an active taxpayer session.
Inputs: year (required), month (required).
get_itc_ledgerGet ITC ledgerA
Fetch the electronic Input Tax Credit (ITC) ledger transactions for a date range. Requires an active taxpayer session.
Inputs: to (required), from (required).
get_ledger_balanceGet cash + ITC balanceB
Fetch the taxpayer's Cash and ITC ledger balances as on a return period (year/month). Requires an active taxpayer session.
Inputs: year (required), month (required).
search_gstin_by_panSearch GSTINs by PANA
Find all GSTINs registered against a PAN across states. Useful to discover a business's registrations. No taxpayer session required.
Inputs: pan (required).
taxpayer_generate_otpGenerate taxpayer OTPA
Step 1 of a taxpayer session. Sends an OTP to the taxpayer's GST-registered mobile/email. Uses GST_USERNAME/GST_GSTIN from config unless overridden. Requires API access enabled on gst.gov.in.
Inputs: gstin, username.
taxpayer_session_statusTaxpayer session statusA
Reports whether an active taxpayer session exists in this server process.
Inputs: no named parameters.
taxpayer_verify_otpVerify taxpayer OTPA
Step 2 of a taxpayer session. Verifies the OTP and starts a ~6-hour taxpayer session held in memory for subsequent taxpayer_* / get_gstr* / ledger tools.
Inputs: otp (required), gstin, username.
track_gst_returnsTrack GST returns (public)A
Check the GST return filing status/history for a GSTIN (GSTR-1, GSTR-3B, etc.). Optionally filter by financial year (e.g. 2025-26). No taxpayer session required.
Inputs: gstin (required), financial_year.
track_returns_currentTrack returns (taxpayer)A
List the authenticated taxpayer's filed/pending returns for a return period. Requires an active taxpayer session.
Inputs: year (required), month (required).
verify_gstinVerify GSTINA
Verify a GST-registered business by its 15-character GSTIN. Returns legal/trade name, status, taxpayer type, constitution, e-invoice enablement, and registered address. No taxpayer session required.
Inputs: gstin (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools have distinct purposes: public GSTIN/PAN lookup, taxpayer session OTP flow, return-specific fetches, and ledger queries are clearly separated. Minor overlap exists between track_gst_returns and track_returns_current, and between get_ledger_balance versus get_cash_ledger/get_itc_ledger, but the descriptions sufficiently clarify the difference.
The naming is mostly predictable with verb-first patterns like verify_, search_, track_, and get_. The taxpayer_ prefixed OTP methods are consistent, though taxpayer_session_status breaks the verb pattern and there is minor inconsistency between track_/get_ prefixes for return-related tools.
Thirteen tools is a reasonable, well-scoped set for the GST India domain. Each tool covers a distinct public lookup, taxpayer session step, return retrieval, or ledger access function, and none feel redundant or excessive.
The surface covers the core GST workflows: GSTIN verification, PAN-based registration discovery, return status tracking, taxpayer session management, GSTR-2B/3B fetching, turnover, and ledger access. Minor gaps exist such as no GSTR-1 fetch, no explicit session logout, and limited return-period detail for some tools, but these do not cripple the main use cases.
Maintenance
Related MCP Connectors
Build WhatsApp, Sheets and Gmail automations for Indian businesses; check GST credit.
India GST e-invoicing for AI agents - generate, query, cancel IRNs at the IRP via a GSP. Stateless.
PDF tools + invoice extraction, bank statement parsing, GST reconciliation & GSTIN validation.
Validate Indian GSTINs locally (Verhoeff), extract PAN, identify issuing state.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides tools to retrieve and validate Goods and Services Tax (GST) details using GST numbers, PAN cards, or company names. It enables users to check registration status, filing history, and business addresses directly through the GST Insights API.68MIT
- AlicenseAqualityDmaintenanceEnables LLMs to query real-time Indian bank branch details, postal PIN codes, validate GSTIN/PAN structures, check e-commerce serviceability, and compute GST breakdowns using free public APIs and offline verification logic.615 npm1MIT
- AlicenseAqualityCmaintenanceEnables live GSTIN verification, GST return and compliance history lookup, HSN/SAC code searches, and MCA company registry queries through MCP clients.1053 npmMIT
- AlicenseBqualityCmaintenanceEnables AI agents and MCP-compatible apps to run deterministic, date-aware Indian GST checks and calculations, including registration applicability, HSN/SAC rates, liability, ITC reconciliation, filing deadlines, GSTR-1 summaries, e-invoice validation, and income-tax crossover checks, with rules tied to CBIC sources.9MIT