Disclosure: I build GSTIN.cloud, the service used in this post.
If you write invoicing, vendor-onboarding or accounting code for India, you check GSTINs a lot.
A GSTIN is the 15-character GST registration number. Most of the time I just want a quick answer
while I'm coding. Is this test GSTIN even valid? Is this supplier still active? What's the legal
name? I'd rather not leave the editor to search the GST portal.
GSTIN.cloud runs a remote MCP server at https://gstin.cloud/mcp, so your coding assistant can
make those checks itself. This post covers setup in three clients and what the tools return.
The tools
| Tool | What it does | Cost |
|---|---|---|
validate_gstin | Offline format and check-digit test | Free, no key |
verify_gstin | Live lookup: legal/trade name, status, address, registration date | 1 credit |
get_filing_history | GSTR-1 / GSTR-3B filing record | 10 credits |
get_health_score | Compliance health score | 10 credits |
get_risk_score | Vendor risk score | 10 credits |
search_gstin_by_pan | Every GSTIN (all states) under one PAN | 1 search credit |
search_business_by_name | Businesses matching a legal or trade name | 1 search credit |
All tools are read-only. It uses the same API key, credits and limits as the REST API. New keys
come with 10 free demo credits and need no card. A sandbox key (gstv_test_…) returns fixed
sample data, which is handy for tests.
Setup
Get a key from https://gstin.cloud/gst-verification-api/ first.
Claude Code
claude mcp add --transport http gstin-cloud https://gstin.cloud/mcp --header "Authorization: Bearer YOUR_API_KEY" Cursor (~/.cursor/mcp.json)
{ "mcpServers": { "gstin-cloud": { "url": "https://gstin.cloud/mcp", "headers": { "Authorization": "Bearer YOUR_API_KEY" } } } } VS Code (.vscode/mcp.json)
{ "servers": { "gstin-cloud": { "type": "http", "url": "https://gstin.cloud/mcp", "headers": { "Authorization": "Bearer YOUR_API_KEY" } } } } It's Streamable HTTP, so nothing runs locally. The X-API-Key header works too, if your client
prefers it.
One limitation: Claude.ai and ChatGPT custom connectors need OAuth, which this server doesn't
offer yet. Use it from a client where you can set a header.
What it returns
The free check needs no key, so you can try it before signing up. I asked for a GSTIN with a
typo in it:
{ "gstin": "27AAACR5055K1ZT", "valid": false, "error": "Invalid GSTIN: Failed checksum validation." } And a well-formed one:
{ "gstin": "22AAACL6442L1ZK", "valid": true, "state_code": "22", "pan": "AAACL6442L", "note": "Format and check character are correct. Use verify_gstin to confirm it is registered and active." } The check digit only proves the number is well formed, not that it was ever issued, hence the note. In practice the assistant runs
validate_gstin first and spends a credit only when the format passes.
Prompts that work well:
- "Is 27AAACR5055K1ZT a valid GSTIN?" (free)
- "Verify these five supplier GSTINs and tell me which aren't active."
- "List every GSTIN registered under PAN AAACL6442L."
- "Write a fixture file with three valid-format test GSTINs and check them with validate_gstin."
Notes
- Each tool call is billed like the matching REST call. A repeat verify of the same GSTIN within 60 seconds is free, so an assistant that retries doesn't double-charge you.
- Results may come from a cache refreshed from the GST portal. The response says whether it was served from cache and includes the portal's own last-updated date.
- Full docs, including n8n setup: https://gstin.cloud/gst-verification-api/mcp-server/
If you'd rather validate in your own code without any service, my earlier post explains the
check-digit algorithm:
https://dev.to/wasim_iqbal_af6af7afc93dd/how-to-validate-a-gstin-in-code-format-checksum-then-a-live-lookup-3j33