Logo de Carbon

Carbon

OrganisationPopulaire
crbnos

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

Éditeurcrbnos
Dépôtcarbon
LangueTypeScript
Forks
365
Étoiles
2.7K
Outils disponibles
0
Type de transportstdio
Liens
  • Connectez des outils à vos workflows IA

    Carbon propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • 0 outils disponibles

    Parcourez les actions invocables ci-dessous, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les exemples de configuration pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité open source

    2.7K étoiles et 365 forks sur le dépôt associé.

Contents

Why Carbon

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:

  • Modern, API-first tooling didn't exist
  • Vendor lock-in bordered on extortion
  • There is no "perfect ERP", because every manufacturer is unique

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.

Features

ERPSales (quotes, orders, RMAs), purchasing, inventory, items, invoicing
MRP & PlanningMaterial requirements planning, demand forecasts, finite capacity scheduling
MESDigital travelers, 3D assembly instructions, barcode/QR tracking, live labor
QMSInspections, FAI, non-conformances, CAPA, gauge calibration, risk register
TraceabilitySerial and lot genealogy, forwards and back
EngineeringNested BoMs, revisions, change orders, item supersession, product configurator
AccountingGL, journals, multi-entity and multi-currency, Xero / QuickBooks sync
WorkflowsNo-code automation rules with full run history
Maintenance & AssetsScheduled maintenance, fixed assets, kanban replenishment
API, Webhooks & MCP1,500+ typed API operations, served over HTTP and as a built-in MCP server
Custom FieldsExtend any record
IntegrationsOnshape, SolidWorks, Paperless Parts, Linear, Jira, Slack, Ramp, Stripe, Zebra

See the full roadmap for what's next.

Technical highlights

  • Full-stack type safety, from the database to the UI
  • Row-level security, multi-tenant by design
  • Role- and attribute-based access control (Employee, Customer, Supplier)
  • Realtime database subscriptions
  • Unified auth and permissions across apps
  • Dependency graph for operations
  • Rust geometry service: STEP → GLB and assembly motion planning

Get Carbon

Carbon CloudThe fastest way to start. Create a company, no call required.
Self-hostedRun the whole stack on a single VPS, your own AWS account, or air-gapped. See the self-hosting guide.
Develop locallyHack on the source: follow Local Development.

API & MCP

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:

  • HTTP: POST https://app.carbon.ms/api/v1/{module}/{operation}, with a published OpenAPI spec for generating a typed client in any language
  • MCP: as tools for Claude, ChatGPT, Cursor and other agents, scoped to the permissions of the key or signed-in user

Create a key under Settings → API Keys, then:

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

Architecture

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.

Tech Stack

LayerTechnology
AppsReact Router 7 on Vite, TypeScript
UITailwind 4, Radix, React Aria, TanStack Table and Query
FormsZod with @carbon/form
DatabasePostgres with row-level security, PostgREST and Kysely
APIoRPC with OpenAPI, MCP server
AIAI SDK (Anthropic, OpenAI)
Jobs & eventsInngest
CacheRedis
3D & CADthree.js / react-three-fiber; Rust with OpenCASCADE and FCL
DocumentsReact PDF, React Email, TipTap
i18nLingui
Toolingpnpm, Turborepo, Biome, Vitest
DocsNext.js + Fumadocs
HostingAWS via SST, or self-hosted with Docker

Monorepo

A pnpm + Turborepo monorepo:

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

AppDescription
erpERP: sales, purchasing, inventory, planning, quality, accounting
mesMES: the shop floor app, run on tablets next to the machines
assemblerRust geometry service: STEP → GLB and assembly motion planning
academyTraining
starterExample app built on the API

/packages

PackageDescription
@carbon/databaseSchema, migrations, generated types and database clients
@carbon/authAuthentication, RBAC, sessions, API keys and OAuth
@carbon/apiAPI contract: the generated operation manifest behind the Carbon API and MCP
@carbon/reactShared UI components (Radix, React Aria, Tailwind)
@carbon/formValidatedForm and field components for zod + FormData
@carbon/jobsInngest background jobs: events, integrations, notifications, workflows
@carbon/planningMRP and scheduling engines
@carbon/documentsPDFs, email templates, ZPL labels, QR and barcodes
@carbon/printingPrinter routing, label queue and ProxyBox delivery
@carbon/viewer3D models and animated assembly instructions (react-three-fiber)
@carbon/filesFile handling: images, HEIC, CAD formats
@carbon/tiptapRich-text editor extensions and components
@carbon/onboardingImplementation Hub: guided company setup
@carbon/notificationsNotification event taxonomy shared by apps and jobs
@carbon/workflows-coreCommunity-licensed contracts for workflow triggers
@carbon/localeLingui i18n runtime for ERP and MES
@carbon/libServer utilities: event system, Inngest client, SMTP, Slack
@carbon/kvRedis client and rate limiting
@carbon/envValidated environment variables, secrets kept server-side
@carbon/loggerIsomorphic logger built on LogTape
@carbon/utilsPure shared utilities (dates, precision, BOM, formatting)
@carbon/stripeStripe billing (Carbon Cloud only)
@carbon/eeEnterprise features and integrations (commercial license)
@carbon/checksConformance checks that keep the codebase consistent
@carbon/devThe crbn dev CLI: worktrees, Docker stacks, dev URLs
@carbon/harnessHarness for AI coding agents working on this repo
@carbon/configShared Vitest, TypeScript and Tailwind configuration

Local Development

Prerequisites: Docker, Node.js 22 and pnpm (via Corepack). On Windows, use WSL or Git Bash.

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:

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):

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

Worktrees and the crbn CLI

pnpm 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:

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

  1. Toolchain + native build deps (macOS):

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

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

    bash
    ./apps/assembler/scripts/build-occt.sh
  3. Build the service — seconds once OCCT is cached (build.rs finds it automatically):

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

  1. Export a backup of your production database with pg_dump.

  2. Run it from your worktree root:

    bash
    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:

    bash
    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-email is 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.objects is 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-objects to 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.

Commands

CommandDescription
pnpm devBoot the stack and apps on localhost
pnpm db:migrate:new <name>Create a database migration
pnpm db:migrateApply pending migrations
pnpm generate:typesRegenerate database types after a migration
pnpm db:seed:dev -- --dataset <key>Seed a demo company
pnpm lint / pnpm testBiome 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.

Security

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:

  • Tenant isolation in Postgres. Every table is scoped to a company and guarded by row-level security, so a query can only see its own company's rows.
  • Granular permissions. Role-based access per module and action for employees, customers and suppliers, applied the same way in the app, the API and MCP.
  • Scoped API keys. Keys carry explicit permissions, are stored only as hashes and are rate limited per key.
  • Sign-in. Passkeys, SSO, and enforced two-factor authentication on the Business plan.
  • Audit log. A record of who changed what and when, on the Business plan.
  • Your perimeter. Self-host on a single server, in your own cloud account or fully air-gapped, for programs with ITAR or CMMC requirements.

Contributing

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.

Star history

License

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.

Utilisez le serveur MCP Carbon avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois Carbon connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajoutez Carbon en tant que serveur

Lorsque l’état du connecteur affiche « Prêt », cliquez sur « Éditer serveurs » et collez la configuration du serveur MCP.

  1. Attendez que l’état du connecteur affiche « Prêt ».
  2. Cliquez sur « Éditer serveurs ».
  3. Collez la configuration du serveur MCP Carbon.
  4. Enregistrez la liste des serveurs.
  5. Actualisez pour vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Éditer serveurs »
{
  "mcpServers": {
    "carbon": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de Carbon, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de Carbon.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans le chat ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser Carbon pour m’aider dans cette tâche ?
Carbon
Bien sûr. J’ai tout lu.
Voici ce que j’ai trouvé avec Carbon.

Foire aux questions

À quoi sert le serveur MCP Carbon ?

Carbon est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP Carbon avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser Carbon avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP Carbon avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois Carbon connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP Carbon à TypingMind ?

Carbon fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, des applications de bureau, des outils en ligne de commande ou des ressources privées sur votre ordinateur.

Quels outils le serveur MCP Carbon propose-t-il dans TypingMind ?

Carbon propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP Carbon ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si Carbon nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