by crbnos
Open-source manufacturing ERP, MES and QMS platform that unifies quoting, material requirements planning, inventory, shop‑floor execution, quality management and lot/serial traceability in a single Postgres schema with a REST API and built‑in MCP server. Deploy on Carbon Cloud or self‑host on any VPS/AWS environment.
Carbon provides a complete, API‑first manufacturing operating system. It combines ERP, MRP, MES and QMS functionality on one live data model, eliminating hand‑offs between finance, planning, shop floor and quality teams.
pnpm dev. The command boots PostgreSQL, PostgREST, Redis, Inngest, the Rust geometry service and the React apps (ERP on http://localhost:3000, MES on http://localhost:3001, API on http://localhost:54321).test@carbon.ms) or configure your own OAuth/Passkey providers.POST /api/v1/{module}/{operation}) or through the Model Context Protocol (MCP) client used by AI agents.Q: Can I run Carbon on an air‑gapped network? A: Yes. The entire stack is containerizable with Docker and requires only PostgreSQL, Redis and the Rust assembler service. No external services are mandatory.
Q: Do I need to use the Rust assembler?
A: It is optional. The ERP and MES apps function without it; only 3D model conversion (/convert) and motion planning (/plan) endpoints depend on the service.
Q: How is multi‑tenant isolation achieved? A: Row‑level security policies in PostgreSQL restrict every query to the current company. Permissions are enforced centrally in the API and MCP layer.
Q: Is there a free tier? A: Carbon Cloud offers a free starter tier with unlimited API access. Self‑hosted deployments are free aside from infrastructure costs.
Q: How do I extend the data model?
A: Add custom fields to any record via the UI or directly in the Postgres schema; the generated TypeScript types are refreshed with pnpm generate:types.
Q: Where can I find the OpenAPI specification?
A: Retrieve it from https://app.carbon.ms/api/v1/openapi.json (or http://localhost:54321/openapi.json when self‑hosted).
Legacy ERPs were built for accountants in the 1990s. We built Carbon after years of running manufacturing on off-the-shelf systems and finding that:
So Carbon puts ERP, MRP, MES and QMS on one Postgres schema you can read, own and extend. Every stage, from CAD to cash, writes to the same record: no handoffs, no re-keying, no reconciliation.
Carbon is an open-source alternative to NetSuite, Epicor, SAP Business One, Plex, Odoo and ERPNext, built for discrete manufacturing: complex assembly, contract manufacturing, configure-to-order and high-mix, low-volume production. See all comparisons.
| ERP | Sales (quotes, orders, RMAs), purchasing, inventory, items, invoicing |
| MRP & Planning | Material requirements planning, demand forecasts, finite capacity scheduling |
| MES | Digital travelers, 3D assembly instructions, barcode/QR tracking, live labor |
| QMS | Inspections, FAI, non-conformances, CAPA, gauge calibration, risk register |
| Traceability | Serial and lot genealogy, forwards and back |
| Engineering | Nested BoMs, revisions, change orders, item supersession, product configurator |
| Accounting | GL, journals, multi-entity and multi-currency, Xero / QuickBooks sync |
| Workflows | No-code automation rules with full run history |
| Maintenance & Assets | Scheduled maintenance, fixed assets, kanban replenishment |
| API, Webhooks & MCP | 1,500+ typed API operations, served over HTTP and as a built-in MCP server |
| Custom Fields | Extend any record |
| Integrations | Onshape, SolidWorks, Paperless Parts, Linear, Jira, Slack, Ramp, Stripe, Zebra |
See the full roadmap for what's next.
Technical highlights
| Carbon Cloud | The fastest way to start. Create a company, no call required. |
| Self-hosted | Run the whole stack on a single VPS, your own AWS account, or air-gapped. See the self-hosting guide. |
| Develop locally | Hack on the source: follow Local Development. |
Carbon is API-first. The Carbon API is the service layer, the same code the app runs when you click a button: 1,500+ operations across 15 modules, each validating its input, recalculating what depends on it and enforcing your permissions. Every operation is reachable two ways, with the same arguments:
POST https://app.carbon.ms/api/v1/{module}/{operation}, with a published OpenAPI spec for generating a typed client in any languageCreate a key under Settings → API Keys, then:
curl -X POST https://app.carbon.ms/api/v1/sales/getSalesOrders \
-H "Authorization: Bearer $CARBON_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "args": { "limit": 10 } }'
Self-hosted, the same API is served by your ERP at /api/v1. For the rare case the service layer doesn't cover, the Data API exposes every table and view directly.
ERP and MES are React Router apps over a single Postgres database. Permissions (row-level security), computed totals and change events live in the database itself; background work runs through Inngest, which calls back into the ERP to execute jobs. The architecture guide follows one click all the way down.
| Layer | Technology |
|---|---|
| Apps | React Router 7 on Vite, TypeScript |
| UI | Tailwind 4, Radix, React Aria, TanStack Table and Query |
| Forms | Zod with @carbon/form |
| Database | Postgres with row-level security, PostgREST and Kysely |
| API | oRPC with OpenAPI, MCP server |
| AI | AI SDK (Anthropic, OpenAI) |
| Jobs & events | Inngest |
| Cache | Redis |
| 3D & CAD | three.js / react-three-fiber; Rust with OpenCASCADE and FCL |
| Documents | React PDF, React Email, TipTap |
| i18n | Lingui |
| Tooling | pnpm, Turborepo, Biome, Vitest |
| Docs | Next.js + Fumadocs |
| Hosting | AWS via SST, or self-hosted with Docker |
carbon
├── apps # ERP, MES and the Rust assembler
├── packages # shared TypeScript packages
├── crates # Rust crates behind the assembler (CAD conversion, collision, motion planning)
└── docs # docs.carbon.ms, with content and glossary as @carbon/content
/apps| App | Description |
|---|---|
erp |
ERP: sales, purchasing, inventory, planning, quality, accounting |
mes |
MES: the shop floor app, run on tablets next to the machines |
assembler |
Rust geometry service: STEP → GLB and assembly motion planning |
academy |
Training |
starter |
Example app built on the API |
/packages| Package | Description |
|---|---|
@carbon/database |
Schema, migrations, generated types and database clients |
@carbon/auth |
Authentication, RBAC, sessions, API keys and OAuth |
@carbon/api |
API contract: the generated operation manifest behind the Carbon API and MCP |
@carbon/react |
Shared UI components (Radix, React Aria, Tailwind) |
@carbon/form |
ValidatedForm and field components for zod + FormData |
@carbon/jobs |
Inngest background jobs: events, integrations, notifications, workflows |
@carbon/planning |
MRP and scheduling engines |
@carbon/documents |
PDFs, email templates, ZPL labels, QR and barcodes |
@carbon/printing |
Printer routing, label queue and ProxyBox delivery |
@carbon/viewer |
3D models and animated assembly instructions (react-three-fiber) |
@carbon/files |
File handling: images, HEIC, CAD formats |
@carbon/tiptap |
Rich-text editor extensions and components |
@carbon/onboarding |
Implementation Hub: guided company setup |
@carbon/notifications |
Notification event taxonomy shared by apps and jobs |
@carbon/workflows-core |
Community-licensed contracts for workflow triggers |
@carbon/locale |
Lingui i18n runtime for ERP and MES |
@carbon/lib |
Server utilities: event system, Inngest client, SMTP, Slack |
@carbon/kv |
Redis client and rate limiting |
@carbon/env |
Validated environment variables, secrets kept server-side |
@carbon/logger |
Isomorphic logger built on LogTape |
@carbon/utils |
Pure shared utilities (dates, precision, BOM, formatting) |
@carbon/stripe |
Stripe billing (Carbon Cloud only) |
@carbon/ee |
Enterprise features and integrations (commercial license) |
@carbon/checks |
Conformance checks that keep the codebase consistent |
@carbon/dev |
The crbn dev CLI: worktrees, Docker stacks, dev URLs |
@carbon/harness |
Harness for AI coding agents working on this repo |
@carbon/config |
Shared Vitest, TypeScript and Tailwind configuration |
Prerequisites: Docker, Node.js 22 and pnpm (via Corepack). On Windows, use WSL or Git Bash.
git clone https://github.com/crbnos/carbon.git && cd carbon
corepack enable && pnpm install
cp .env.example .env
pnpm dev
pnpm dev boots the whole backend in Docker (Postgres, PostgREST, auth, storage, realtime, Inngest, Redis and a mail catcher), applies migrations, generates types and starts the apps:
| Surface | URL |
|---|---|
| ERP | http://localhost:3000 |
| MES | http://localhost:3001 |
| API | http://localhost:54321 |
Sign in as test@carbon.ms: the dev stack seeds that user and skips the magic link. To fill a company with a full demo story (items, BOMs, orders, jobs, inspections, journals), seed one of the industry datasets (satellite, robotics, precision, motor):
pnpm db:seed:dev -- --email test@carbon.ms --dataset satellite
No external accounts are needed to run locally. Email, Google/Microsoft sign-in, Stripe, PostHog and AI providers are all optional and configured in .env; see environment variables.
crbn CLIpnpm dev is shorthand for crbn up --no-portless. Run source ./setup.sh once to put crbn on your PATH and you get a separate, isolated stack per git worktree, so several branches can run side by side, each on its own HTTPS .dev URLs via portless:
crbn checkout -b feat/my-thing # new branch + worktree off HEAD
crbn up # boot this worktree's stack at erp.<branch>.dev
crbn checkout 760 # check out PR #760 into its own worktree
crbn status | down | reset # ports and health, stop, wipe and reboot
The full command reference is in the local development guide.
assembler is a Rust service (STEP → GLB + assembly motion planning) over C++ FCL and OpenCASCADE. ERP/MES run fine without it — set it up only if you need the 3D /convert and /plan endpoints.
Toolchain + native build deps (macOS):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # Rust, if not already installed
brew install fcl cmake ninja draco # collision libs (+ libccd/eigen/octomap), build tools, Draco mesh compression
On Linux, install the equivalents from your package manager: libfcl-dev libccd-dev libeigen3-dev liboctomap-dev libdraco-dev cmake ninja-build plus a C/C++ toolchain.
./setup.sh already installs Draco on macOS. If yours lives outside the Homebrew keg (/opt/homebrew/opt/draco on arm64), point draco-bridge's build at it with DRACO_PREFIX=/path/to/draco cargo build.
Build OCCT once — a patched static OpenCASCADE, cached in ~/.cache/carbon-occt. Slow (~15–30 min) but one-time per machine; re-running is a no-op once cached:
./apps/assembler/scripts/build-occt.sh
Build the service — seconds once OCCT is cached (build.rs finds it automatically):
cargo build --release -p assembler
crbn up spawns the binary when it's present. Verify it's up with curl -sf "$ASSEMBLER_SERVICE_URL/health" (the URL is in your worktree's .env.local) or by watching the asm | lines in the crbn up output. Without the binary the rest of the stack still runs — only /convert and /plan are unavailable.
To restore a production database snapshot locally, use crbn restore. It handles both plain-text .backup and custom-format .dump archives, drops and rebuilds the public schema, realigns internal sequences, resets storage metadata, then applies any migrations the backup predates and regenerates types.
Export a backup of your production database with pg_dump.
Run it from your worktree root:
crbn restore /path/to/db_cluster.backup
# …or for .dump archives:
crbn restore /path/to/postgres_YYYYMMDD.dump
It prompts before replacing the database. The stack must already be running (crbn up) — a restore rewrites the auth and storage schemas, which GoTrue and Storage build through their own migrations when those containers boot, so crbn restore refuses rather than restore into an uninitialized stack.
To also get local admin access, pass your production email — your account is upgraded to Admin in the companies it already belongs to and the password is reset locally:
crbn restore /path/to/backup.backup --admin-email you@example.com
# Optional: set a custom local password (default: localpass)
crbn restore /path/to/backup.backup --admin-email you@example.com --admin-password mypass
Useful flags: --no-scrub-emails keeps real addresses (see the warning below), --mode prod restores exactly as-is without localizing config/webhooks/integrations, --no-migrate / --no-regen skip the trailing steps, --yes skips the prompt.
Emails are scrubbed by default — every address is rewritten to
@example.test(your--admin-emailis preserved so you can still log in). If you pass--no-scrub-emails, real production addresses will be present in the local DB; ensure local email sending is disabled or pointed at a sandbox (e.g. Mailpit) before triggering any email flows.Note:
storage.objectsis truncated by default, so a restore does not populate local file storage — kept rows would reference files that only exist in the source environment's backend. Pass--keep-storage-objectsto retain the metadata (and the backup's buckets) anyway; downloads will still 404, but the rows are there for work that needs realistic storage volume.
The underlying script, scripts/restore-database.sh, can still be invoked directly — it takes the same options as environment variables (SCRUB_EMAILS, ADMIN_EMAIL, ADMIN_PASSWORD, RESTORE_MODE), but note it defaults to not scrubbing emails and leaves the trailing pnpm db:migrate / pnpm db:types to you.
| Command | Description |
|---|---|
pnpm dev |
Boot the stack and apps on localhost |
pnpm db:migrate:new <name> |
Create a database migration |
pnpm db:migrate |
Apply pending migrations |
pnpm generate:types |
Regenerate database types after a migration |
pnpm db:seed:dev -- --dataset <key> |
Seed a demo company |
pnpm lint / pnpm test |
Biome lint / unit tests |
pnpm exec turbo run typecheck --filter=<pkg> |
Typecheck one package |
pnpm --filter <pkg> <cmd> |
Run a command in one workspace |
This project uses Biome for formatting and linting; install the VS Code extension for format-on-save.
Found a vulnerability? Please email support@carbon.ms instead of opening a public issue. We respond within 3 business days and credit reporters once a fix ships. The full policy is in SECURITY.md.
Security is enforced by the database, not left to application code:
We welcome contributions of all sizes. Read CONTRIBUTING.md to get started, and say hi in Discord. Good first issues are labelled good first issue.
Carbon is open core. Everything in this repository is licensed under AGPLv3, except the Enterprise files (packages/ee and any file whose name contains .ee.), which are under the Carbon Commercial License. See Licensing for what that means in practice.
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by robotmcp
Enables bidirectional integration of large language models with ROS‑enabled robots, allowing natural language commands and real‑time access to robot state, topics, services and parameters.
by sunsetcoder
Track flights in real time, retrieve arrival and departure times, view airport status, and monitor emergency situations using Flightradar24 data via a Model Context Protocol server.
by theYahia
Provides a comprehensive catalog of MCP servers covering APIs from emerging markets across Brazil, MENA, Gulf, Southeast Asia, Africa, CIS, and Iran, enabling seamless integration with non‑Western services.
by daiemon12
Provides a Model Context Protocol server that lets Claude AI drive Dassault Systèmes CATIA V5 through natural‑language commands, exposing more than 50 CAD operations via COM automation.
by EduBase
Enables Claude and other LLMs to interact with the EduBase e‑learning platform via the Model Context Protocol, allowing automated quiz creation, exam scheduling, and result analysis.
by 1102tools-dev
Provides deterministic, version‑controlled MCP servers that expose federal contracting and policy data from SAM.gov, USASpending, GSA CALC+, BLS OEWS, eCFR, Federal Register, Regulations.gov, and Acquisition.gov.
by armpro24-blip
Enables AI-driven generation, editing, verification, and simulation of mechanical designs using build123d/OpenCASCADE geometry and CalculiX analysis, while preserving editable parameters, stable topology pointers, and full provenance in a reproducible .aieng package.
by atomno-mcp
Provides aggregated verification of Russian legal entities and individual entrepreneurs using publicly available Federal Tax Service data, delivering a deterministic risk verdict and actionable recommendations for AI agents and compliance workflows.
by gNucleus
Generate editable CAD parts or assemblies directly from natural‑language prompts by leveraging gNucleus generative AI models through a lightweight MCP server.