Contentrain
Open source

MIT packages and an AGPL Studio core

Contentrain provides six MIT-licensed developer packages for local content work. Studio Community is AGPL-3.0, while separately licensed enterprise modules cover additional managed and organizational capabilities.

Git is the source of truth

Content lives in your repo as plain JSON and Markdown — every change is a commit, branch, and reviewable diff.

MIT packages

Six MIT packages provide the local developer stack

The MIT package set covers the CLI, MCP server, JavaScript query SDK, shared rules, agent skills, and shared types. Together they provide a local, framework-agnostic path for modeling, validating, normalizing, and consuming content.

  • CLI for init, validate, generate, normalize, serve, and Studio commands
  • MCP for local and HTTP agent operations
  • SDK, rules, skills, and types for runtime and agent quality
contentrain — MCP tools

$ contentrain serve

◇ 19 bounded tools available

contentrain_scan contentrain_apply

contentrain_validate contentrain_submit

contentrain_content_save contentrain_merge

# the agent can only do what the tools allow

Studio

Studio Community adds an AGPL team workspace

Studio Community is the self-managed AGPL-3.0 application for Git-backed workspaces, projects, structured editing, chat-assisted operations, and review. Features marked as enterprise remain disabled unless a separately licensed edition provides them.

  • Nuxt application with provider-backed server APIs
  • Workspace, project, content, role, and review surfaces
  • Clear edition checks for separately licensed capabilities
Studio Community adds an AGPL team workspace

Standards

Shared standards keep both sides aligned

The packages and Studio share the same vocabulary for model kinds, field types, validation, and content files. Moving from local tools to Studio does not require moving content into a different source of truth.

  • Shared types and schema concepts
  • Rules-based validation and content quality
  • Generated query access for application runtimes
Shared standards keep both sides aligned

Adoption path

Start locally and add Studio when the workflow becomes shared

Run init, normalize existing strings, validate models, generate query access, and ship from Git. Add Studio when editors or reviewers need a shared interface, permissions, branch review, or eligible managed operations.

  • Local-first development with MIT packages
  • Team editing and review through Studio
  • Managed and Enterprise capabilities where licensed and configured
contentrain init

$ npx contentrain init

✓ Detected stack: nuxt

✓ Created .contentrain/

✓ MCP server configured for your IDE

→ Git is now your content source of truth

# next: contentrain scan ./src

Portability

Plain files and Git history preserve portability

Content lives as files and code can import generated clients. That makes Contentrain easier to adopt in AI-built apps because the system is visible to both developers and agents.

  • Plain JSON and Markdown content state
  • Git history as the audit log
  • Platform-independent runtime consumption

Self-host anywhere

Run Studio and delivery on your own infrastructure with the AGPL core or the enterprise edition.

Common questions

Which Contentrain packages use the MIT license?

The CLI, MCP server, query SDK, rules, agent skills, and shared types packages are MIT-licensed and can be used independently of Studio.

Can teams use only the MIT packages?

Yes. Developers and technical teams can run local workflows without Studio. Studio becomes useful when structured editing, team review, roles, or managed operations are recurring needs.

What does AGPL-3.0 apply to?

Studio Community is the AGPL-3.0 self-managed edition. Separately licensed enterprise modules and managed services have their own terms and capability requirements.

Start local. Scale to Studio.

Build a governed content layer before content becomes product debt.

Start locally with the MIT packages. Add Studio when teams need review, roles, structured editing, managed delivery, or deployment control.

Open Studio