SuperAPIAI Directory

storyblok-mcp-server

github.com · AI developer platforms

Manage Storyblok headless CMS stories, components, assets, workflows, releases and more.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Purpose

Storyblok MCP Server is designed to connect MCP-compatible AI assistants with the Storyblok headless CMS, enabling teams to securely manage Storyblok content, workflows, and configuration programmatically. It solves the problem of time-consuming repetitive content operations and publishing workflows in Storyblok by automating content operations, orchestrating publishing and workflows, and maintaining component library and schema consistency, providing AI agents with structured, typed access to Storyblok.

Key Capabilities

  • Provides 160 tools, distributed across 30 modules, mapped to the various capabilities of the Storyblok Management API.
  • Uses Zod to define typed schemas, ensuring the safety of tool calls.
  • Adopts an MCP-first design, suitable for any MCP-compatible client.
  • Simple configuration via environment variables.
  • Tool scope covers story management, components, assets, workflows, publishing, and more.

Usage

Environment Requirements

  • A Storyblok space, requiring a Management token and a Public/Preview token.
  • The server requires three environment variables (see .env.example).

Configuration and Startup

  1. Create a .env file from the example and fill in the credentials.
  2. Start the server.

Using with MCP Clients

This server is designed to work with any MCP-compatible client. Below are configuration examples for common tools:

  • Claude Desktop: Add to claude_desktop_config.json.
  • Codex CLI / IDE: Supports configuring the MCP server via the CLI or by editing ~/.codex/config.toml. The CLI and IDE extension share the same configuration.
    • Option A: Configure using the Codex CLI.
    • Option B: Configure using ~/.codex/config.toml.
  • Cursor: Create a project configuration in .cursor/mcp.json (or use the global configuration ~/.cursor/mcp.json).
  • Codeium: Create ~/.codeium/mcp_config.json.
  • VS Code: Create .vscode/mcp.json in the workspace.
  • Continue: Create a YAML configuration in .continue/mcpServers/storyblok.yaml.
  • Cline: Open Cline settings, use "Configure MCP Servers" to open cline_mcp_settings.json, then add the configuration.

Example Prompts

In an MCP client, you can use the following prompts to get started quickly:

  • "List all stories updated in the past 7 days and mark them as 'reviewed'."
  • "Create a release for next Friday and add the homepage and pricing stories."
  • "Find unused components and tell me which stories still reference them."
  • "Upload these assets and organize them into a new 'Campaign' folder."

Project Structure

  • src/index.ts - MCP server entry point
  • src/tools/* - Tool modules mapped to Storyblok API areas
  • src/types/* - Shared API and Storyblok types
  • src/utils/* - HTTP helper functions and response formatting
  • src/config.ts - Environment configuration and validation

Use Cases

  • Automate content operations (bulk updates, tagging, asset management).
  • Orchestrate publishing and workflows with less manual effort.
  • Maintain component library and schema consistency.
  • Provide AI agents with structured, typed access to Storyblok.

Limitations and Considerations

  • Requires a Storyblok space and Management and Public/Preview tokens.
  • The server requires three environment variables; missing ones will cause a ConfigError.
  • For 401 unauthorized errors, check the Management and Public/Preview tokens.
  • For 404 not found errors, check STORYBLOK_SPACE_ID.
  • It is recommended to use a least-privilege set for security.
  • Never commit the .env file or tokens to git.
  • It is recommended to use a dedicated Storyblok space for automationtoken.
  • If you suspect the token has leaked, rotate the token.

Tech Stack

  • TypeScript, with strict type checking enabled
  • @modelcontextprotocol/sdk for the MCP implementation
  • Zod for runtime schema validation
  • Native fetch API for HTTP requests

Release and Version Management

When preparing a release:

  1. Update the version in package.json (semantic versioning is recommended).
  2. If behavior or settings have changed, update README.md.
  3. Tag and publish a GitHub Release with release notes.

Contributing

Issues and PRs are welcome. If you plan to make major changes, please open an Issue first to align on scope and direction.

Built by hypescale | Maintained by Martin Kogut.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools