Contentful Delivery MCP Server
Сервер MCP для доставки контента
Сервер Model Context Protocol (MCP), который обеспечивает бесперебойный доступ к Contentful Delivery API через помощников AI. Запрашивайте и извлекайте записи контента, активы и типы контента, используя естественный язык.
Быстрый старт
Установите пакет в свой проект:
npm install @mshaaban0/contentful-delivery-mcp-serverИли глобально:
npm install -g @mshaaban0/contentful-delivery-mcp-serverНастройте свои учетные данные Contentful:
export CONTENTFUL_SPACE_ID="your_space_id"
export CONTENTFUL_ACCESS_TOKEN="your_access_token"
# Optional: Restrict content to specific content types
export CONTENTFUL_CONTENT_TYPE_IDS="blogPost,article,product"Related MCP server: azure-devops MCP Server
Функции
Запросы на естественном языке для поиска контента
Извлечение записей по идентификатору или типу контента
Управление активами
Доступ к схеме типа контента
Поддержка пагинации
Обработка расширенного текстового контента
Доступные инструменты
query_entries— поиск на естественном языке по всему контентуget_entry— Извлечь определенную запись по идентификаторуget_entries— Список записей с фильтрациейget_assets- Просмотреть все активыget_asset— Получить данные об активе по идентификаторуget_content_type— просмотр схемы типа контентаget_content_types— список доступных типов контента
Интеграция с Mastra AI
Mastra AI обеспечивает бесшовную интеграцию с этим сервером MCP. Вот как это настроить:
import { MastraMCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
// Initialize the MCP client
const contentfulClient = new MastraMCPClient({
name: "contentful-delivery",
server: {
command: "npx",
args: ["-y", "@mshaaban0/contentful-delivery-mcp-server@latest"],
env: {
CONTENTFUL_ACCESS_TOKEN: "your_access_token",
CONTENTFUL_SPACE_ID: "your_space_id",
// Optional: Restrict content to specific content types
CONTENTFUL_CONTENT_TYPE_IDS: "blogPost,article,product"
}
}
});
// Create an AI agent with access to Contentful
const assistant = new Agent({
name: "Content Assistant",
instructions: `
You are a helpful assistant with access to our content database.
Use the available tools to find and provide accurate information.
`,
model: "gpt-4",
});
// Connect and register tools
await contentfulClient.connect();
const tools = await contentfulClient.tools();
assistant.__setTools(tools);
// Example usage
const response = await assistant.chat("Find articles about machine learning");Разработка
# Clone the repo
git clone https://github.com/mshaaban0/contentful-delivery-mcp-server.git
# Install dependencies
npm install
# Build
npm run build
# Development with auto-rebuild
npm run watch
# Run the inspector
npm run inspectorОтладка
MCP Inspector предоставляет веб-интерфейс для отладки:
npm run inspectorПерейдите по предоставленному URL-адресу, чтобы получить доступ к инструментам отладки.
Ресурсы
Аудит безопасности
Лицензия
Массачусетский технологический институт
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Google Keep-style notes app with an MCP server for AI agents to read/write notes.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
An MCP server that used to create notes
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA TypeScript-based MCP server that enables users to manage text notes with features like note creation and summary generation using a Model Context Protocol.1-
- AlicenseBqualityDmaintenanceA TypeScript-based MCP server that implements a simple notes system, allowing users to create, access, and generate summaries of text notes.12958 npm3MIT
- AlicenseCqualityDmaintenanceA TypeScript-based MCP server that implements a simple notes system, allowing users to create, access, and generate summaries of text notes through Claude Desktop.12,571 npm1MIT
- FlicenseBqualityDmaintenanceA TypeScript-based MCP server that implements a simple notes system, allowing users to create, access, and generate summaries of text notes.23-