MCP server for inventory and GST billing

Inventory MCP server for ChatGPT and Claude

Check stock, bill with GST and run reports from ChatGPT or Claude, within your staff permissions.

Transport Streamable HTTPAuth OAuth 2.1 + PKCETools Stock, billing, reports, manufacturingClients ChatGPT, ClaudePlans Advance Pro, Manufacturing Pro

Overview

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.

Endpointhttps://mcp.stockregister.in/mcp
TransportStreamable HTTP, stateless, JSON responses (no SSE stream, no JSON-RPC batches)
AuthorizationOAuth 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 clientsChatGPT and Claude (allowlisted). Other clients cannot register yet.
EligibilitySelf-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.

What you can ask ChatGPT or Claude about your inventory

Ask ChatGPT or Claude about stock, GST billing, purchase, reports and manufacturing for the connected store, within the signed-in person's role.

  • Stock and inventory“How many LED bulbs 9W do we have in each godown?” “Give me today's stock summary for Main Store.”12 tasks
  • Sales and parties“Bill 5 LED bulbs to Mehta Electricals on credit.” “Mehta Electricals returned 2 LED bulbs from INV-1042.”9 tasks
  • Purchase and accounts“Raise a PO to Gupta Wholesale for 100 cartons of Parle-G.” “What did we buy from Gupta Wholesale this quarter?”7 tasks
  • Reports“List items below reorder level in Godown 2, with suggested order quantity.” “Show all stock adjustments in Main Store this week, with reasons.”17 tasks
  • Manufacturing“What goes into one box of Kurta Set?” “Can we make 500 Kurta Sets with the fabric we have?”7 tasks
  • Staff access control“Staff can only do through an agent what their role allows.” “Approve the pending invoice from Amit, or reject it.”4 tasks
See every task, area by area →

How ChatGPT and Claude handle your stock

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.

Check stock across godownsexample

How many LED bulbs 9W do we have in each godown?

  1. 1Matches the item by name and asks if more than one fits
  2. 2Reads live stock in every store you can see

Main Store 120 pcs · Godown 2 40 pcs

Read live at the moment you ask. No approval needed.

Find what's running lowexample

Which items are below reorder level in Godown 2?

  1. 1Reads reorder levels and live stock for Godown 2
  2. 2Lists the items short, with how many to reorder

3 items low: LED bulb 12W, Switch 6A, MCB 32A

Ask it to raise a purchase order for them next.

Transfer stockexample

Move 20 pcs of Switch 6A from Main Store to Godown 2.

  1. 1Shows a preview: 20 pcs · Main Store → Godown 2
  2. 2Posts only after you say yes

Transfer saved · Main Store 85 → 65 · Godown 2 10 → 30

If your role needs approval, it says the transfer is pending.

Write off damaged stockexample

10 pcs of MCB 32A are damaged. Write them off at ₹180.

  1. 1Shows a preview: OUT · 10 pcs · ₹180 · reason Damaged
  2. 2Posts only after you say yes

Stock adjustment saved · MCB 32A 52 → 42

Stock value updates with the rate you agreed.

Connect ChatGPT or Claude to Stock Register

Add Stock Register as a custom connector. The user signs in and picks one business and store.

  1. 1

    Add a custom connector

    In ChatGPT or Claude, add Stock Register and paste the server URL.

  2. 2

    Sign in to Stock Register

    Use phone OTP or Google. No password is shared with the assistant.

  3. 3

    Pick a store and allow

    Choose one business and store, review the permissions, and allow.

In ChatGPT

  1. In ChatGPT, add a custom app named Stock Register and paste the server URL below.
  2. Choose OAuth sign-in. ChatGPT opens Stock Register: sign in with phone OTP or Google.
  3. Pick the business and store, review the permissions, and allow.

In Claude

  1. In Claude, open Settings → Connectors → Add custom connector. Name it Stock Register and paste the server URL.
  2. Click Connect and sign in to Stock Register with phone OTP or Google.
  3. Pick the business and store. Optionally allow creating new customers and items.
MCP server URL
https://mcp.stockregister.in/mcp

Business 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.

Authorization and scopes

The server publishes OAuth discovery metadata. Clients run the authorization code flow with S256 PKCE and bind tokens to the /mcp resource.

Discovery
GET https://mcp.stockregister.in/.well-known/oauth-protected-resource/mcp
GET https://mcp.stockregister.in/.well-known/oauth-authorization-server
ScopeGrants
sales:createCreate sales invoices and check creation status. Required.
sales:lookupBounded name-prefix lookups and store sales settings.
sales:mastersOptional, unchecked by default. Create new customers, items or addresses, or update selling prices, inside an invoice request.
inventory:readRead 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:summaryRead today's posted sales and returns for the connected store (IST).
offline_accessRefresh tokens for a fixed 30-day connection.

Billing and stock tools

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:create

Creates 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:create

Checks one known clientRequestId after an uncertain result. Do not poll; wait before retrying the identical request.

lookup_sales_referencesreadsales:lookup

One 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:lookup

Reads the connected store's sales entry settings. Call once when needed, not before every tool call.

get_item_stockreadinventory:read

Reads 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:read

Lists 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:summary

