Back to MCP Catalog

Drupal MCP Server

Content Management SystemsTypeScript
Connect to Drupal CMS via Model Context Protocol

The Drupal MCP Server provides a bridge between AI assistants and Drupal content management systems. It enables AI models to access Drupal resources, templates, and execute tools through the Model Context Protocol (MCP) using the STDIO transport. This server complements the Drupal MCP module, allowing for seamless integration with AI assistants.

Overview

The Drupal MCP Server is a TypeScript-based companion server that works with the Drupal MCP module. It enables AI assistants to interact with Drupal content management systems through the Model Context Protocol (MCP) using the STDIO transport.

Installation Options

The Drupal MCP Server can be installed through multiple distribution channels:

Docker Container (Recommended)

The easiest way to use the server is with Docker:

{
  "mcpServers": {
    "mcp-server-drupal": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/omedia/mcp-server-drupal",
        "--drupal-url=YOUR_DRUPAL_BASE_URL"
      ],
      "env": {}
    }
  }
}

Replace YOUR_DRUPAL_BASE_URL with the URL of your Drupal installation.

Compiled Binary

You can download pre-compiled binaries from the GitHub releases page.

{
  "mcpServers": {
    "mcp-server-drupal": {
      "command": "PATH_TO_BINARY/mcp-server-drupal",
      "args": [
        "--drupal-url=YOUR_DRUPAL_BASE_URL"
      ],
      "env": {}
    }
  }
}

JSR Package

The server is also available as a JSR package:

{
  "mcpServers": {
    "mcp-server-drupal": {
      "command": "deno",
      "args": [
        "run",
        "-A",
        "jsr:@omedia/mcp-server-drupal",
        "--drupal-url=YOUR_DRUPAL_BASE_URL"
      ],
      "env": {}
    }
  }
}

Authentication

The server supports authentication via environment variables. You can use either an auth token or basic authentication with username and password:

Token Authentication

{
  "mcpServers": {
    "mcp-server-drupal": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/omedia/mcp-server-drupal",
        "--drupal-url=YOUR_DRUPAL_BASE_URL"
      ],
      "env": {
        "DRUPAL_AUTH_TOKEN": "YOUR_AUTH_TOKEN"
      }
    }
  }
}

Basic Authentication

{
  "mcpServers": {
    "mcp-server-drupal": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/omedia/mcp-server-drupal",
        "--drupal-url=YOUR_DRUPAL_BASE_URL"
      ],
      "env": {
        "DRUPAL_AUTH_USER": "YOUR_USERNAME",
        "DRUPAL_AUTH_PASSWORD": "YOUR_PASSWORD"
      }
    }
  }
}

Note: Make sure to enable authentication in the Drupal MCP module settings page. If both token and username/password are provided, the token will take precedence.

Capabilities

The Drupal MCP Server exposes the following capabilities:

  • Resources: Access to templates and content from your Drupal site
  • Tools: Execute operations on your Drupal site

The specific instruments available are defined by the Drupal API during the initialization phase.

Additional Resources

For more detailed documentation, visit drupalmcp.io.

Related MCPs

Ghost CMS Integration
Content Management SystemsTypeScript

Interact with and manage your Ghost blog through LLM interfaces

Contentful Management API
Content Management SystemsTypeScript

Access and manage Contentful content through Claude AI

DevHub CMS
Content Management SystemsPython

Manage content in DevHub CMS through LLM integration

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.