# Build on Stock Register: MCP server and Inventory API

**Can AI agents work with Stock Register?** Yes. Stock Register connects to ChatGPT and Claude through its MCP server, and to any other AI agent through the Inventory API. Agents can check live stock across stores and godowns, bill, raise purchase orders, pull ledgers and reports, and run manufacturing, with the same permissions as your staff. Setup is self-serve on Advance Pro or Manufacturing Pro and in the 7-day free trial.

Stock Register is cloud inventory, GST billing and manufacturing software used by Indian small and growing businesses. Developers and AI agents can work with a business's Stock Register account through two surfaces: an MCP server for AI assistants and a REST Inventory API for server-side integrations.

Both are self-serve on an active Advance Pro or Manufacturing Pro plan. Connect ChatGPT or Claude directly with the server URL, or create Inventory API credentials in Settings → Inventory API. No request or review. Included in the 7-day free trial (standard or Pro trial), which has full access.

## MCP server (Self-serve)

Let ChatGPT or Claude check stock, bill, raise orders, pull ledgers and reports and run manufacturing in a connected Stock Register account and store, with OAuth sign-in and existing staff permissions.

- Remote MCP over Streamable HTTP
- OAuth 2.1 with PKCE, one account and store per connection
- Tools for stock, sales, purchase, reports and manufacturing

Docs: https://www.stockregister.in/developers/mcp-server

## Inventory API (Pro)

Read stock, items, parties and reports from your agent, order system or ERP, and record stock adjustments, items and job work orders. Owners on Pro create credentials themselves.

- Client ID and secret from Settings → Inventory API, exchanged for a short-lived Bearer token
- api:read: stores, items, batches, parties, expenses and reports
- api:write: stock adjustments, items, party prices, balance adjustments, job work orders and process templates

Docs: https://www.stockregister.in/developers/inventory-api

## What you can build

- **Invoice from a conversation:** A shop owner tells ChatGPT or Claude what was sold. The assistant creates the GST invoice in Stock Register and stock updates.
- **Sync stock with an online store:** Your order software reads available quantity per store and posts a stock-out adjustment when an order ships.
- **Agents that check inventory:** A server-side agent reads item stock across godowns before promising a delivery date to a customer.

## Use cases by business

