Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Contentrain/ai MCP server](https://glama.ai/mcp/servers/Contentrain/ai/badges/score.svg)](https://glama.ai/mcp/servers/Contentrain/ai) πŸ“‡ 🏠 - Local-first MCP server for AI content governance β€” 13 tools for model/content CRUD, validation, normalization,...

README.md

Contentrain AI

![npm: @contentrain/mcp](https://www.npmjs.com/package/@contentrain/mcp) ![npm: contentrain](https://www.npmjs.com/package/contentrain) ![npm: @contentrain/query](https://www.npmjs.com/package/@contentrain/query) ![Agent Skills](https://agentskills.io) ![Docs](https://ai.contentrain.io) ![License: MIT](LICENSE)

Website Β· Docs Β· Discord Β· Twitter Β· LinkedIn

Extract, govern, and ship structured content from your codebase.

Contentrain helps teams turn hardcoded UI text, docs, and structured content into a governed, reviewable content layer. Agents can extract, create, translate, and update content, while Contentrain enforces schema, Git review, and portable file output.

Agent extracts or updates content β†’ Contentrain standardizes β†’ Human reviews β†’ Any platform consumes

Try it in 30 seconds

npx contentrain init        # create .contentrain/ workspace
npx contentrain serve       # open the local review UI

That's it. You now have a governed content workspace with models, validation, review branches, and a local UI β€” no account, no cloud, no proprietary content format.

Start here:

What Contentrain is for

  • Rescuing hardcoded strings from existing apps and turning them into structured, translatable content
  • Starting new projects with a real content layer instead of scattering copy across components
  • Serving the same content across web, docs, mobile, and backend systems from plain JSON and Markdown in Git

What it is not

  • Not an AI writing app
  • Not a database-first or dashboard-first CMS replacement for every team
  • Not a proprietary content runtime that locks your app to one platform

What it looks like

Before: Hardcoded strings scattered across your codebase β€” no structure, no translations, no review.

export default function Hero() {
  return (
    <section>
      <h1>Welcome to our platform</h1>
      <p>Start your free trial today</p>
      <button>Get Started</button>
    </section>
  )
}

After: Content lives in .contentrain/, typed and structured. Source files use i18n keys.

export default function Hero() {
  const t = useTranslations()
  return (
    <section>
      <h1>{t('hero.title')}</h1>
      <p>{t('hero.subtitle')}</p>
      <button>{t('hero.cta')}</button>
    </section>
  )
}
// .contentrain/content/marketing/hero/en.json
{
  "cta": "Get Started",
  "subtitle": "Start your free trial today",
  "title": "Welcome to our platform"
}

The normalize flow extracts strings, creates models, and patches your source files β€” all through reviewable git branches.

This is the strongest entry point into the product:

take the content chaos already in your codebase and turn it into a governed, reviewable content layer.

How it works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  AI Agent    │────▢│  MCP (24 tools)  │────▢│ .contentrain/β”‚
β”‚  (decides)   β”‚     β”‚  (enforces)      β”‚     β”‚ (stores)     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
                                                     β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”              β”‚
                    β”‚  Review UI / Git β”‚β—€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                    β”‚  (human approves)β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  • Agent decides what content should exist and where it should come from
  • Contentrain enforces schemas, validation, canonical serialization, and git workflow
  • Human reviews through branches, PRs, or the local Serve UI
  • Output is plain JSON + Markdown that any language or framework can consume

4 content kinds

| Kind | What it stores | Storage | Example | |---|---|---|---| | Collection | Multiple typed entries | JSON object-map | Blog posts, products, team | | Singleton | Single entry per locale | JSON object | Hero section, site config | | Document | Markdown + frontmatter | .md files | Docs, articles, changelog | | Dictionary | Flat key-value strings | JSON flat map | i18n translations, UI labels |

27 field types (string, email, url, image, relation, array, object, markdown, ...) with built-in validation.

Use your content anywhere

Content is plain JSON and Markdown. Any language reads it directly.

For TypeScript projects, generate a typed SDK:

npx contentrain generate
import { query, singleton, dictionary, document } from '#contentrain'

const hero    = singleton('hero').locale('en').get()
const posts   = query('blog-post').locale('en').include('author').all()
const labels  = dictionary('ui-labels').locale('tr').get('auth.login')
const article = document('docs').locale('en').bySlug('getting-started')

Works with Nuxt, Next.js, Astro, SvelteKit, Vue, React, Node, Go, Python, Swift, Flutter, and 20+ stacks.

Why teams use it

  • Git-native β€” every write goes through worktree isolation + review branches
  • Normalize flow β€” scan codebase for hardcoded strings β†’ extract β†’ create i18n-ready content β†’ patch source files
  • MCP engine β€” 24 tools (19 core + 5 media) over stdio or HTTP transport, works with Claude Code, Cursor, Windsurf, or any MCP client
  • Provider-agnostic engine β€” the same tool surface runs over a local worktree, GitHub, or GitLab (self-hosted included) with zero tool-code changes. HTTP transport available for remote drivers such as Studio.
  • Canonical serialization β€” sorted keys, deterministic output, clean git diffs, conflict-free parallel edits
  • Agent rules & skills β€” behavioral policies and step-by-step workflows ship as npm packages
  • Serve UI β€” local web dashboard for browsing models, content, validation, and normalize status
  • Framework-agnostic β€” MCP doesn't know your framework. Agent + skills handle stack-specific logic

Agent Skills

This repo ships 15 Agent Skills β€” reusable workflow procedures that any AI coding agent can load on demand.

Install all skills to your agent:

npx skills add Contentrain/ai/packages/skills

Or install a specific skill:

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

Skills work with Claude Code, Cursor, Windsurf, GitHub Copilot, OpenAI Codex, Gemini CLI, and 40+ other agents.

See AGENTS.md for the full skill catalog and agent guidance.

Packages

| Package | npm | Role | |---|---|---| | @contentrain/mcp | ![npm](https://www.npmjs.com/package/@contentrain/mcp) | 24 MCP tools + stdio / HTTP transport + Local / GitHub / GitLab providers | | contentrain | ![npm](https://www.npmjs.com/package/contentrain) | CLI + Serve UI + MCP stdio entrypoint | | @contentrain/query | ![npm](https://www.npmjs.com/package/@contentrain/query) | Generated TypeScript query SDK | | @contentrain/types | ![npm](https://www.npmjs.com/package/@contentrain/types) | Shared type definitions + constants | | @contentrain/rules | ![npm](https://www.npmjs.com/package/@contentrain/rules) | Agent quality rules for IDE integration | | @contentrain/skills | ![npm](https://www.npmjs.com/package/@contentrain/skills) | Workflow procedures + framework guides |

Starter Templates

Production-ready templates with Contentrain content models, generated SDK client, and framework-specific patterns:

| Template | Framework | Use Case | |---|---|---| | astro-blog | Astro | Blog / editorial | | astro-landing | Astro | Landing page | | next-commerce | Next.js | E-commerce storytelling | | next-multi-surface-saas | Next.js | Marketing + app + docs unified | | next-saas-dashboard | Next.js | SaaS dashboard UI copy | | next-white-label-portal | Next.js | White-label / multi-tenant | | nuxt-admin-console | Nuxt | Admin console / operations | | nuxt-saas | Nuxt | SaaS marketing site | | sveltekit-editorial | SvelteKit | Editorial / publication | | vitepress-docs | VitePress | Documentation site |

Each template is a GitHub template repo β€” click "Use this template" to start.

Quick reference

npx contentrain init         # initialize project
npx contentrain serve        # local review UI (port 3333)
npx contentrain serve --stdio # MCP over stdio for IDE agents
npx contentrain validate     # check content health
npx contentrain generate     # generate typed SDK client
npx contentrain status       # project overview
npx contentrain doctor       # setup health check
npx contentrain studio login   # authenticate with Studio
npx contentrain studio connect # connect repo to Studio project

Documentation

  • 2-Minute Demo β€” the fastest way to understand the product
  • Getting Started β€” install, connect an agent, and run the first workflow
  • Normalize Guide β€” the main hardcoded-string rescue flow
  • Ecosystem Map β€” package-to-product bridges across AI and Studio
  • Contentrain Studio β€” open-core team operations for Git-native structured content, self-hostable or available as managed plans (Starter/Pro/Enterprise)
  • Full Docs β€” guides, package reference, and framework integration

Development

pnpm install && pnpm build && pnpm test

See RELEASING.md for the versioning and publish workflow.

Community

If Contentrain AI is useful to you, consider giving it a star β€” it helps others discover the project.

License

MIT

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use AI & ML servers.