Skip to main content
Glama

Contentstack App MCP Server

License: MIT Node.js MCP

An MCP server that gives AI coding agents everything they need to build, migrate, and audit Contentstack Marketplace apps — correctly, every time.

The Problem

AI agents writing Contentstack apps from scratch will:

  • Hallucinate SDK methods that don't exist

  • Skip Venus components and write raw HTML instead

  • Hardcode API keys in frontend code

  • Dump files flat without proper directory structure

  • Miss manifest-to-route sync and security rules

This MCP server eliminates all of that by providing deterministic tools, structured knowledge, and a self-verifying workflow.

Related MCP server: UI5 MCP Server

Quick Start

Option A: Hosted URL (easiest — no install)

A hosted version of the MCP server is available. Add one line to your IDE config and you're done — no Node.js, no cloning, no build step.

Cursor — add to .cursor/mcp.json:

{
  "mcpServers": {
    "contentstack-apps": {
      "url": "https://contentstack-app-mcp-remote.contentstackapps.com/api/mcp"
    }
  }
}

Claude Desktop — add to claude_desktop_config.json:

{
  "mcpServers": {
    "contentstack-apps": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://contentstack-app-mcp-remote.contentstackapps.com/api/mcp"]
    }
  }
}

Replace the URL above with your org's hosted instance if available.

Option B: npx (local)

npx contentstack-app-mcp

Option C: Clone and build (local)

git clone https://github.com/abhishek305/contentstack-app-mcp.git
cd contentstack-app-mcp
npm install
npm run build

Configure Your IDE

Cursor

Remote (recommended) — add to .cursor/mcp.json:

{
  "mcpServers": {
    "contentstack-apps": {
      "url": "https://contentstack-app-mcp-remote.contentstackapps.com/api/mcp"
    }
  }
}

Local (npx) — add to .cursor/mcp.json:

{
  "mcpServers": {
    "contentstack-apps": {
      "command": "npx",
      "args": ["-y", "contentstack-app-mcp"]
    }
  }
}

Local (cloned repo) — add to .cursor/mcp.json:

{
  "mcpServers": {
    "contentstack-apps": {
      "command": "node",
      "args": ["/absolute/path/to/contentstack-app-mcp/dist/server.js"]
    }
  }
}

Then copy the auto-trigger rule into your project:

cp contentstack-app-mcp/.cursor/rules/contentstack-mcp-workflow.mdc \
   your-project/.cursor/rules/contentstack-mcp-workflow.mdc

Claude Desktop

Remote — add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "contentstack-apps": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://contentstack-app-mcp-remote.contentstackapps.com/api/mcp"]
    }
  }
}

Local — same file:

{
  "mcpServers": {
    "contentstack-apps": {
      "command": "npx",
      "args": ["-y", "contentstack-app-mcp"]
    }
  }
}

Claude Code

Configure the MCP server using either the remote URL or local approach above. Additionally, copy the CLAUDE.md template into your project root for auto-triggering:

cp contentstack-app-mcp/docs/templates/CLAUDE.md your-project/CLAUDE.md

Other IDEs (Codex CLI, Continue.dev, Aider, Windsurf)

Copy the AGENTS.md template from this repo into your project root:

cp contentstack-app-mcp/docs/templates/AGENTS.md your-project/AGENTS.md

This is a cross-tool standard that most AI coding assistants recognize.

Self-Hosting (Vercel / Contentstack Launch)

You can deploy your own hosted instance using the remote wrapper project. See docs/GUIDE.md for deployment instructions.

What's Inside

Resources (Knowledge)

URI

What the AI Learns

cs://locations

All 10 UI location types — which to pick for any use case

cs://sdk

Correct SDK methods, hooks, initialization, frame management

cs://patterns

Venus component mapping with props and examples

cs://manifest

Exact manifest.json format for Developer Hub

cs://security

4-tier security model — variables, mappings, permissions

cs://maintenance

Migration checklist and verification patterns

cs://spec-schema

JSON Schema for app specifications

Tools

Tool

Purpose

cs_preflight

Validates app spec, infers security tier

cs_plan

Returns human-readable summary — waits for your approval

cs_manifest

Generates manifest.json

cs_scaffold

Generates full React app source (3 calls by category)

cs_venus_resolve

Maps UI needs to exact Venus components with JSX

cs_verify

Audits the project — returns fix instructions if anything's wrong

cs_analyze

Audits an existing app repo for issues

cs_migrate

Generates ordered migration plan from audit output

Prompts

Prompt

Purpose

cs_workflow

Full create workflow — the AI's entry point

cs_venus

Returns Venus component JSX for a UI need

cs_migrate_check

Guides through analysis and migration

How It Works

 You type: "Build a sidebar widget for YouTube video picking"
                              │
                              ▼
 1.  AI reads cs://locations, cs://security, cs://patterns
 2.  AI drafts a structured spec
 3.  cs_preflight    → validates spec, infers security tier
 4.  cs_plan         → shows summary → YOU APPROVE
 5.  cs_manifest     → writes manifest.json
 6.  cs_scaffold ×3  → creates directories + writes all source files
 7.  cs_venus_resolve → resolves every UI element to Venus component
 8.  cs_verify       → audits project, AI fixes issues, repeats until clean
 9.  npm install && npm run build
10.  npm run dev

You only interact at step 4. Everything else is automated.

Auto-Triggering

