gstin_check

Pack: india-gstin · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/gstin_check for the schema, then POST the same URL with its arguments for the data.

Check an Indian GSTIN (Goods and Services Tax Identification Number) for FORM and CHECKSUM only, locally, with no upstream call: 15 characters, valid state code, embedded PAN shape, entity number, the fixed letter Z and the mod-36 check character. Returns the state, the PAN and the PAN holder category the number encodes. This does NOT tell you whether the GSTIN is registered or active, or who holds it: the official GST register lookup is behind a captcha and cannot be queried. A malformed or wrong-checksum number is refused with a named user_error saying what was wrong.

Parameters

NameTypeRequiredDescription
gstinstringyesThe 15-character GSTIN, e.g. “27AAAAA0000A1Z5”. Spaces and hyphens are ignored; case does not matter.

Example call

Arguments

{
  "gstin": "27AAACR5055K1Z7"
}

curl

curl -X POST https://gateway.pipeworx.io/india-gstin/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"gstin_check","arguments":{"gstin":"27AAACR5055K1Z7"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('gstin_check', {
  "gstin": "27AAACR5055K1Z7"
});

Response shape

Always returns: gstin, valid_format_and_checksum, registration_checked, scope

FieldTypeDescription
gstinstringThe normalised 15-character GSTIN.
valid_format_and_checksumbooleanAlways true on a returned result; a number that fails is refused with a user_error.
registration_checkedbooleanAlways false: no register was queried.
scopestringPlain statement that only format and check character were verified.
state_codestring
state_namestring
panstringThe 10-character PAN embedded in the GSTIN.
pan_holder_categorystringHolder category from the PAN 4th character.
entity_numberstringRegistration count for this PAN within the state (1-9, then A-Z).
check_characterstring
sourcestring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "gstin": {
      "type": "string",
      "description": "The normalised 15-character GSTIN."
    },
    "valid_format_and_checksum": {
      "type": "boolean",
      "description": "Always true on a returned result; a number that fails is refused with a user_error."
    },
    "registration_checked": {
      "type": "boolean",
      "description": "Always false: no register was queried."
    },
    "scope": {
      "type": "string",
      "description": "Plain statement that only format and check character were verified."
    },
    "state_code": {
      "type": "string"
    },
    "state_name": {
      "type": "string"
    },
    "pan": {
      "type": "string",
      "description": "The 10-character PAN embedded in the GSTIN."
    },
    "pan_holder_category": {
      "type": "string",
      "description": "Holder category from the PAN 4th character."
    },
    "entity_number": {
      "type": "string",
      "description": "Registration count for this PAN within the state (1-9, then A-Z)."
    },
    "check_character": {
      "type": "string"
    },
    "source": {
      "type": "string"
    }
  },
  "required": [
    "gstin",
    "valid_format_and_checksum",
    "registration_checked",
    "scope"
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the india-gstin pack
{
  "mcpServers": {
    "india-gstin": {
      "url": "https://gateway.pipeworx.io/india-gstin/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build December 2, 2026