- **Retail shop: Answer "is it in stock?" without leaving the counter.** Ask: "Do we have Surf Excel 1 kg in the shop?" Finds the item in your shop's store and reads the live quantity. Uses: Your AI agent · reads stock.
- **Wholesaler: Promise an order from the right godown.** Ask: "How many cartons of Parle-G can I promise from Godown 2?" Reads the quantity in each store and godown, so you promise only what is there. Uses: Your AI agent · reads stock.
- **Distributor: Bill a customer from a chat.** Ask: "Bill 20 cartons of Parle-G to Mehta Traders on credit." ChatGPT or Claude finds the party and item, shows the GST invoice, and posts it after you confirm. Stock and dues update with it. Uses: ChatGPT or Claude · billing.
- **Dispatch desk: Record dispatches as they leave.** Ask: "Order 123 just left: 10 LED bulbs 9W from Godown 2." Shows what will go out of Godown 2 for Order 123, and reduces stock at the agreed rate once you confirm. Uses: Your AI agent · records stock.
- **Godown team: Log goods received.** Ask: "50 cartons of Tata Salt came in at Main Store at ₹410 a carton." Posts a stock IN adjustment with the rate, so stock value stays right. Uses: Your AI agent · records stock.
- **Owner, every morning: Get a low-stock list before the day starts.** Ask: "Every morning at 9, send me items below the reorder levels I gave you." A scheduled agent pages through items in each store, compares them with the levels you set in the agent, and sends you the list. Uses: Your AI agent · reads stock.
- **Manufacturer: Check raw material before production.** Ask: "Do we have enough sugar, maida and packing film for 500 units?" Reads the stock of each raw material you list and compares it with the quantities you give for the batch. Uses: Your AI agent · reads stock.
- **Online seller: Keep your website stock in sync.** Ask: "Update my website stock from Stock Register every hour." Your automation reads available quantity per store and updates your online listings, and posts a stock OUT when an order ships. Uses: Your AI agent · reads stock.
- **Multi-godown business: Move stock between godowns.** Ask: "Move 20 cartons of Tata Salt from Main Store to Godown 2." Shows the transfer for your OK, then posts it so both godowns update together. Uses: ChatGPT, Claude or your agent.
- **Purchase desk: Raise a purchase order from low stock.** Ask: "Raise a PO to Gupta Wholesale for everything below reorder level." Lists the low items, drafts the PO with your last purchase rates, and creates it after you confirm. Uses: ChatGPT, Claude or your agent.
- **Distributor: Send challans and take returns.** Ask: "Mehta Electricals returned 2 LED bulbs from INV-1042." Creates the sales return against the invoice, puts stock back and adjusts the party's balance. Uses: ChatGPT, Claude or your agent.
- **Owner, collections: Know who owes what.** Ask: "Who owes us more than ₹50,000, oldest first?" Reads each party ledger and lists outstanding balances with the oldest bill date. Uses: ChatGPT, Claude or your agent.
- **Owner, month end: Get the month's numbers in one question.** Ask: "Which items made the most profit last month, and what is our stock worth?" Pulls the profit report and stock value and summarises them for you. Uses: ChatGPT, Claude or your agent.
- **Manufacturer: Plan production and issue work orders.** Ask: "Can we make 500 Kurta Sets? If yes, create the work order." Checks the BOM against raw material stock, shows what is short, and creates the work order once you confirm. Uses: ChatGPT, Claude or your agent.
- **Manufacturer, job work: Track material with karigars.** Ask: "What is pending with karigar Raju?" Reads job work challans and returns for that karigar and lists what is still out. Uses: ChatGPT, Claude or your agent.

More: https://www.stockregister.in/ai-inventory-management#use-cases

## Start in minutes

### I use ChatGPT or Claude: Run stock and billing from a chat (about 5 minutes)

1. Add https://mcp.stockregister.in/mcp as a custom connector (remote MCP server)
2. OAuth 2.1 with PKCE: the user signs in with OTP or Google and picks one store per connection
3. Every tool call runs inside that user's staff role and approval rules

More: https://www.stockregister.in/developers/mcp-server#connect

### I have an AI agent or automation tool: Check and update stock (about 10 minutes)

1. The owner creates an Inventory API integration; start with api:read
2. Exchange the client ID and secret at /inventory/v1/oauth/token for a Bearer token
3. Load our skill.md agent instructions and test one stock read

More: https://www.stockregister.in/developers/inventory-api#setup

### I'm building an integration: Sync stock, orders and reports from code (under an hour)

1. Get credentials from the business owner (Settings → Inventory API)
2. Generate tools from the OpenAPI schema and exchange a token
3. Send a clientRequestId on every write so retries never post twice

More: https://www.stockregister.in/developers/inventory-api

## Everything your agent can run

### Stock and inventory

Live stock in every store and godown, and every movement behind it.

