Skip to main content
Glama

GST India MCP

npm version npm downloads VS Code installs license CI

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

verify_gstin

Public

Verify a GSTIN → legal/trade name, status, type, address, e-invoice status.

search_gstin_by_pan

Public

Find all GSTINs registered against a PAN.

track_gst_returns

Public

Return filing history/status for a GSTIN (optional FY filter).

taxpayer_generate_otp

—

Send an OTP to a taxpayer's registered mobile/email.

taxpayer_verify_otp

—

Verify the OTP → start a ~6h taxpayer session.

taxpayer_session_status

—

Whether a taxpayer session is active.

get_gstr3b

Taxpayer

GSTR-3B (summary return) for a period.

get_gstr2b

Taxpayer

GSTR-2B (auto-drafted ITC/purchases) for a period.

track_returns_current

Taxpayer

Filed/pending returns for a period.

get_annual_turnover

Taxpayer

Annual Aggregate Turnover (AATO).

get_ledger_balance

Taxpayer

Cash + ITC balance as on a period.

get_cash_ledger

Taxpayer

Electronic cash ledger for a date range.

get_itc_ledger

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-mcp

Or globally:

npm install -g gst-india-mcp
gst-india-mcp

Configuration

Set via .env (local dev) or the MCP host's env block:

Variable

Description

GST_API_KEY

Sandbox API key (key_test_… / key_live_…)

GST_API_SECRET

Sandbox API secret

GST_BASE_URL

API base (default https://api.sandbox.co.in)

GST_API_VERSION

API version (default 1.0)

GST_USERNAME

GST portal username (for taxpayer tools)

GST_GSTIN

Your GSTIN (for taxpayer tools)

GST_TAXPAYER_TOKEN

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-mcp

Mock 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 tools
get_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

    A3.9/5.0

    Scored across 13 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides 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.
      6
      8
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      6
      15 npm
      1
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables 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.
      9
      MIT