This project is not covered by Drupal’s security advisory policy.
Let AI assistants work with your Drupal site, safely.
MCP Gateway turns a Drupal 11 site into a Model Context Protocol (MCP) server. Any MCP compatible AI assistant or LLM agent can search, read and draft content through a set of tools, and every tool call runs as a real Drupal user, so roles, node access and field access all apply exactly as they do in the browser.
Why it matters
- The AI is never more powerful than the person using it. Each token belongs to one Drupal user, and the gateway uses Drupal's own authentication and access systems.
- AI drafts, humans publish. create_draft always saves content unpublished; update_node saves a new revision with a log message and never changes publication status.
- Every change has a receipt, and every receipt can be undone. undo_change restores the previous revision and refuses if anyone edited the content since.
- Everything is audited. Each call is logged with user, tool, arguments, outcome and duration (Reports, MCP audit log).
- Admins stay in control. Tools can be switched off site wide, and each tool has its own permission per role.
Features
- MCP Streamable HTTP endpoint (JSON RPC 2.0), protocol versions 2025-11-25, 2025-06-18 and 2025-03-26
- OAuth 2.1 authorization server with PKCE, dynamic client registration and a Drupal consent screen, plus personal tokens (only SHA 256 hashes stored)
- Tools: site_info, list_content_types, search_content, get_node, create_draft, update_node, undo_change, list_changes
- Tools are plugins discovered by a PHP attribute, so any module can add its own
- Kernel, functional and unit tests with CI
Requirements
Drupal 11.1 or later, PHP 8.3 or later. Depends only on core Node and User.
Installation
- Install as you would normally install a contributed Drupal module.
- Grant "Connect AI assistants via MCP" plus one permission per tool at People, Permissions.
- Configure at Configuration, Web services, MCP Gateway. Point your MCP client at
/mcp.
Source mirror and full documentation: github.com/jeetparekh16/drupal-mcp-server
Project information
- Project categories: Artificial Intelligence (AI), Developer tools, Integrations
- Created by jeetparekh80@gmail.com on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
