MCP Server for Drupal
TS based companion MCP server for the Drupal MCP module that works with the STDIO transport.
Overview
MCP Server for Drupal is a TypeScript-based Model Context Protocol (MCP) server designed to integrate with Drupal, enabling communication through a standardized framework.
To use this server, install the required dependencies with bun install, build the server using bun run build, and configure it with the Claude Desktop application by setting up the server configuration in the appropriate config file.
- Supports all resources defined by the Drupal API during initialization. - Integrates all tools defined by the Drupal API. - Includes all prompts specified by the Drupal API. - Debugging support through MCP Inspector tools.
- Facilitating communication between client applications and Drupal backend.
- Enabling seamless integration of third-party tools and services with Drupal using MCP protocol.
- Supporting developers in creating interactive applications that rely on Drupal's rich API.
Add to your AI client
Use these steps to connect MCP Server for Drupal in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-drupal-omedia": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-drupal-omedia"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-drupal-omedia": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-drupal-omedia"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-drupal-omedia": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-drupal-omedia"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-drupal-omedia": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-drupal-omedia"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-drupal-omedia": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-drupal-omedia"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-drupal-omedia": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-drupal-omedia"
]
}
}
}FAQ
What programming language is used?
The server is built using TypeScript.
How do I debug my MCP server?
You can use the MCP Inspector tool for browser-based debugging.
Is there a specific platform for installation?
Installation instructions are provided for both MacOS and Windows environments.