Sponsored by Deepsite.site

Contentstack MCP Server

Created By
christinemasters8 months ago
An MCP Server for Contentstack.
Content

Contentstack MCP Server

A lightweight Node.js/Express service that exposes your Contentstack stack as an MCP (Machine‑Callable Platform) Server so agents and automations can query or mutate content through simple function calls.


📦 What’s inside?

PathPurpose
mcp-server.jsMain application – REST wrapper around Contentstack SDKs.
.well-known/mcp/metadataDiscovery endpoint consumed by Contentstack Agents.
/functions/executeSingle RPC endpoint that executes server‑side functions.
.env.exampleTemplate for local environment variables.
package.jsonProject metadata and run scripts.

🚀 Quick start

# Clone the repo
git clone git@github.com:<org>/<repo>.git
cd <repo>

# Install dependencies
pnpm install            # or npm install / yarn

# Configure credentials
dcp .env.example .env    # fill in STACK_API_KEY, DELIVERY_TOKEN, ENVIRONMENT, MANAGEMENT_TOKEN

# Run
pnpm start               # or npm run dev (nodemon)

Visit http://localhost:3000/ping{ "status": "ok" } confirms it’s alive.


🔑 Environment variables

NameRequiredDescription
STACK_API_KEYAPI key for the stack you want to expose.
DELIVERY_TOKENDelivery token with read permissions.
ENVIRONMENTEnvironment name (e.g. production).
MANAGEMENT_TOKEN⬜️Enables write operations like createEntry.
PORT⬜️Port the server listens on (default 3000).

📚 Endpoints

MethodPathPurpose
GET/pingHealth probe.
GET/.well-known/mcp/metadataFunction catalogue + discovery metadata.
POST/functions/executeRPC: { "fn": "<name>", "args": { ... } }.

Response shape: { ok: true, result: <any> } on success; { ok: false, error: <msg> } on failure.


🛠 Adding new functions

  1. Describe it in the metadata JSON (inside mcp-server.js).
  2. Implement the logic in the switch(fn) block.
  3. Return clean JSON. Avoid streaming huge SDK objects—agents prefer concise payloads.

🏗 Deployment suggestions

PlatformOne‑liner
Fly.iofly launch --image-node (auto‑writes Dockerfile)
AWS App RunnerContainer build straight from GitHub.
Google Cloud Rungcloud run deploy with auto‑scale to zero.

Add a CDN only if you need caching; most agent calls demand fresh data.


🧪 Testing

# Run unit tests (Jest)
pnpm test

# Generate coverage
pnpm run coverage

Use nock to stub Contentstack responses for fast, offline tests.


🤝 Contributing

  1. Fork ➜ create feature branch (git checkout -b feature/<name>)
  2. Commit ❯ push ➜ open a PR.
  3. Each PR should pass linting and unit tests.

📄 License

MIT

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Serper MCP ServerA Serper MCP Server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Tavily Mcp
Playwright McpPlaywright MCP server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
CursorThe AI Code Editor
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
DeepChatYour AI Partner on Desktop
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors