A Model Context Protocol server
This is a TypeScript-based MCP server for Drupal.
- All the resources defined by the Drupal API during the initialization phase
- All the tools defined by the Drupal API during the initialization phase
- All the prompts defined by the Drupal API during the initialization phase
Install dependencies:
bun install
Build the server:
bun run build
For development with auto-rebuild:
bun run dev
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-server-drupal": {
"command": "__BINARY_PATH__",
"args": ["--drupalBaseUrl", "__DRUPAL_BASE_URL__"],
"env": {}
}
}
}
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
bun run inspector
The Inspector will provide a URL to access debugging tools in your browser.