Sponsored by Deepsite.site

Kontent.ai MCP Server

创建者
kontent-aia year ago
The Kontent.ai MCP Server allows you to interact with your Kontent.ai project using the Model Context Protocol (MCP). It provides structured access to both the Delivery and Management APIs, making it possible for AI-enabled tools to read and write content, inspect content types, and explore the project structure. This server supports both STDIO and Server-Sent Events (SSE) transports and is compatible with any client or tool that implements MCP.
内容

Content

Available Tools

Content Type Management

  • get-type-mapi – Get a specific content type by codename
  • list-content-types-mapi – List all content types in the environment
  • add-content-type-mapi – Create a new content type with elements

Content Type Snippet Management

  • get-type-snippet-mapi – Get a specific content type snippet by codename
  • list-content-type-snippets-mapi – List all content type snippets
  • add-content-type-snippet-mapi – Create a new content type snippet

Taxonomy Management

  • get-taxonomy-group-mapi – Get a specific taxonomy group by codename
  • list-taxonomy-groups-mapi – List all taxonomy groups
  • add-taxonomy-group-mapi – Create a new taxonomy group with terms

Content Item Management

  • get-item-mapi – Get a specific content item by codename
  • get-item-dapi – Get a content item by codename from Delivery API
  • get-variant-mapi – Get a language variant of a content item
  • add-content-item-mapi – Create a new content item (structure only)
  • update-content-item-mapi – Update an existing content item by codename (name, collection)
  • delete-content-item-mapi – Delete a content item by codename
  • upsert-language-variant-mapi – Create or update a language variant with content
  • delete-language-variant-mapi – Delete a language variant of a content item

Asset Management

  • get-asset-mapi – Get a specific asset by codename
  • list-assets-mapi – List all assets in the environment

Language Management

  • list-languages-mapi – List all languages configured in the environment

Configuration

The server requires the following environment variables:

VariableDescriptionRequired
KONTENT_API_KEYYour Kontent.ai Management API key
KONTENT_ENVIRONMENT_IDYour environment ID
PORTPort for SSE transport (defaults to 3001)

Transport Options

STDIO Transport

To run the server with STDIO transport, configure your MCP client with:

{
  "kontent-ai-stdio": {
      "command": "npx",
      "args": ["@kontent-ai/mcp-server@latest", "stdio"],
      "env": {
        "KONTENT_API_KEY": "<management-api-key>",
        "KONTENT_ENVIRONMENT_ID": "<environment-id>"
      }
    }
}

SSE Transport

For SSE transport, first start the server:

npx @kontent-ai/mcp-server@latest sse

With environment variables in a .env file, or otherwise accessible to the process:

KONTENT_API_KEY=<management-api-key>
KONTENT_ENVIRONMENT_ID=<environment-id>
PORT=3001  # optional, defaults to 3001

Then configure your MCP client:

{
  "kontent-ai-sse": {
    "url": "http://localhost:3001/sse"
  }
}

Development

Local Installation

# Clone the repository
git clone https://github.com/kontent-ai/mcp-server.git
cd mcp-server

# Install dependencies
npm ci

# Build the project
npm run build

# Start the server
npm run start:sse  # For SSE transport
npm run start:stdio  # For STDIO transport

# Start the server with automatic reloading (no need to build first)
npm run dev:sse  # For SSE transport
npm run dev:stdio  # For STDIO transport

Project Structure

  • src/ - Source code
    • tools/ - MCP tool implementations
    • clients/ - Kontent.ai API client setup
    • schemas/ - Data validation schemas
    • utils/ - Utility functions
      • errorHandler.ts - Standardized error handling for MCP tools
      • throwError.ts - Generic error throwing utility
    • server.ts - Main server setup and tool registration
    • bin.ts - Single entry point that handles both transport types

Debugging

For debugging, you can use the MCP inspector:

npx @modelcontextprotocol/inspector -e KONTENT_API_KEY=<key> -e KONTENT_ENVIRONMENT_ID=<env-id> node path/to/build/bin.js

Or use the MCP inspector on a running sse server:

npx @modelcontextprotocol/inspector

This provides a web interface for inspecting and testing the available tools.

License

MIT

服务器配置

{
  "mcpServers": {
    "kontent-ai-stdio": {
      "command": "npx",
      "args": [
        "@kontent-ai/mcp-server@latest",
        "stdio"
      ],
      "env": {
        "KONTENT_API_KEY": "<management-api-key>",
        "KONTENT_ENVIRONMENT_ID": "<environment-id>"
      }
    }
  }
}
推荐的 MCP Server
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
CursorThe AI Code Editor
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.
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.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Playwright McpPlaywright MCP server
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
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"
Tavily Mcp
Serper MCP ServerA Serper MCP Server
WindsurfThe new purpose-built IDE to harness magic
DeepChatYour AI Partner on Desktop
Amap Maps高德地图官方 MCP Server
ChatWiseThe second fastest AI chatbot™