Contentstack App MCP Server
Provides deterministic tools and structured knowledge for building, migrating, and auditing Contentstack Marketplace apps, including app spec validation, manifest generation for Developer Hub, React app scaffolding, Venus component resolution, and project verification.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Contentstack App MCP Server scaffold a Contentstack Marketplace app with a custom field and generate its manifest"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Contentstack App MCP Server
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-mcpOption C: Clone and build (local)
git clone https://github.com/abhishek305/contentstack-app-mcp.git
cd contentstack-app-mcp
npm install
npm run buildConfigure 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.mdcClaude 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.mdOther 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.mdThis 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 |
| All 10 UI location types — which to pick for any use case |
| Correct SDK methods, hooks, initialization, frame management |
| Venus component mapping with props and examples |
| Exact manifest.json format for Developer Hub |
| 4-tier security model — variables, mappings, permissions |
| Migration checklist and verification patterns |
| JSON Schema for app specifications |
Tools
Tool | Purpose |
| Validates app spec, infers security tier |
| Returns human-readable summary — waits for your approval |
| Generates manifest.json |
| Generates full React app source (3 calls by category) |
| Maps UI needs to exact Venus components with JSX |
| Audits the project — returns fix instructions if anything's wrong |
| Audits an existing app repo for issues |
| Generates ordered migration plan from audit output |
Prompts
Prompt | Purpose |
| Full create workflow — the AI's entry point |
| Returns Venus component JSX for a UI need |
| 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 devYou 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 |
|
Claude Code |
|
Codex CLI / Continue.dev / Aider |
|
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-componentsin workspace ornode_modulesforcs_venus_resolveto read Storybook examples
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
Available Tools
8 toolscs_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
Scored across 8 tools
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.
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.
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.
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
Related MCP Connectors
Build, validate, test-run and publish AIOS workflows from Claude Code, Codex, Cursor or VS Code.
One place to build, share, and govern the skills and tools your AI agents use at work.
Governed app access for AI agents: 1,000+ apps & 12,000+ tools via Code Mode MCP.
Register, deploy, review, and govern internal applications built with coding agents.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables 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.160AGPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables 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 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables agentic AI tools to scaffold UI5 applications, detect and fix UI5-specific code issues, fetch API references and guidelines, validate manifests, and run linters.547 npmMIT
- AlicenseNot gradedqualityAmaintenanceEquips 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 npmMIT