
一款用于Drupal操作的模型上下文协议(MCP)服务器。提供站点分析、迁移、内容管理、配置、商务、无头、DevOps、安全等功能。
概览
一款用于Drupal操作的模型上下文协议(MCP)服务器。提供站点分析、迁移、内容管理、配置、商务、无头、DevOps、安全等功能。 - — 通过一台MCP服务器访问JSON:API、GraphQL、Drush和AI——内容分析、现场映射和迁移规划,选择LLM - 桌面应用使用Stdio,远程部署使用HTTP/SSE - — 输入验证,OAuth 2.1,无shell注入 - — 37个工具模块涵盖所有主要Drupal子系统 - — 完全支持Drupal的REST端点、模式内省、稀疏字段集- — 执行任何Drush命令(缓存、cron、updb、看门狗、php评估等)。
概述(AI 翻译)
一台用于Drupal操作的模型上下文协议(MCP)服务器。提供414个工具,涵盖41个模块,用于站点分析、迁移、内容管理、配置、商务、无头、DevOps、安全等。
演示
真正的运行——版本检查、支持的九个客户端、这台机器上代理的实时检测,以及直接从 PyPI 零安装开始:
为什么要用这个?
- 统一接口 — 通过一个MCP服务器访问JSON:API、GraphQL、Drush和AI。
- AI驱动 — 内容分析、现场映射和迁移规划,选用你选择的LLM
- 多传输 — 桌面应用使用Stdio,远程部署使用HTTP/SSE
- Secure — 输入验证,OAuth 2.1,无壳注入
- 全面 — 41个工具模块,涵盖所有主要Drupal子系统
特色
- JSON:API & GraphQL — 完全支持 Drupal 的 REST 端点、模式内省、稀疏字段集
- Drush 集成 — 执行任何 Drush 命令(缓存、cron、updb、看门狗、php-eval 等)
- DDEV/Lando/Acquia 支持 — 本地及云开发环境管理
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Drupal MCP Server
A Model Context Protocol (MCP) server for Drupal operations. Provides 414 tools across 41 modules for site analysis, migration, content management, configuration, commerce, headless, DevOps, security, and more.
Demo
A real run — version check, the nine supported clients, live detection of the agents on this machine, and a zero-install start straight from PyPI:
Why Use This?
- Unified interface — Access JSON:API, GraphQL, Drush, and AI through one MCP server
- AI-powered — Content analysis, field mapping, and migration planning with your choice of LLM
- Multi-transport — Stdio for desktop apps, HTTP/SSE for remote deployments
- Secure — Input validation, OAuth 2.1, no shell injection
- Comprehensive — 41 tool modules covering every major Drupal subsystem
Features
- JSON:API & GraphQL — Full support for Drupal’s REST endpoints, schema introspection, sparse fieldsets
- Drush Integration — Execute any Drush command (cache, cron, updb, watchdog, php-eval, etc.)
- DDEV/Lando/Acquia Support — Local and cloud development environment management
- AI-Powered Tools — Multi-provider AI (Ollama, OpenAI, Anthropic, NVIDIA NIM, Google)
- Migration Assistance — Generate and validate migration configurations, D7→D10 upgrades
- Security Audits — PHPStan, Drupal Check, dependency scanning, SQL injection, XSS, CSP, file permissions
- Content Management — CRUD for nodes, media, users, taxonomy, comments, revisions, paragraphs
- Commerce — Stores, products, orders, payments, promotions, shipping (18 tools)
- Configuration — Export/import, sync, diff, split (7 tools)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"drupal": {
"command": "drupal-mcp",
"env": {
"DRUPAL_BASE_URL": "https://your-drupal-site.com",
"DRUPAL_USERNAME": "admin",
"DRUPAL_PASSWORD": "secret"
}
}
}
}