Agent API & MCP
Point an AI agent at StockCraft and let it run your store — read your data, update the fiddly bits, and load a whole catalog in minutes. Available on every plan.
What it is
StockCraft exposes a secure, tenant-isolated Agent API and a Model Context Protocol (MCP) server. Any MCP-capable agent — OpenClaw, Claude, or your own tooling — connects with a single API key and can then read and operate your store: manage products (including material costs, components, and the fiddly cost inputs), record finances, manage market bookings, report on orders and profit, and make bulk changes that are awkward to do by hand.
Secure by design
- Your data only. A key is bound to your account — an agent can never see or touch another tenant's data.
- Scoped keys. Grant a key only what it needs: read-only, write, finance, or bulk. Hand a reporting agent a read-only key and it can never change a thing.
- Shown once, stored safely. A key's secret is displayed only at creation and stored hashed — never recoverable, always revocable.
- Never the dangerous stuff. The agent surface deliberately excludes account and user management, billing, and our own AI features. An agent runs your store; it can't change who you are or what you pay.
Safe bulk changes
Powerful bulk operations — "set the cost on every material from this supplier", "recategorise these products" — always run as a dry-run first. You see exactly how many rows will change, a before-and-after preview, and how the change ripples through your product costs, before anything is applied. Bulk edits run through the same logic as the app itself, so your cost roll-ups stay correct.
What an agent can do
- Read products, variants, components, materials, orders, customers, categories, suppliers, and quotes
- Create and update products, components, materials, orders, and more — with cost recalculated automatically
- Bulk-load a catalog (all plans) and bulk-edit existing data across a filter (Plus)
- Record expenses and pull a profit & loss report
- Manage market events and bookings
/mcp endpoint with the
key as a bearer token. The full developer reference ships with the app.
Plans
The Agent API and MCP — reading, writing, recording finances, and bulk import — are available on every plan, including Free. Bulk mutation of existing data (mass edits across a filter) is a Plus feature.