The MCP server is self-guiding — its tool descriptions tell any LLM the correct workflow order. This works on every platform.

For even stronger guidance, copy the appropriate rule file into your project:

Your IDE

Copy This File

Cursor

.cursor/rules/contentstack-mcp-workflow.mdc

Claude Code

docs/templates/CLAUDE.md → copy to your project root

Codex CLI / Continue.dev / Aider

docs/templates/AGENTS.md → copy to your project root

With these in place, prompts like "build a custom field", "migrate my app", or "audit this extension" trigger the full MCP workflow automatically.

Limitations

  • Phase 2 API tools (create/update/install apps in Developer Hub) are coded but not yet active

  • Knowledge files are static — update and rebuild when SDK or Venus changes

  • Venus story files require @contentstack/venus-components in workspace or node_modules for cs_venus_resolve to read Storybook examples

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT

Available Tools

8 tools
cs_analyzeA

Migration workflow step 1. Audits an existing Contentstack app repo against best practices. Call when user wants to audit, migrate, refactor, or fix an existing app. Read cs://maintenance for the checklist. Input: { repo_path: string } Output: { structure_type, framework, sdk_version, venus_version, issues[], migration_needed }

Inputs: repo_path (required).

cs_manifestA

Step 5 of the create workflow. Generates manifest.json in Developer Hub format from a spec. Call after user approves cs_plan output. Read cs://manifest for format reference. Input: { spec: object, base_url?: string } Output: { manifest: object } — write as manifest.json

Inputs: spec (required), base_url.

cs_migrateA

Migration workflow step 2. Generates an ordered migration plan from cs_analyze output. Call with the output of cs_analyze. Returns instructions only — does NOT modify files. Input: { analysis: object } (output of cs_analyze) Output: { do_not_change: string[], steps: [...] }

Inputs: analysis (required).

cs_planA

Step 4 of the create workflow. Stateless confirmation gate — validates spec and returns a confirmation_prompt. Call after cs_preflight. Show confirmation_prompt to user and WAIT for approval before proceeding to cs_manifest. Input: { spec: object } Output: { success, confirmation_prompt, security_tier, warnings }

Inputs: spec (required).

cs_preflightA

Step 3 of the create workflow. Validates a structured app spec and infers security tier + permissions. Call after drafting spec, before cs_plan. Read cs://spec-schema before calling. Input: { spec: object } Output: { valid, errors, warnings, security_tier, inferred_permissions, needs_app_config }

Inputs: spec (required).

cs_scaffoldA

Steps 6a-6c of the create workflow. Generates source files by category with directory structure. Call 3 times (infrastructure → routing → locations) after cs_manifest. Read cs://patterns before calling. Input: { spec: object, category: 'infrastructure'|'routing'|'locations' } Output: { category, directories: string[], files: [{ path, content }] } Agent MUST create all directories first, then write files.

Inputs: spec (required), category (required).

cs_venus_resolveA

Step 7 of the create workflow. Resolves UI element names to exact Venus component names, props, imports, and usage examples. Call after cs_scaffold, before cs_verify. Input: { ui_elements: string[], project_path?: string } Output: { resolutions: VenusResolution[], combined_import: string }

Inputs: ui_elements (required), project_path.

cs_verifyA

Step 8 of the create workflow. Post-generation verification. Audits the scaffolded project for structural, Venus compliance, security, and consistency issues. Call after writing all files. Repeat until passed=true. Input: { project_path: string } Output: { passed: boolean, checks: CheckResult[], fix_instructions: string[] } If passed is false, fix each issue in fix_instructions and call cs_verify again.

Inputs: project_path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 8 tools

    Disambiguation4/5

    Each tool has a clearly stated workflow step and distinct purpose; the ordering and input/output contracts make roles mostly unambiguous. Minor overlap exists between cs_preflight and cs_plan (both validate/spec-gate) and between cs_analyze and cs_verify (both audit), but the descriptions distinguish their contexts well.

    Naming Consistency4/5

    All tools consistently use the cs_ prefix with snake_case names, which is predictable and readable. The stems mix verbs and nouns (e.g., cs_plan, cs_manifest, cs_scaffold, cs_venus_resolve), but the convention remains clear enough for an agent to follow.

    Tool Count5/5

    Eight tools provide a well-scoped surface for the create and migration workflows without redundancy. Each tool maps to a meaningful phase, and the count sits comfortably in the ideal 3-15 range.

    Completeness4/5

    The surface covers the core create workflow (validation, planning, manifest, scaffold, component resolution, verification) and migration (analyze, migrate). Minor gaps remain around initial spec drafting/import and deployment or publishing, but the critical generation and audit lifecycle is well covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to generate standardized code using scaffolding templates, enforce architectural patterns, and validate outputs programmatically. Supports creating projects from boilerplates and adding features to existing codebases while maintaining team conventions.
      160
      AGPL 3.0
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables developers using agentic AI tools to scaffold applications and integration cards, retrieve API references and best-practice guidelines, inspect project metadata, validate manifests, and detect and fix framework-specific code issues.
      547 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Equips agentic AI tools with UI5-specific capabilities such as scaffolding new UI5 applications and integration cards, retrieving API references, guidelines, and version info, and validating manifests or running linters to detect and fix UI5 coding issues. It gives AI assistants the context and tooling needed to build and maintain UI5 projects more reliably.
      547 npm
      MIT