Drupal MCP Server

A Model Context Protocol server

Local serverstdioTypeScript

What is the Drupal MCP server?

If you already use Drupal, the drupal mcp server is the piece that lets your assistant work with it directly. A Model Context Protocol server.

What the server does

The STDIO Binary is available through multiple distribution channels to accommodate various environments:

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • DRUPAL_AUTH_TOKEN — The authentication token
  • DRUPAL_AUTH_USER — The username for authentication
  • DRUPAL_AUTH_PASSWORD — The password for authentication
  • Debugging — Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP

Credentials and setup notes

Configuration is passed through the environment: DRUPAL_AUTH_TOKEN, DRUPAL_BASE_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Where it fits

This sits in the planning and project tracking group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Drupal's toolset — DRUPAL_AUTH_TOKEN, DRUPAL_AUTH_USER, DRUPAL_AUTH_PASSWORD and 1 more — is a fair guide to whether it matches your workflow. It is maintained by Omedia; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Drupal's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
DRUPAL_AUTH_TOKENThe authentication token.
DRUPAL_AUTH_USERThe username for authentication.
DRUPAL_AUTH_PASSWORDThe password for authentication.
DebuggingSince MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which is available as a deno task:

How to install the Drupal MCP server

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

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
DRUPAL_AUTH_TOKENCredential the server authenticates with.Yes
DRUPAL_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Drupal to DRUPAL AUTH TOKEN.
  • Use Drupal to DRUPAL AUTH USER.
  • Use Drupal to DRUPAL AUTH PASSWORD.

Frequently asked questions

It connects Drupal to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (DRUPAL_AUTH_TOKEN, DRUPAL_AUTH_USER, DRUPAL_AUTH_PASSWORD, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Drupal directly.