Hi all,
I am trying to connect to Claude Desktop but Claude > Settings > Developer says "mcp-server-drupal failed, Error:server disconnected"
Any ideas please ?
I am using Windows WSL2 / Docker Desktop / DDEV / Ubuntu terminal
I am using Basic Auth at /admin/config/mcp and I am following the example claude_desktop_config.json at https://drupalmcp.io/en/mcp-server/connect-to-llms/
my claude_desktop_config.json =
{
"mcpServers": {
"mcp-server-drupal": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DRUPAL_AUTH_USER",
"-e",
"DRUPAL_AUTH_PASSWORD",
"--network=host",
"ghcr.io/omedia/mcp-server-drupal:latest",
"--drupal-url=https://d11-test.ddev.site",
"--unsafe-net"
],
"env": {
"DRUPAL_AUTH_USER": "admin",
"DRUPAL_AUTH_PASSWORD": "admin"
}
}
},
"globalShortcut": ""
}
Claude log files = https://pastebin.com/aHqzPFaE
An ideas please?

Comments
Comment #2
juc1 commentedComment #3
keiserjb commentedI've spent all day on this with the same problem. Did you ever find a solution?
Comment #4
gagosha commentedHey,
The issue is that on Windows WSL2, the Docker bridge container runs in a separate network from DDEV, so it can't reach d11-test.ddev.site. Your logs confirm this: "Failed to connect to d11-test.ddev.site port 443."
On Windows, you can use npx to connect to the server instead of Docker.
For example:
I can't check this as I don't have access to a Windows machine, but hopefully it works.
If the npx approach doesn't work, you can also try enabling mirrored networking in WSL2. Add this to C:\Users\\.wslconfig:
Then run wsl --shutdown in PowerShell and restart WSL. This should make your DDEV site accessible from Docker containers.
Comment #5
gagosha commentedComment #7
keiserjb commentedI will try this and report back, thank you.