AI logo

AI

by Contentrain

Local-first MCP tools for governing structured content, validation, normalization, i18n, and Git-based review workflows.

Install AI

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "contentrain-ai": {
      "command": "npx",
      "args": [
        "-y",
        "contentrain"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y contentrain

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Contentrain/ai connects AI agents to a Git-backed content workspace stored in plain JSON and Markdown. Its MCP engine exposes tools for content and model CRUD, schema validation, normalization, localization, and review-oriented changes over stdio or HTTP. Use it when hardcoded application text needs to become structured, translatable content that humans can review before it reaches production. Local, GitHub, and GitLab providers use the same tool surface, including self-hosted GitLab.

Use cases

  • Extract hardcoded UI strings into structured i18n content
  • Validate localized content against shared schemas
  • Review agent-generated content changes through Git branches
  • Generate typed TypeScript queries for governed content
  • Serve the same JSON and Markdown content across applications

Key features

  • 22 MCP tools over stdio or HTTP
  • Local, GitHub, and GitLab content providers
  • Schema validation with 27 field types
  • Normalization flow for hardcoded strings
  • JSON and Markdown Git-native storage
  • Local review UI and typed query SDK

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

27/27 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · contentrain (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars7Stargazers on the source repository.
npm downloads4.5kPackage downloads in the last 30 days.
Last commit22d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How AI works

What Contentrain/ai does

Contentrain/ai provides an MCP-based content governance layer for teams and coding agents. It turns content in a codebase into structured records that live under .contentrain/, using JSON for collections, singletons, and dictionaries and Markdown with frontmatter for documents. The resulting files can be consumed by any language or framework without a proprietary runtime.

The repository includes the MCP engine, CLI, query SDK, shared types, agent rules, workflow skills, and a local Serve UI. The system is designed for content that needs schemas, validation, localization, deterministic serialization, and a review trail in Git rather than an account-based cloud service.

How it works

An agent uses the MCP tools to inspect, create, update, normalize, or validate content. Contentrain applies model definitions, field rules, canonical serialization, and the selected provider's Git workflow. Humans review the resulting changes through worktree isolation, branches, pull requests, or the local Serve UI.

Four content kinds are supported:

  • Collections store multiple typed entries in JSON object maps.
  • Singletons store one localized entry, such as a hero section or site configuration.
  • Documents store Markdown and frontmatter files.
  • Dictionaries store flat key-value maps for translations and interface labels.

The schema system includes field types such as strings, email addresses, URLs, images, relations, arrays, objects, and Markdown. The normalize flow can scan a codebase for hardcoded strings, extract them into content, create i18n-ready structures, and patch source files. GitHub, GitLab, and local worktree providers share the same MCP tool surface.

Setup and configuration

Initialize a workspace with the CLI:

Terminal
npx contentrain init
npx contentrain serve

init creates the .contentrain/ workspace, while serve opens the local review UI. The repository describes the open-source tools as requiring no account. For TypeScript projects, generate a typed query SDK with:

Terminal
npx contentrain generate

The MCP package supports stdio and HTTP transport. Agent workflow procedures can be installed with the skills package, either as a complete set or individually:

Terminal
npx skills add Contentrain/ai/packages/skills
npx skills add Contentrain/ai/packages/skills --skill contentrain-normalize

Tools and capabilities

  • Exposes 22 MCP tools through stdio or HTTP transport.
  • Creates and updates models and content records.
  • Validates content against schemas and built-in field rules.
  • Normalizes hardcoded strings into structured, translatable content.
  • Supports localization through dictionaries and locale-specific content.
  • Produces deterministic serialized files for cleaner Git diffs.
  • Generates a typed TypeScript query SDK for content access.
  • Provides a local UI for browsing models, content, validation, and normalization status.
  • Includes 16 reusable agent skills and framework-oriented workflow guidance.
  • Supports optional media tools with a media-capable provider such as Studio.

Limitations and notes

Contentrain/ai is a content governance and storage workflow, not an AI writing application or a general-purpose CMS replacement. Its framework-agnostic MCP layer does not implement framework-specific application changes by itself; agent skills handle stack-specific workflows. Content is stored as portable JSON and Markdown, while review remains part of the Git-based process. The documented framework examples include Nuxt, Next.js, Astro, SvelteKit, Vue, React, Node, Go, Python, and Flutter.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about AI

Contentrain/ai is an MCP server that connects AI agents to local, GitHub, or GitLab-backed content workspaces. Its main tools manage models and content, validate schemas, normalize hardcoded strings, support localization, and route changes through Git-oriented review workflows using JSON and Markdown files.

Install and initialize it with `npx contentrain init`, then run `npx contentrain serve` to open the local review UI. The CLI also provides the MCP stdio entrypoint, while the MCP package supports HTTP transport.

Yes, Contentrain/ai works with Cursor through MCP, and its agent skills can also be installed for Cursor. The MCP engine supports stdio or HTTP transport and is designed to work with MCP clients.

Use the normalize workflow to scan source code, extract hardcoded strings, create structured i18n-ready content, and patch the source files. The resulting changes can be reviewed through Git branches or the local Serve UI.

Yes, the same MCP tool surface supports local worktrees, GitHub, and GitLab, including self-hosted GitLab. Provider selection changes where the governed content and review workflow operate without changing the tool code.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAI AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/contentrain-ai?style=directory)](https://allmcps.com/mcp/contentrain-ai)
HTML Embed
<a href="https://allmcps.com/mcp/contentrain-ai"><img src="https://allmcps.com/api/badge/contentrain-ai?style=directory" alt="AI on AllMCPs" /></a>