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.
Quick Links¶
- Installation — Get started in 5 minutes
- Architecture — How the server works internally
- Contributing — How to contribute code
- Changelog — What's changed recently
Features at a Glance¶
A sample of the catalog — the full list of all 414 tools lives in the README's Tools section.
| Category | Tools | Description |
|---|---|---|
| Content | 14 | CRUD for nodes, media, users, taxonomy, comments |
| Users | 12 | User management, roles, permissions |
| DevOps | 20 | DDEV/Lando, Drush, database, cron |
| Security Audit | 10 | Audits, scanning, permission checks |
| Migration | 17 | Plans, batch import, reconciliation between Drupal sites |
| AI | 4 | Content analysis, field mapping, planning |
| Module Dev | 12 | Scaffolding for modules, plugins, forms |
| Codebase | 12 | Local codebase index, hook search, unused module detection |
| Status | 4 | Status report, pending updates, health diagnostics |
| Exports | 4 | CSV/Excel inventories of content, users, media, taxonomy |
| Theme Analysis | 8 | Theme metadata, regions, block placements, Twig templates |
Example: Create a Node¶
result = await create_node("article", {
"title": "My First Article",
"body": {"value": "<p>Hello World</p>", "format": "basic_html"}
})
print(result["data"]["id"]) # UUID of created node