Skip to main content
Glama
README.md
# gstinapi-mcp

An [MCP](https://modelcontextprotocol.io) server for [gstinapi.in](https://www.gstinapi.in) — GSTIN verification, GST return/compliance history, HSN/SAC code lookup, and India's MCA company registry, callable directly from Claude and other MCP clients.

This is a thin wrapper around the REST API at [gstinapi.in/docs](https://www.gstinapi.in/docs). It holds no logic of its own — every tool call is one authenticated HTTP request, and the response is returned as-is.

## Setup

1. Get a free API key — 100 lookups on signup, no card required: https://www.gstinapi.in/register
2. Add this server to your MCP client config, e.g. for Claude Desktop / Claude Code (`claude_desktop_config.json` or `.mcp.json`):

```json
{
  "mcpServers": {
    "gstinapi": {
      "command": "npx",
      "args": ["-y", "gstinapi-mcp"],
      "env": {
        "GSTINAPI_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

No install step — `npx` fetches it on first use.

## Tools

| Tool | What it does |
|---|---|
| `verify_gstin` | Live registration lookup: legal name, status, taxpayer type, address |
| `get_gstin_returns` | GSTR-1/3B filing history for a financial year |
| `get_gstin_compliance` | Filing history summarised — counts, lag, last period |
| `get_gstin_filing_preference` | Monthly vs quarterly (QRMP), quarter by quarter |
| `resolve_gstin_to_company` | Probable MCA company match for a GSTIN (not authoritative — see caveat below) |
| `lookup_hsn_code` | Official description for an HSN/SAC code |
| `search_hsn_codes` | Find HSN/SAC codes from a description |
| `lookup_mca_company` | Company master data by CIN |
| `search_mca_companies` | Fuzzy company name search |
| `get_usage_stats` | Today's call count for the key (free) |

Full field-level reference: https://www.gstinapi.in/docs

## Accuracy notes

- Every GSTIN lookup queries the GST network live — nothing is cached.
- `resolve_gstin_to_company` is a **probabilistic** match, not an official mapping — no government dataset links a GSTIN to a CIN. Treat it as a scored guess (`high`/`medium`/`low` confidence), never as a confirmed fact.
- No GST rate is returned from the HSN endpoints — a rate depends on more than the code alone, and the government's own master publishes no rate column.

## Billing

Pay-per-use credits on your gstinapi.in account, no separate charge for this MCP server. Pricing: https://www.gstinapi.in/pricing

## License

MIT

TDQS

A3.9/5.0

Scored across 10 tools

Disambiguation5/5

Every tool targets a distinct action-entity pair: HSN code lookup vs search, MCA CIN lookup vs fuzzy search, live GSTIN verification, returns listing, compliance summary, filing preference, and the probabilistic cross-reference are clearly separable. Even the GSTIN-related tools differ in output granularity and purpose.

Naming Consistency5/5

All tool names use lowercase snake_case with a clear action-object pattern: lookup/search pairs for registries, get_ for GSTIN financial facts, verify_ for live registration lookup, and resolve_ for the cross-domain match. The varying verbs reflect different operation types rather than inconsistent naming.

Tool Count5/5

With 10 tools, the server is well-scoped: each tool covers a distinct lookup, search, verification, or analysis operation, and none feel redundant or unnecessary for the stated GSTIN/HSN/MCA domain.

Completeness4/5

The toolset covers HSN/SAC lookup and search, MCA company lookup and search, live GSTIN verification, returns history, compliance summaries, filing preference, and a GSTIN-to-company cross-reference. Minor gaps exist—such as no direct GSTIN search by name/PAN and no detailed MCA filings or director data—but these are explicitly out of scope and core verification/compliance workflows have no dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo issues