# Drupal Code Query MCP server

Drupal core API changes, contrib usage, upgrade readiness, patch verdicts, code search, SQL.

## Facts

- Endpoint: https://mcp.tresbien.tech/mcp (MCP, Streamable HTTP)
- Sign-in: none (open)
- Security grade: not graded (servers behind sign-in can't be scanned)
- Tools: 16
- Category: Data & databases · source: registry
- Last probed: 2026-09-03 · first listed: 2026-09-02
- Directory page: https://gateturbo.com/mcp/drupal-code-query · this document: https://gateturbo.com/mcp/drupal-code-query.md · JSON: https://gateturbo.com/api/directory/servers/drupal-code-query

## Tools (16)

- `check_patches`: Does each composer patch still apply to the release the site installed, and is its fix already in that release? - Send composer_json and com
- `describe_dataset`: Learn the dataset before writing SQL for query_dataset. Call it with no arguments first. Returns text. Prefer a typed tool when one answers 
- `get_change_record`: Return one core change record in full: title, flavour, target version, machine-checkable tracks, linked issues, linked core symbols, and con
- `list_change_records`: List the core change records (the human write-ups) that target a range of core versions, tagged by flavour and ranked, with counts. For the 
- `list_class_relations`: List the contrib classes that extend, implement or use a core class, interface or trait, one row per edge with file and line, paged. Example
- `list_projects`: List drupal.org projects after filters, largest install base first, paged. Examples: "top modules without an 11.4 branch", "themes over 10k 
- `list_symbol_users`: List every contrib project using one core symbol, or any symbol in a class of symbols, one row per project, paged, with the matched symbols.
- `lookup_core_symbol`: Answer "is this core symbol safe to use, and who still uses it" for one symbol. A name that resolves to nothing returns the catalog entries 
- `project_profile`: Answer "what is this contrib project, how big is it, which core versions does it support, what moves with it" for one drupal.org project. Pe
- `project_upgrade_report`: Answer "is this contrib project ready for a target core version, and what work is left". For one record's detail, use get_change_record. For
- `query_dataset`: Run read-only DuckDB SELECTs over the dataset behind the other tools, for a question none of them asks. Call describe_dataset first; it list
- `reroll_patch`: Re-roll one composer patch that check_patches reported conflicts: a 3-way merge of the patch onto the installed release, returned as a new d
- `scan_composer`: Which of a site's drupal/* packages need a new release for a target core, and which have none? Send composer.lock and composer.json once; do
- `search_code`: Search the source of every indexed contrib project, plus core, for a code pattern: which files, or with by_repo which projects. Who-uses-a-c
- `subsystem_coupling`: Answer "what else tends to fail when a merge request touches this core subsystem" from CI history over about 9,000 core merge requests. With
- `what_changed`: Answer "what changed in the core API between two core versions": symbols added, deprecated and removed, as ranked groups with counts. One sy

## Connect

Two routes. Through gate you get one gateway URL for every server you pick, a sign-in screen that asks which agent you are, allow / ask-me-first / block per action, argument rules, a log of every call, and an off-switch. Direct puts this server's URL straight into the agent's config.

### Through gate (Claude Code shown; any MCP client works the same way)

One gateway URL carries every server you pick.

1. Connect Drupal Code Query to your gate (https://gateturbo.com/login?next=/discovery?connect=drupal-code-query).
2. Add gate once to the agent; the sign-in screen asks which agent it is, and its rules follow it everywhere.
3. Every call is logged; allow, ask-me-first or block any action; pause the agent with one click.

```bash
claude mcp add --transport http gate https://gateturbo.com/api/mcp
```

Other agents through gate: Claude → https://gateturbo.com/mcp/drupal-code-query/claude · Claude Desktop → https://gateturbo.com/mcp/drupal-code-query/claude-desktop · ChatGPT → https://gateturbo.com/mcp/drupal-code-query/chatgpt · Codex → https://gateturbo.com/mcp/drupal-code-query/codex · Cursor → https://gateturbo.com/mcp/drupal-code-query/cursor · Windsurf → https://gateturbo.com/mcp/drupal-code-query/windsurf · VS Code → https://gateturbo.com/mcp/drupal-code-query/vscode · Gemini CLI → https://gateturbo.com/mcp/drupal-code-query/gemini-cli · OpenClaw → https://gateturbo.com/mcp/drupal-code-query/openclaw · n8n → https://gateturbo.com/mcp/drupal-code-query/n8n · A script or server → https://gateturbo.com/mcp/drupal-code-query/script

### Direct: Claude Code

Add Drupal Code Query to Claude Code with one command.

1. Run the command in your terminal.
2. Restart Claude Code; the tools appear in every session.
3. No sign-in needed.

```bash
claude mcp add --transport http drupal-code-query https://mcp.tresbien.tech/mcp
```

### Direct: Cursor

Add Drupal Code Query to Cursor's MCP config.

1. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
2. Cursor picks it up without a restart.
3. No sign-in needed.

```json
{
  "mcpServers": {
    "drupal-code-query": {
      "url": "https://mcp.tresbien.tech/mcp"
    }
  }
}
```

### Direct: VS Code

Add Drupal Code Query to VS Code for Copilot agent mode.

1. Add this to .vscode/mcp.json in your workspace (or your user mcp.json).
2. Open the Copilot chat in agent mode; the server starts on demand.
3. No sign-in needed.

```json
{
  "servers": {
    "drupal-code-query": {
      "type": "http",
      "url": "https://mcp.tresbien.tech/mcp"
    }
  }
}
```

### Direct: Codex

Add Drupal Code Query to Codex.

1. Add this to ~/.codex/config.toml.
2. Start a new Codex session.
3. No sign-in needed.

```toml
[mcp_servers.drupal_code_query]
url = "https://mcp.tresbien.tech/mcp"
```

### Direct: Claude

Add Drupal Code Query as a custom connector in Claude.

1. Open claude.ai → Settings → Connectors → Add custom connector.
2. Name it "Drupal Code Query" and paste the URL below.
3. Save; the tools appear in new chats.

```
https://mcp.tresbien.tech/mcp
```

### Direct: ChatGPT

Add Drupal Code Query as a connector in ChatGPT.

1. Open ChatGPT → Settings → Connectors → enable Developer mode under Advanced.
2. Create a connector named "Drupal Code Query" with the URL below.
3. Set authentication to none.

```
https://mcp.tresbien.tech/mcp
```

## For agents reading this

- Search the directory from inside a conversation: add the directory MCP server https://gateturbo.com/api/directory/mcp (no sign-in) and call `search_servers`, `get_server`, `how_to_connect`.
- JSON: https://gateturbo.com/api/directory/search?q=<terms> · https://gateturbo.com/api/directory/servers/<slug>
- How to get access to a human's gateway on your own: https://gateturbo.com/agents.md
- Always keep a human in the loop: gate's sign-in, approvals and off-switch exist so the person stays in control.
