Skip to main content
Glama

Storyblok MCP

MCP server for Storyblok: fetch stories, manage tags, and use AI (Cursor, Claude Desktop) to work with your content. You only need to set 2–3 env variables.

What you need

  • Node.js 18+ — nodejs.org (LTS)

  • Storyblok Space ID — Space settings or from the app URL: app.storyblok.com/#/me/spaces/<ID>/

  • Management API token — Storyblok → Settings → Access tokens → Create (full access or at least Stories + Tags)

Quick start

1. The Universal Way (Best for non-technical users)

Deploy this server to Vercel. Once live, anyone can connect to their own Storyblok space using just the URL and token.

"storyblok": {
  "url": "https://your-server.vercel.app/sse",
  "headers": {
    "Authorization": "Bearer YOUR_TOKEN",
    "x-space-id": "YOUR_SPACE_ID"
  }
}

Advanced Cloud Options (SSE)

You can further customize the connection using headers or URL parameters:

  • Specific Space ID: Use the URL .../sse/12345 or set the x-space-id header.

  • Custom API Proxy: Set the x-api-base header to point to your own Storyblok MAPI proxy.

  • Private Access Key: If the server has an MCP_API_KEY set, provide it via the x-mcp-key header.

Example with all options:

"headers": {
  "Authorization": "Bearer YOUR_TOKEN",
  "x-space-id": "12345",
  "x-api-base": "https://your-proxy.com/v1",
  "x-mcp-key": "your-secret-server-key"
}

2. Local Development

cp env.example .env
npm install
npm run build
node start-with-env.js

Edit .env and set at least:

STORYBLOK_SPACE_ID=12345
STORYBLOK_MANAGEMENT_TOKEN=your-management-token-here

3. Running with Docker

You can also run the server using Docker. This is great for consistent deployments.

docker build -t storyblok-mcp .
docker run -p 3000:3000 \
  -e STORYBLOK_SPACE_ID=your_id \
  -e STORYBLOK_MANAGEMENT_TOKEN=your_token \
  storyblok-mcp

The Docker image defaults to SSE mode on port 3000.

Deploying to Kubernetes

  1. Push to Registry:

    docker tag storyblok-mcp your-registry/storyblok-mcp:latest
    docker push your-registry/storyblok-mcp:latest
  2. Apply Manifests: Use the provided k8s-deployment.yaml as a template. It sets up a Deployment, a Service, and an Ingress for custom domain support (HTTPS).

  3. External URL: Once deployed, you can point your domain (e.g., mcp.yourdomain.com) to your Ingress controller's IP.

4. Connect to Cursor or Claude Desktop

Cursor — edit MCP config (e.g. ~/Library/Application Support/Cursor/User/globalStorage/cursor.mcp/mcp.json or Settings → MCP):

{
  "mcpServers": {
    "storyblok": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/storyblok-mcp/start-with-env.js"]
    }
  }
}

Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "storyblok": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/storyblok-mcp/start-with-env.js"]
    }
  }
}

Replace the path with your actual storyblok-mcp folder path. Restart Cursor or Claude.

start-with-env.js loads .env from the project folder, so you don’t need to put secrets in the MCP config.


Env variables

Variable

Required

Description

STORYBLOK_SPACE_ID

✅

Your Storyblok space ID

STORYBLOK_MANAGEMENT_TOKEN

✅

Management API token

STORYBLOK_REGION

❌

eu (default), us, ca, ap, cn — use if your Space is not in EU

STORYBLOK_API_BASE

❌

Override API base (if proxying)

Region (EU, US, etc.)

If your Storyblok Space is in the US or another region, set:

STORYBLOK_REGION=us

Options: eu, us, ca, ap, cn. Default: eu.

Custom API URL

Only if you proxy the Storyblok Management API through your own domain:

STORYBLOK_API_BASE=https://your-proxy.com/path

SSE Custom Proxy

In SSE mode, you can also specify the proxy per-connection:

"headers": {
  "x-api-base": "https://your-proxy.com/v1"
}

The proxy must forward to the real Storyblok MAPI. Otherwise leave this unset.


Tools

Full-featured TypeScript implementation for the Storyblok Management API.

Category

Tools

Stories

fetch_stories, get_story, create_story, update_story, delete_story, publish_story, unpublish_story, get_story_versions

Tags

fetch_tags, create_tag, create_tag_and_add_to_story, add_existing_tag_to_story, update_tag, delete_tag

Components

fetch_components, get_component, create_component, update_component, delete_component

Assets

fetch_assets, get_asset, update_asset, delete_asset

Releases

fetch_releases, get_release, create_release, update_release, delete_release

Workflows

fetch_workflows, get_workflow, create_workflow, update_workflow, delete_workflow, fetch_workflow_stages

Webhooks

