In ChatGPT
- In ChatGPT, add a custom app named Stock Register and paste the server URL below.
- Choose OAuth sign-in. ChatGPT opens Stock Register: sign in with phone OTP or Google.
- Pick the business and store, review the permissions, and allow.
MCP server for inventory and GST billing
Stock Register's inventory MCP server is a remote Model Context Protocol server that lets ChatGPT or Claude work in one connected Stock Register account and store: check stock across godowns, bill, raise orders, pull ledgers and reports, and run manufacturing. The user signs in, picks the store and approves access; the assistant then works within that store's existing permissions.
| Endpoint | https://mcp.stockregister.in/mcp |
|---|---|
| Transport | Streamable HTTP, stateless, JSON responses (no SSE stream, no JSON-RPC batches) |
| Authorization | OAuth 2.1 authorization code with S256 PKCE, resource indicator bound to the /mcp URL |
| Discovery | /.well-known/oauth-protected-resource/mcp and /.well-known/oauth-authorization-server on the MCP host |
| Supported clients | ChatGPT and Claude (allowlisted). Other clients cannot register yet. |
| Eligibility | Self-serve on an active Advance Pro or Manufacturing Pro plan, or during the 7-day free trial. Owners and staff with sales access can connect. |
Ask ChatGPT or Claude about stock, GST billing, purchase, reports and manufacturing for the connected store, within the signed-in person's role.
Stock questions are answered from live data in every store you can see. Stock changes always show a preview first and post only after you say yes, or go for approval if your role needs it.
How many LED bulbs 9W do we have in each godown?
Main Store 120 pcs · Godown 2 40 pcs
Read live at the moment you ask. No approval needed.
Which items are below reorder level in Godown 2?
3 items low: LED bulb 12W, Switch 6A, MCB 32A
Ask it to raise a purchase order for them next.
Move 20 pcs of Switch 6A from Main Store to Godown 2.
Transfer saved · Main Store 85 → 65 · Godown 2 10 → 30
If your role needs approval, it says the transfer is pending.
10 pcs of MCB 32A are damaged. Write them off at ₹180.
Stock adjustment saved · MCB 32A 52 → 42
Stock value updates with the rate you agreed.
Add Stock Register as a custom connector. The user signs in and picks one business and store.
In ChatGPT or Claude, add Stock Register and paste the server URL.
Use phone OTP or Google. No password is shared with the assistant.
Choose one business and store, review the permissions, and allow.
https://mcp.stockregister.in/mcpBusiness owners can also start from Settings → Connected Apps in Stock Register, which shows the URL and lets them revoke connections later.
Connected before 24 November 2026? Disconnect and connect again, and approve stock access (inventory:read) and sales summary (sales:summary) to use the stock tools.
The server publishes OAuth discovery metadata. Clients run the authorization code flow with S256 PKCE and bind tokens to the /mcp resource.
GET https://mcp.stockregister.in/.well-known/oauth-protected-resource/mcp
GET https://mcp.stockregister.in/.well-known/oauth-authorization-server| Scope | Grants |
|---|---|
| sales:create | Create sales invoices and check creation status. Required. |
| sales:lookup | Bounded name-prefix lookups and store sales settings. |
| sales:masters | Optional, unchecked by default. Create new customers, items or addresses, or update selling prices, inside an invoice request. |
| inventory:read | Read one item's live stock and up to 20 low-stock items in the connected store. Connections made before 24 November 2026 need to reconnect to add it. |
| sales:summary | Read today's posted sales and returns for the connected store (IST). |
| offline_access | Refresh tokens for a fixed 30-day connection. |
ChatGPT and Claude find every tool with tools/list, across stock, purchase, accounts, reports and manufacturing. The billing and stock tools are documented in detail here.
create_sales_invoicewritesales:createCreates a posted sales invoice with quantities (primary or secondary unit), batches, item and bill discounts, charges, rounding, dates, shipping, terms, custom fields and payment. The server calculates totals and checks live permissions. There is no draft. If the staff member needs approval, the result is a pending approval request with posted: false, and stock does not move until it is approved in Stock Register.
sales_creation_statusreadsales:createChecks one known clientRequestId after an uncertain result. Do not poll; wait before retrying the identical request.
lookup_sales_referencesreadsales:lookupOne bounded batch of exact name-prefix searches (3–80 characters, at most 3 results each) for customers, items, batches, addresses, attachments or one known source document.
sales_creation_contextreadsales:lookupReads the connected store's sales entry settings. Call once when needed, not before every tool call.
get_item_stockreadinventory:readReads one item by known ID or a 3–80 character name prefix. If the name matches more than one item, the assistant asks you to choose. Returns the live quantity in the primary unit for the connected store.
list_low_stockreadinventory:readLists up to 20 active items at or below their low-stock limit in the connected store, using the quantity shown in the app. hasMore means the list is incomplete.
get_today_sales_summaryreadsales:summaryReads today's posted sales and returns for the connected store in IST, net of today's returns. Not profit, cash collected or dues.
A typical invoice takes two or three calls. The status tool is only for recovering after a timeout, never for polling.
sales_creation_contextoptionalRead store settingsOnce per conversation, only if needed.
lookup_sales_referencesFind the customer and itemsName-prefix search, up to 3 matches each.
create_sales_invoiceCreate the invoiceSend a new clientRequestId with the intent.
posted: true Invoice posted, stock movedposted: false Waiting for approval, nothing movedif the connection dropsSafe retry
sales_creation_status with the same clientRequestId→Created: report it, don't resend. Not found: resend the identical request.The main fields are below. The server rejects unknown fields, calculates every total itself and checks stock, batches and permissions live.
| Field | Type | Notes |
|---|---|---|
| clientRequestId | string | Required. Stable ID for this invoice intent. Reuse it, with the identical payload, to recover. |
| partyId / newCustomer / walkIn | one of | Required. Existing customer, a new customer (needs sales:masters), or a walk-in sale. |
| paymentMode | CASH | BANK | CREDIT | Required. Add receivedAmount for part payment, or fullyPaid: true. |
| lines[] | 1–25 items | itemId (or newItem), unit PRIMARY|SECONDARY, quantity, optional unitPrice, gstRate, priceIncludesGst, discount, batches. |
| entryDateTime | date | Optional, with dueDate. Asia/Kolkata local time. Backdating needs permission. |
| discount | object | Optional bill discount, before or after tax. Also extraCharges (up to 10) and roundOff. |
| shippingAddressId | id | Optional shipping address. Also invoiceFields and attachmentIds for custom invoice fields and already-uploaded attachments. |
| orderId | id | Optional (or deliveryChallanId). Convert a known sales order, quotation or challan. |
{
"clientRequestId": "mehta-led-1711",
"partyId": "c_8812",
"paymentMode": "CREDIT",
"lines": [{
"itemId": "i_2291",
"unit": "PRIMARY",
"quantity": 5,
"unitPrice": 120,
"gstRate": 18,
"priceIncludesGst": false
}]
}The messages you may see, what they mean and how to fix them.
The business needs an active Advance Pro or Manufacturing Pro plan or the free trial, and staff need sales access to that store. Check the plan in Stock Register, or ask the owner for a sales role.
Custom connectors depend on your ChatGPT or Claude plan and workspace settings. Check that your plan allows them, or ask your workspace admin.
Your staff role can't create sales in this store. Ask the owner to give you sales access, then try again.
Your role needs approval for sales. Nothing is posted and stock hasn't moved until a manager approves it in Stock Register.
The request tried to create a customer or item, or change a selling price. Reconnect and allow Create customers and items, or use existing ones.
The agent reused a clientRequestId with different details. Use a new ID for each new invoice, and reuse one only to resend the identical request.
Another entry is being saved for the same items. Wait a minute, then resend the identical request with the same ID.
The connection was revoked, reached its 30-day limit, or a refresh token was reused. Remove the connector and add it again.
Limits are 20 requests a minute per user plus per-business limits. Wait 60 seconds and retry.
Still stuck? WhatsApp us, we usually reply within 10 minutes.
Yes. The Stock Register MCP server is at https://mcp.stockregister.in/mcp. Add it as a custom connector in ChatGPT or Claude, sign in with phone OTP or Google, and pick a store. The assistant then works with stock, sales, purchase, reports and manufacturing within your staff role. It uses OAuth 2.1 with PKCE and is self-serve on Advance Pro or Manufacturing Pro and the free trial.
Add a custom connector named Stock Register with the server URL in ChatGPT or Claude (Settings → Connected Apps in Stock Register has a shortcut). The user signs in with phone or Google, chooses one account and store, and approves access.
Not yet. ChatGPT and Claude are the supported clients today. Message us on WhatsApp with your client details if you need another one; we usually reply within 10 minutes.
Yes, for users allowed to create sales. If staff approval rules apply, a pending approval request is created instead and nothing posts until approval.
Yes. Ask in plain words, for example "How many LED bulbs 9W are in Godown 2?", and the assistant reads live stock for the connected store and its godowns.
One that allows custom connectors. This depends on your ChatGPT or Claude plan and, for teams, your workspace admin settings. On the Stock Register side you need Advance Pro, Manufacturing Pro or the free trial.
Yes. Staff with sales access can connect, and the connection keeps their role's limits and approval rules. Each person signs in with their own account.
Last updated 24 November 2026