Gstaccelerator Js
About
npm packages for gstaccelerator.in for India GST-API
Details
- Author
- gstaccelerator.in
- Downloads
- 514
- Categories
- Search, Finance, Security
Jump to
- MCP server integration
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Gstaccelerator JsCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Follow the repository README to install the server and add its MCP configuration to your client.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"gstaccelerator js": {
"gstaccelerator": {
"command": "npx",
"args": [
"-y",
"-p",
"gstaccelerator",
"gstaccelerator-mcp"
],
"env": {
"GST_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
}
McpServers
{
"gstaccelerator": {
"command": "npx",
"args": [
"-y",
"-p",
"gstaccelerator",
"gstaccelerator-mcp"
],
"env": {
"GST_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
GST Accelerator JavaScript Client
JavaScript client for the GST Accelerator API — India GST HSN/SAC lookup, GSTIN validation, and condition resolver.
Installation
npm install gstaccelerator
Quickstart
Node.js (CommonJS)
const { GSTAccelerator } = require('gstaccelerator');
const gst = new GSTAccelerator({ apiKey: 'your_api_key' });
async function run() {
const result = await gst.hsn.get('84151010');
console.log(result);
}
run();
Browser fetch (ESM)
import { GSTAccelerator } from 'gstaccelerator';
const gst = new GSTAccelerator({ apiKey: 'your_api_key' });
// Note: Ensure your API keys are not exposed in client-side code in production.
gst.hsn.get('84151010').then(console.log);
MCP Agent Use (Claude/GPT-4o)
import { GSTAcceleratorMCPTools } from 'gstaccelerator';
console.log(GSTAcceleratorMCPTools);
API Reference
| Resource | Method | Description |
|---|---|---|
| gst.hsn | get(code: string) | HSN lookup |
| gst.sac | get(code: string) | SAC lookup |
| gst | lookup(description: string, options?: LookupOptions) | Description search |
| gst | autocomplete(query: string) | Autocomplete |
| gst | bulk(descriptions: string[]) | Bulk lookup |
| gst.gstin | validate(gstin: string) | GSTIN validation |
| gst.gstin | state(gstin: string) | State info |
| gst.gstin | pan(gstin: string) | PAN info |
| gst | health() | Health check |
| gst | meta() | Meta data |
Error Handling
import { GSTAccelerator, RateLimitError, AuthenticationError } from 'gstaccelerator';
const gst = new GSTAccelerator({ apiKey: 'your_api_key' });
async function checkRate() {
try {
const result = await gst.hsn.get('84151010');
} catch (error) {
if (error instanceof AuthenticationError) {
console.error('Auth failed:', error.message);
} else if (error instanceof RateLimitError) {
console.error('Rate limited. Retry after:', error.retryAfter);
} else {
console.error('Error:', error.message);
}
}
}
For full documentation, visit: https://gstaccelerator.in/docs
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.