fetch_webhooks, get_webhook, create_webhook, update_webhook, delete_webhook

Datasources

fetch_datasources, get_datasource, create_datasource, update_datasource, delete_datasource, fetch_datasource_entries, create_datasource_entry, update_datasource_entry, delete_datasource_entry

Space

get_space, update_space

Meta

list_tools — list all tools by category

Ping

ping — health check (optional check_api=1 to test API)


Example prompts

  • “Fetch my Storyblok stories”

  • “List all tags in my space”

  • “Suggest a tag for each of my blog posts and add them”

  • “Add the tag ‘product-launch’ to story ID …”


Troubleshooting

  • “Missing env” — .env must be next to start-with-env.js and contain STORYBLOK_SPACE_ID and STORYBLOK_MANAGEMENT_TOKEN.

  • 401 from Storyblok — Token invalid or expired; create a new Management token with Stories + Tags.

  • MCP not listed — Use the absolute path to start-with-env.js and restart Cursor/Claude.

  • “Cannot find module” — Run npm install and npm run build in your storyblok-mcp folder.


Reference

Available Tools

74 tools
add_existing_tag_to_storyC

Add an existing tag to a story by tag name.

Inputs: tag_name (required), story_id (required).

bulk_delete_assetsC

Delete multiple assets.

Inputs: asset_ids (required).

bulk_move_assetsC

Move multiple assets to a folder.

Inputs: asset_ids (required), asset_folder_id (required).

bulk_restore_assetsC

Restore multiple deleted assets.

Inputs: asset_ids (required).

create_asset_folderC

Create an asset folder. Pass name and optional parent_id.

Inputs: name (required), parent_id.

create_componentC

Create a component. Pass component object with name, display_name, schema, etc.

Inputs: component (required).

create_component_folderC

Create a component folder. Pass name.

Inputs: name (required).

create_datasourceC

Create a datasource. Pass name, slug, and optional dimensions.

Inputs: name (required), slug (required), dimensions.

create_datasource_entryC

Create a datasource entry. Pass name, value, and optional dimension.

Inputs: datasource_id (required), name (required), value (required), dimension.

create_releaseC

Create a release. Pass name and optional story_ids, scheduled_at.

Inputs: name (required), story_ids, scheduled_at.

create_storyC

Create a new story. Pass story as JSON object with name, slug, content, parent_id, etc. Optional publish=1 to publish.

Inputs: story (required), publish.

create_tagB

Create a tag. Optionally link to a story via story_id.

Inputs: name (required), story_id.

create_tag_and_add_to_storyA

Create a tag and add it to a story. If the tag exists, it is linked.

Inputs: name (required), story_id (required).

create_taskC

Create a task. Pass name, description, assigned_to_user_id, story_id, etc.

Inputs: name (required), description, assigned_to_user_id, story_id.

create_webhookC

Create a webhook. Pass name, url, and optional events, description, secret.

Inputs: name (required), url (required), events, description, +1 more.

create_workflowC

Create a workflow. Pass name and optional stages.

Inputs: name (required), stages.

delete_assetC

Delete an asset by ID.

Inputs: asset_id (required).

delete_asset_folderC

Delete an asset folder by ID.

Inputs: asset_folder_id (required).

delete_componentC

Delete a component by ID.

Inputs: component_id (required).

delete_component_folderC

Delete a component folder by ID.

Inputs: component_folder_id (required).

delete_datasourceC

Delete a datasource by ID.

Inputs: datasource_id (required).

delete_datasource_entryC

Delete a datasource entry.

Inputs: datasource_id (required), entry_id (required).

delete_releaseC

Delete a release by ID.

Inputs: release_id (required).

delete_storyC

Delete a story permanently.

Inputs: story_id (required).

delete_tagC

Delete a tag by ID.

Inputs: tag_id (required).

delete_taskC

Delete a task by ID.

Inputs: task_id (required).

delete_webhookC

Delete a webhook by ID.

Inputs: webhook_id (required).

delete_workflowC

Delete a workflow by ID.

Inputs: workflow_id (required).

duplicate_storyC

Duplicate a story.

Inputs: story_id (required).

fetch_activity_logC

List activity log. Optional per_page, page, user_id.

Inputs: per_page, page, user_id.

fetch_asset_foldersC

List asset folders. Optional per_page, page.

Inputs: per_page, page.

fetch_assetsC

List assets. Optional folder_id, per_page, page, filter_query.

Inputs: folder_id, per_page, page, filter_query.

fetch_component_foldersC

List component folders. Optional per_page, page.

Inputs: per_page, page.

fetch_componentsC

List components. Optional per_page, page.

Inputs: per_page, page.

fetch_datasource_entriesC

List entries for a datasource. Optional dimension, per_page, page.

Inputs: datasource_id (required), dimension, per_page, page.

