# Inventory MCP server for ChatGPT and Claude

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

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.

## Stock in ChatGPT and Claude

Stock questions are answered from live data in every store you can see. Stock changes show a preview first and post only after you say yes, or go for approval if your role needs it.

- **Check stock across godowns.** "How many LED bulbs 9W do we have in each godown?" Matches the item by name and asks if more than one fits. Reads live stock in every store you can see. Result: Main Store 120 pcs · Godown 2 40 pcs. Read live at the moment you ask. No approval needed.
- **Find what's running low.** "Which items are below reorder level in Godown 2?" Reads reorder levels and live stock for Godown 2. Lists the items short, with how many to reorder. Result: 3 items low: LED bulb 12W, Switch 6A, MCB 32A. Ask it to raise a purchase order for them next.
- **Transfer stock.** "Move 20 pcs of Switch 6A from Main Store to Godown 2." Shows a preview: 20 pcs · Main Store → Godown 2. Posts only after you say yes. Result: Transfer saved · Main Store 85 → 65 · Godown 2 10 → 30. If your role needs approval, it says the transfer is pending.
- **Write off damaged stock.** "10 pcs of MCB 32A are damaged. Write them off at ₹180." Shows a preview: OUT · 10 pcs · ₹180 · reason Damaged. Posts only after you say yes. Result: Stock adjustment saved · MCB 32A 52 → 42. Stock value updates with the rate you agreed.

## Connect a client

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

Server URL: https://mcp.stockregister.in/mcp

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

Server URL: https://mcp.stockregister.in/mcp

## Scopes

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

## Tools

### `create_sales_invoice` (write, needs `sales: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_status` (read, needs `sales:create`)

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

### `lookup_sales_references` (read, needs `sales: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_context` (read, needs `sales:lookup`)

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

### `get_item_stock` (read, needs `inventory: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_stock` (read, needs `inventory: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_summary` (read, needs `sales: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

1. `sales_creation_context` (optional, once): read the store's sales settings.
2. `lookup_sales_references`: find the customer and items by name prefix.
3. `create_sales_invoice` with a new `clientRequestId`: `posted: true` means posted and stock moved; `posted: false` means waiting for approval and nothing moved.

Safe retry: after a timeout or unclear result, call `sales_creation_status` with the same `clientRequestId`. If it was created, report it and do not resend. If it was not found, resend the identical request. Never poll.

## create_sales_invoice input

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

Example arguments:

```json
{
  "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 pending approval. Stock and balances have not moved.

## Limits and retries

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

## Boundaries

- 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

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

## Example prompts

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

## FAQ

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

Eligibility: self-serve on an active Advance Pro or Manufacturing Pro plan, or during the 7-day free trial. Optional help on WhatsApp (usually replies within 10 minutes): https://wa.me/919981278197?text=Hi%2C%20I%20need%20help%20connecting%20an%20AI%20agent%20to%20Stock%20Register.

## 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