- Live stock across all stores and godowns: "How many LED bulbs 9W do we have in each godown?" (https://www.stockregister.in/features/multi-godown)
- Stock summary: "Give me today's stock summary for Main Store." (https://www.stockregister.in/stock-report-format)
- Item ledger: "Show the item ledger for Parle-G this month." (https://www.stockregister.in/features/stock-tracking)
- Stock value: "What is our stock worth at purchase price?" (https://www.stockregister.in/features/stock-valuation)
- Low stock: "Which items are below their reorder level?" (https://www.stockregister.in/features/low-stock-alerts)
- Stock transfer: "Move 20 cartons of Tata Salt from Main Store to Godown 2." (https://www.stockregister.in/features/stock-transfer)
- Stock adjustment: "Record 10 LED bulbs dispatched from Godown 2 for Order 123." (https://www.stockregister.in/features/stock-tracking)
- Add and edit items: "Add LED bulb 12W at ₹120 with 18% GST." (https://www.stockregister.in/features/stock-tracking)
- Bulk price and stock updates: "Raise the price of all LED bulbs by 5%." (https://www.stockregister.in/features/stock-tracking)
- Barcodes: "Generate barcodes for items that don't have one." (https://www.stockregister.in/features/barcode-billing)
- Physical stock count: "Compare last week's stock count in Godown 2 with the books." (https://www.stockregister.in/features/stock-tracking)
- Stores and godowns: "Add a new godown called Godown 3." (https://www.stockregister.in/features/multi-godown)

### Sales and parties

Bill, deliver and take returns by chat, with GST worked out for you.

- Sales invoice: "Bill 5 LED bulbs to Mehta Electricals on credit." (https://www.stockregister.in/features/gst-invoicing)
- Sales return: "Mehta Electricals returned 2 LED bulbs from INV-1042." (https://www.stockregister.in/features/gst-invoicing)
- Delivery challan: "Make a delivery challan for 50 cartons to Sharma Traders." (https://www.stockregister.in/free-delivery-challan-templates)
- Party ledger: "How much does Mehta Electricals owe us?" (https://www.stockregister.in/features/party-ledger-and-payments)
- Sales orders: "Which sales orders are still pending delivery?" (https://www.stockregister.in/features/quotation-management)
- Payments received: "Record ₹5,000 received from Mehta Electricals against INV-1042." (https://www.stockregister.in/features/party-ledger-and-payments)
- Customers and party prices: "Add Sharma Traders as a customer with special rates." (https://www.stockregister.in/features/party-ledger-and-payments)
- Online orders and catalogue: "Accept today's online orders from the store catalogue." (https://www.stockregister.in/features/online-store-catalogue)
- Invoice settings: "Turn on discount before tax for invoices." (https://www.stockregister.in/features/invoice-formats)

### Purchase and accounts

Raise purchase orders, record payments and expenses, and track cash and bank.

- Purchase order: "Raise a PO to Gupta Wholesale for 100 cartons of Parle-G." (https://www.stockregister.in/features/purchase-order-management)
- Purchase report: "What did we buy from Gupta Wholesale this quarter?" (https://www.stockregister.in/purchase-report-format)
- Purchase bill from PDF: "Read this supplier PDF bill and enter it as a purchase." (https://www.stockregister.in/features/purchase-order-management)
- Payments made: "Record ₹20,000 paid to Gupta Wholesale by bank." (https://www.stockregister.in/features/party-ledger-and-payments)
- Expenses: "Add ₹1,500 transport expense for today." (https://www.stockregister.in/features/expense-tracking)
- Cash and bank: "What is the balance in our HDFC account and cash?" (https://www.stockregister.in/cash-book-report-format)
- Cash flow: "Show cash in and out across all stores this month." (https://www.stockregister.in/cash-book-report-format)

### Reports

Ask for any report in plain words instead of building it.

- Low stock report: "List items below reorder level in Godown 2, with suggested order quantity." (https://www.stockregister.in/features/low-stock-alerts)
- Stock adjustment report: "Show all stock adjustments in Main Store this week, with reasons." (https://www.stockregister.in/features/stock-tracking)
- Stock transfer report: "What did we transfer from Main Store to Godown 2 in October?" (https://www.stockregister.in/features/stock-transfer)
- Highest selling items: "Top 10 selling items this month by quantity." (https://www.stockregister.in/sales-report-format)
- Dead stock and ageing: "Which items haven't moved in 90 days?" (https://www.stockregister.in/stock-report-format)
- Godown-wise stock report: "Compare stock of Tata Salt across all godowns." (https://www.stockregister.in/features/multi-godown)
- Sales report: "Sales by party for October." (https://www.stockregister.in/sales-report-format)
- Profit report: "Which items made the most profit last month?" (https://www.stockregister.in/profit-report-format)
- Receivables and payables: "Which parties owe us more than 30 days?" (https://www.stockregister.in/features/party-ledger-and-payments)
- GST returns: GSTR-1, GSTR-3B, HSN: "Prepare the GSTR-1 JSON for October." (https://www.stockregister.in/features/gst-invoicing)
- Profit and loss: "Show the P&L for this quarter." (https://www.stockregister.in/profit-report-format)
- Reorder report: "What should we reorder this week?" (https://www.stockregister.in/features/low-stock-alerts)
- Order fulfilment report: "Which orders are partly delivered?" (https://www.stockregister.in/sales-report-format)
- Item-wise and category-wise sales: "Sales by item category for October." (https://www.stockregister.in/sales-report-format)
- Daybook and cash book: "Show yesterday's daybook." (https://www.stockregister.in/cash-book-report-format)
- Expense report: "What did we spend on transport this month?" (https://www.stockregister.in/features/expense-tracking)
- Batch and expiry report: "Which batches expire in the next 30 days?" (https://www.stockregister.in/features/batch-expiry-tracking)

### Manufacturing

Plan production, issue work orders and track job work from a chat.

- BOM: "What goes into one box of Kurta Set?" (https://www.stockregister.in/features/bom-recipe)
- Manufacturing plan: "Can we make 500 Kurta Sets with the fabric we have?" (https://www.stockregister.in/features/manufacturing-planning)
- Work order: "Create a work order for 100 Kurta Sets." (https://www.stockregister.in/features/manufacturing-entry)
- Manufacturing process: "Move work order 1048 to stitching." (https://www.stockregister.in/features/manufacturing-processes)
- Job work: "What is pending with karigar Raju?" (https://www.stockregister.in/features/job-work-management)
- Job work issue and receipt: "Issue 200 m fabric to Raju and record 80 pieces received." (https://www.stockregister.in/features/job-work-management)
- BOM and job work reports: "Show processing charges owed to each worker." (https://www.stockregister.in/features/bom-recipe)

### Staff access control

Agents work inside the same roles, stores and approvals as your staff.

- Same permissions as staff: "Staff can only do through an agent what their role allows." (https://www.stockregister.in/features/staff-roles)
- Approvals: "Approve the pending invoice from Amit, or reject it." (https://www.stockregister.in/features/approval-system)
- Staff and attendance: "Mark Raju present today and show this month's attendance." (https://www.stockregister.in/features/staff-roles)
- Activity log: "What did the agent change in Main Store today?" (https://www.stockregister.in/features/activity-timeline)

## What Stock Register handles for the agent

- **Stock moves with every sale:** An invoice reduces stock in the right store or godown, the same way the app does.
- **Live stock across godowns:** Agents read current quantity per item and store, not a stale export.
- **Units, batches, expiry:** Pieces and cartons, batch selection and expiry behave as they do in the app.
- **GST done server-side:** CGST/SGST or IGST, HSN and inclusive or exclusive prices. Agents never do tax maths.
- **Approval-aware:** If staff need approval, the agent gets a pending request, never a false "posted".
- **Safe retries:** A clientRequestId on every create means a timeout never produces a duplicate invoice.

Worked example: the agent sends only the customer (Mehta Electricals), item (LED bulb 9W), quantity (5 pcs), price (₹120 plus 18% GST) and payment (on credit). Stock Register returns posted invoice INV-1042 with HSN 8539, taxable value ₹600.00, CGST 9% ₹54.00, SGST 9% ₹54.00 and total ₹708.00, moves stock from 120 to 115 pcs and adds ₹708 to the customer's dues.

## Safety and control

- **The user signs in:** OAuth 2.1 with PKCE, phone OTP or Google. The agent never sees a password.
- **Same permissions as staff:** Roles, plan limits and approval rules are checked on every call.
- **One store per connection:** Chosen at sign-in. Tokens last 5 minutes.
- **Revoke in one tap:** Settings → Connected Apps lists each connection and what it created.

An agent's access always fits inside the access of the staff member who connected it: that person's role and store, narrowed further by the scopes they approve (`sales:masters` is off by default).

## Plans that include AI agents

- 7-day free trial: MCP yes, Inventory API yes (Full access, no credit card)
- Advance Pro: MCP yes, Inventory API yes
- Manufacturing Pro: MCP yes, Inventory API yes
- Other plans: MCP no, Inventory API no (Upgrade to use AI agents)

Pricing: https://www.stockregister.in/pricing. Start the free trial: https://web.stockregister.in

## FAQ

### Should I use the MCP server or the Inventory API?

Use the MCP server when a person works in ChatGPT or Claude: add the server URL, sign in and ask in plain words. Use the Inventory API when your own agent, script or server runs without a chat, on a schedule or on events. Many businesses use both on the same account and the same staff permissions.

### Can I create inventory API keys myself?

Yes, for the Inventory API. The business owner verifies with an OTP or Google sign-in in Settings → Inventory API, creates an integration and copies a one-time client secret. MCP needs no keys: add the server URL in ChatGPT or Claude and sign in.

### Can I connect n8n, Make or my own scripts to my inventory?

Yes, through the Inventory API. Any tool that can exchange a client ID and secret for a token and make HTTPS calls can read stock and post stock adjustments. Keep the secret in the tool's credential store, start with read access, and use one request ID per stock movement so retries never post twice.

### What is an MCP server for inventory management?

MCP (Model Context Protocol) is the standard way AI assistants such as ChatGPT and Claude connect to other software. Stock Register's MCP server lets them check stock, create GST invoices, raise purchase orders and pull reports in your account after you sign in, without copying data between apps.

### Are there rate limits on the MCP server and Inventory API?

Yes. Both apply per-business limits so one integration cannot slow down the app. When a limit is hit the API returns RATE_LIMITED or CAPACITY_EXHAUSTED and the MCP server says it is busy, both with a time to retry. Reports also have range and size bounds. Retry with the same request ID; do not loop.

## Get access

- MCP server: self-serve on Advance Pro or Manufacturing Pro. Add https://mcp.stockregister.in/mcp as a custom connector in ChatGPT or Claude and sign in. Docs: https://www.stockregister.in/developers/mcp-server
- Inventory API: owners on Pro create credentials at Settings → Inventory API (https://web.stockregister.in/settings/inventory-api). Reference: https://www.stockregister.in/developers/inventory-api

## Agent credits and pricing

One balance per business is shared by ChatGPT, Claude and the Inventory API. Only successful actions are charged.

- 7-day free trial: 1,000 agent credits included, once.
- Advance Pro: 10,000 agent credits every month.
- Manufacturing Pro: 10,000 agent credits every month.

- Look up an item, party or invoice: 1 credit.
- List or ledger page: 2 credits.
- Summary report, 1 day: 5 credits.
- Summary report, 7 days: 10 credits.
- Summary report, 30 days: 25 credits.
- Stock entry, order, transfer or adjustment: 5 credits.
- GST or non-GST invoice: 10 credits.
- Setup, balance checks and safe retries: Free.
- Same report again within 3 minutes: Free.

Credit packs are one-time purchases, never expire and exclude GST: 10,000 credits for ₹199; 50,000 credits for ₹799; 150,000 credits for ₹1,999.

Human pricing details: https://www.stockregister.in/ai-inventory-management#plans
Full Markdown pricing: https://www.stockregister.in/ai-inventory-management.md
Credit pricing does not expand either channel's documented tools, scopes or store permissions.


Last updated: 24 November 2026