fetch_datasourcesC

List datasources. Optional per_page, page.

Inputs: per_page, page.

fetch_releasesC

List releases. Optional per_page, page.

Inputs: per_page, page.

fetch_rolesB

List roles in the space.

Inputs: no named parameters.

fetch_storiesC

List stories with optional filters: content_type, search, per_page, page, with_slug, is_startpage.

Inputs: content_type, search, per_page, page, +3 more.

fetch_tagsB

List all tags in the space.

Inputs: no named parameters.

fetch_tasksC

List tasks. Optional per_page, page, story_id.

Inputs: per_page, page, story_id.

fetch_usersB

List users in the space.

Inputs: no named parameters.

fetch_webhooksB

List webhooks in the space.

Inputs: no named parameters.

fetch_workflowsB

List workflows in the space.

Inputs: no named parameters.

fetch_workflow_stagesC

List workflow stages for a workflow.

Inputs: workflow_id (required).

get_assetC

Get an asset by ID.

Inputs: asset_id (required).

get_asset_folderB

Get an asset folder by ID.

Inputs: asset_folder_id (required).

get_componentC

Get a component by ID.

Inputs: component_id (required).

get_datasourceC

Get a datasource by ID.

Inputs: datasource_id (required).

get_releaseC

Get a release by ID.

Inputs: release_id (required).

get_spaceB

Get the current space details (the one from STORYBLOK_SPACE_ID).

Inputs: no named parameters.

get_storyC

Get a single story by UUID.

Inputs: story_id (required).

get_story_versionsC

List versions of a story.

Inputs: story_id (required).

get_webhookC

Get a webhook by ID.

Inputs: webhook_id (required).

get_workflowC

Get a workflow by ID.

Inputs: workflow_id (required).

list_toolsA

List all available Storyblok MCP tools by category. No API call.

Inputs: no named parameters.

pingB

Health check. Verifies env and optionally the Storyblok API. Set check_api=1 to call the API.

Inputs: check_api.

publish_storyC

Publish a story. Optional lang, release_id.

Inputs: story_id (required), lang, release_id.

restore_story_versionD

Restore a story version.

Inputs: story_id (required), version_id (required).

translate_storyC

Translate a story using AI. Optional lang_code.

Inputs: story_id (required), lang_code.

unpublish_storyC

Unpublish a story. Optional lang.

Inputs: story_id (required), lang.

update_assetC

Update asset metadata: filename, asset_folder_id, alt, title, copyright, etc.

Inputs: asset_id (required), filename, asset_folder_id, alt, +2 more.

update_asset_folderC

Update an asset folder.

Inputs: asset_folder_id (required), name, parent_id.

update_componentC

Update a component by ID.

Inputs: component_id (required), component (required).

update_component_folderD

Update a component folder.

Inputs: component_folder_id (required), name (required).

update_datasourceD

Update a datasource.

Inputs: datasource_id (required), name, slug, dimensions.

update_datasource_entryD

Update a datasource entry.

Inputs: datasource_id (required), entry_id (required), name, value.

update_releaseD

Update a release.

Inputs: release_id (required), name, story_ids, scheduled_at.

update_spaceC

Update space settings. Pass an object with name, domain, plan, etc.

Inputs: space (required).

update_storyC

Update an existing story. Pass story object with fields to update.

Inputs: story_id (required), story (required), publish.

update_tagC

Update a tag by ID.

Inputs: tag_id (required), name (required).

update_taskC

Update a task by ID.

Inputs: task_id (required), name, description, resolved.

update_webhookD

Update a webhook.

Inputs: webhook_id (required), name, url, events, +2 more.

update_workflowD

Update a workflow.

Inputs: workflow_id (required), name, stages.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 74 tools

    Disambiguation4/5

    Most tools are clearly distinct by resource and action, but there is some overlap: 'create_tag_and_add_to_story' duplicates functionality of 'create_tag' and 'add_existing_tag_to_story', and 'list_tools' is a meta-tool that doesn't fit the domain. Overall, the majority are well-differentiated, with only minor confusion points.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, with clear conventions: fetch_ for listing, get_ for retrieving single items, create_/update_/delete_ for CRUD operations, and specific action verbs like publish_ or translate_. No mixing of styles or deviations observed.

    Tool Count2/5

    With 74 tools, the count is excessive for a content management server, making it overwhelming and likely to cause selection paralysis. A more focused set of 15-30 tools would better serve the domain without sacrificing functionality, as many operations could be consolidated or generalized.

    Completeness5/5

    The tool surface provides comprehensive CRUD/lifecycle coverage across all key resources (stories, assets, components, datasources, releases, tags, tasks, webhooks, workflows), including bulk operations, versioning, translations, and administrative actions. No obvious gaps are present for the Storyblok CMS domain.

    Related MCP Connectors