Distru for developers

Build on the same orders and inventory your team runs

A REST API for your own integrations and an MCP server for Claude, ChatGPT and other agents. Both read from Distru, the Seed to Wholesale Cannabis OS that 450+ customers run on.

Build on Distru

What can you build with the Distru API and MCP server?

The Distru API is a REST API for reading and writing orders, inventory and reports. The Distru MCP server gives Claude and ChatGPT those same records, signed in as you.

Isometric illustration: the Distru openapi.json spec generates a typed API client for the /public/v1 REST endpoints.

REST API and OpenAPI 3.0 spec

JSON over HTTPS under /public/v1/. Download openapi.json to generate a typed client or import it into Postman.

Isometric illustration: the Distru MCP server connects to an AI chat assistant, which only sees what the signed-in Distru role allows.

MCP server over Streamable HTTP

Add mcp.distru.com/mcp as a custom connector in Claude or ChatGPT and sign in. It sees what your Distru role allows, nothing more.

Isometric illustration: plain-text docs, llms.txt, llms-full.txt and SKILL.md, give a coding assistant the full Distru API reference in one read.

Plain-text docs for coding assistants

llms.txt, llms-full.txt and a SKILL.md hand your coding assistant the full API reference in one read.

API or MCP

Distru API or Distru MCP: which one fits your build?

Same records, two ways in. Pick the API for scheduled syncs and the integrations you host. Pick the MCP when someone needs an answer nobody built a report for. Your Distru ERP stays the system of record either way.

Distru API compared with the Distru MCP server: best use, connection, sign-in, records reached, changes, change events, rate limits, Metrc, access and docs
The questionDistru APIDistru MCP server
Best forIntegrations, BI syncs and partner apps you write and host.Asking for live data, or making changes, from Claude or ChatGPT.
How you connectHTTPS calls to app.distru.com/public/v1/ with JSON in and out.A custom connector pointed at mcp.distru.com/mcp over Streamable HTTP.
Sign-inA bearer token an admin creates in Settings, Integrations, Distru API. Keys expire one year after they're issued.OAuth with your own Distru login. Copy the server URL from the Distru sidebar.
What it reachesOrders, invoices, payments, packages, batches, products, licenses and reports like cost of goods sold.The same records, as get, search and update tools. Cost fields stay hidden if your role can't view costs.
ChangesCreate and update records through the endpoints.Write tools roll out in stages. No tool creates sales orders yet.
Change eventsSigned webhooks on create, edit and delete for orders, POs, invoices, products, packages and more.No webhooks. The agent reads live data each time you ask.
Rate limits3,000 calls per account on filtered list calls, refilling at 5 a minute. Over the limit returns a 429.120 tool calls a minute, 3,000 an hour and 6 at once. Writes cap at 20 a minute.
MetrcRead Metrc lists through the API. Your team completes Metrc reporting in the Distru app.Assemblies save as pending. Your team completes them in the Distru app, which reports to Metrc.
DocsRead the API referenceRead the MCP tools

Start with the ERP or Commerce, then add AI

Run your operations

DistruERP

Inventory, production, purchase and sales orders, and Metrc compliance in one cannabis ERP. Built for brands and distributors.

BUY AND SELL WHOLESALE

DistruCommerce

Branded menus, marketplace listings, and pricing set per retailer. The AI Order Agent turns texts, photos, and napkin scribbles into real orders.

CUSTOMER AI WORKFLOWS

DistruMCP

Ask Claude or ChatGPT about the inventory, orders, and customers already in your Distru account.
‍

Common questions about the Distru API and MCP

Access, sign-in, rate limits and Metrc, answered.

How do I get access to the Distru API?

Distru turns API access on for your account first, so ask your account team. Once it's on, an admin goes to Settings, then Integrations, then Distru API, and creates a key. Keys expire one year after they're issued, so plan the rotation. Breaking changes go out by email, so join the list in the docs.

How do I connect Claude or ChatGPT to Distru?

Copy the MCP server URL from the Distru sidebar. In Claude or ChatGPT, add a custom connector, paste the URL and sign in with your Distru login. The agent runs as you and sees what your role allows. Whether it asks before changing anything depends on your Claude or ChatGPT settings.

Does the Distru API have rate limits?

Yes, on list calls filtered by updated_datetime: 3,000 calls per account, refilling at 5 a minute. Calls whose window starts in the last 30 days aren't limited. PDF downloads cap at 20 a minute and 1,000 a day. Over the limit, you get a 429 with a Retry-After header.

Can the Distru API or MCP report to Metrc?

Metrc reporting stays in the Distru app. Through the MCP, assemblies save as pending until your team completes them in the app, which reports to Metrc. Through the API, you can read the Metrc lists for your licenses.