Drupal MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Log level (debug|info|warn|error). | info |
| MCP_TOKEN | Yes | MCP Server token. Required unless token authentication/RBAC is disabled in config.yaml for local use. | |
| DRUSH_PATH | No | Optional Drush path override. | |
| DRUPAL_ROOT | No | Optional Drupal root path override. | |
| ENVIRONMENT | No | Environment name. | production |
| AUDIT_LOG_PATH | No | Audit log path. | ./logs/audit.log |
| RATE_LIMIT_RPM | No | Rate limit in requests per minute. | 60 |
| CONFIG_SYNC_DIR | No | Optional config sync directory override. | |
| MAX_RESPONSE_SIZE | No | Maximum response size in bytes. | 1048576 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| drupal_list_sitesA | List all discovered DDEV Drupal sites |
| drupal_refresh_sitesC | Re-discover DDEV Drupal sites |
| drupal_project_infoC | Get Drupal project info: core version, enabled modules/themes, environment |
| drupal_search_codeB | Search custom code using ripgrep |
| drupal_read_fileB | Read a file from the Drupal project (with secret/PII masking) |
| drupal_list_custom_componentsC | List custom modules and themes with info.yml details |
| drupal_config_getC | Get Drupal configuration from sync directory or database |
| drupal_db_schemaB | Inspect database schema: tables, columns, indexes, FK, PII tags |
| drupal_drushB | Execute a drush command (safe_mode enforces allowlist) |
| drupal_entity_schema_summaryB | Get content model summary: content types, fields, paragraphs, vocabularies |
| drupal_view_exportB | List views or export a specific view configuration |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Most tools have clearly distinct targets: config, DB schema, entity schema, views, sites, project info, code search, file read, and custom components are separate concerns. The broad drupal_drush escape hatch could subsume several specialized tools, but the descriptions and safe_mode allowlist make the intended split reasonably clear.
All tools share the drupal_ prefix and snake_case, which is good, but the verb/noun ordering is mixed: verb-first names like drupal_list_sites and drupal_search_code coexist with noun-first names like drupal_config_get and drupal_view_export. It remains readable, but the pattern is only partially predictable.
Eleven tools is well within the appropriate range for a Drupal inspection and management server. Each tool covers a distinct area—config, database, entities, views, sites, project metadata, code, files, and components—without obvious padding.
The surface provides strong read/inspection coverage across Drupal configuration, schema, content model, code, files, and sites, and drush can fill in many operational actions. Some gaps remain, such as dedicated write/update operations or direct log/query tools, but they are mostly workable via drush.