Reads today's posted sales and returns for the connected store in IST, net of today's returns. Not profit, cash collected or dues.

How one sale happens

A typical invoice takes two or three calls. The status tool is only for recovering after a timeout, never for polling.

  1. 1
    sales_creation_contextoptionalRead store settings

    Once per conversation, only if needed.

  2. 2
    lookup_sales_referencesFind the customer and items

    Name-prefix search, up to 3 matches each.

  3. 3
    create_sales_invoiceCreate the invoice

    Send a new clientRequestId with the intent.

    posted: true Invoice posted, stock movedposted: false Waiting for approval, nothing moved

if the connection dropsSafe retry

Timeout or unclear resultsales_creation_status with the same clientRequestIdCreated: report it, don't resend. Not found: resend the identical request.

create_sales_invoice input

The main fields are below. The server rejects unknown fields, calculates every total itself and checks stock, batches and permissions live.

FieldTypeNotes
clientRequestIdstringRequired. Stable ID for this invoice intent. Reuse it, with the identical payload, to recover.
partyId / newCustomer / walkInone ofRequired. Existing customer, a new customer (needs sales:masters), or a walk-in sale.
paymentModeCASH | BANK | CREDITRequired. Add receivedAmount for part payment, or fullyPaid: true.
lines[]1–25 itemsitemId (or newItem), unit PRIMARY|SECONDARY, quantity, optional unitPrice, gstRate, priceIncludesGst, discount, batches.
entryDateTimedateOptional, with dueDate. Asia/Kolkata local time. Backdating needs permission.
discountobjectOptional bill discount, before or after tax. Also extraCharges (up to 10) and roundOff.
shippingAddressIdidOptional shipping address. Also invoiceFields and attachmentIds for custom invoice fields and already-uploaded attachments.
orderIdidOptional (or deliveryChallanId). Convert a known sales order, quotation or challan.
Example arguments
{
  "clientRequestId": "mehta-led-1711",
  "partyId": "c_8812",
  "paymentMode": "CREDIT",
  "lines": [{
    "itemId": "i_2291",
    "unit": "PRIMARY",
    "quantity": 5,
    "unitPrice": 120,
    "gstRate": 18,
    "priceIncludesGst": false
  }]
}
A result with posted: false and an approval request ID means the sale is waiting for approval. Tell the user it is pending. Stock and balances have not moved.

Example ChatGPT and Claude prompts for stock and billing

Stock and godowns

How many LED bulbs 9W do we have in each godown?
Which items are below reorder level in Godown 2?
Move 20 pcs of Switch 6A from Main Store to Godown 2.
10 pcs of MCB 32A are damaged. Write them off at ₹180.

Purchase and reports

Raise a purchase order to Sharma Traders for 50 cartons of Tata Salt.
Show the item ledger for Parle-G this month.
What is my stock value in Main Store today?

Billing

Bill 5 LED bulbs 9W to Mehta Electricals on credit.
Convert sales order 218 for Patel Hardware into an invoice.
Record ₹5,000 received from Mehta Electricals against INV-1042.

Limits and boundaries

  • Up to 25 item lines, 5 new items and 10 charges, fields or attachments per invoice; request body up to 32 KiB.
  • 20 MCP requests per minute per user, plus per-business limits on reads and invoice creation.
  • Access tokens last 5 minutes; refresh tokens rotate, and reusing one revokes the whole connection.
  • Every create needs a stable clientRequestId. After a timeout, check status with the same ID and resend only the identical payload.
  • One connection covers one account and one store. Reconnect to use a different store.
  • Existing staff roles, plan limits and approval rules apply to every call.
  • Users can view and revoke connections in Stock Register under Settings → Connected Apps.

Troubleshooting

The messages you may see, what they mean and how to fix them.

There's no account or store to pick when I sign in

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.

I can't find where to add a custom connector

Custom connectors depend on your ChatGPT or Claude plan and workspace settings. Check that your plan allows them, or ask your workspace admin.

"Sales access denied"

Your staff role can't create sales in this store. Ask the owner to give you sales access, then try again.

The result says posted: false

Your role needs approval for sales. Nothing is posted and stock hasn't moved until a manager approves it in Stock Register.

"Reconnect with sales:masters consent"

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.

"This request ID was used for a different invoice"

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.

"Recent stock writes are busy" or "Retry the same request ID later"

Another entry is being saved for the same items. Wait a minute, then resend the identical request with the same ID.

"Connection revoked or expired" or "Sign in again"

The connection was revoked, reached its 30-day limit, or a refresh token was reused. Remove the connector and add it again.

Too many requests, or capacity is busy

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.

MCP server FAQs

Does Stock Register have an MCP server?

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.

How do I connect ChatGPT or Claude to my inventory software?

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.

Can my own MCP client connect to the Stock Register MCP server?

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.

Can ChatGPT or Claude post GST invoices directly?

Yes, for users allowed to create sales. If staff approval rules apply, a pending approval request is created instead and nothing posts until approval.

Can ChatGPT or Claude check stock levels across godowns?

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.

Which ChatGPT or Claude plan do I need?

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.

Can my staff use ChatGPT or Claude for billing and stock?

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

→ Paste into ChatGPT or Claudeskill.md+91 9981278197WhatsApp