I am following this tutorial: https://www.youtube.com/watch?v=mJiLiUGh9r8&list=PLD--x9rY3ZL2UGnGGD13YF6NR-H92zogr&index=1
I would like to use the Directus mcp server on a Directus 11.9.3 instance on http://locahost:8056 installation that runs on Docker (following the installation command given on the homepage on Directu).
I did create a token in my personal account and enter it exactly there, where Brian tells us to in the video.
I tried a similar setup with a Directus 10.12 installation that I have running on DigitalOcen.
However, I can’t get either to work. My Claude config file looks like this:
{
"globalShortcut": "",
"mcpServers": {
"Directus_JVDS_local": {
"command": "npx",
"args": ["@directus/content-mcp@latest"],
"env": {
"DIRECTUS_URL": "http://localhost:8056/",
"DIRECTUS_TOKEN": "O2jFO4NJiunNcl14b0TIeP2q9URLnpXS",
"DIRECTUS_PROMPTS_COLLECTION_ENABLED": "true",
"DIRECTUS_PROMPTS_COLLECTION": "ai_prompts"
}
},
"Directus_JVDS_on_DigitalOcean": {
"command": "npx",
"args": ["@directus/content-mcp@latest"],
"env": {
"DIRECTUS_URL": "https://jvds.scores-catalog.org/",
"DIRECTUS_TOKEN": "UwFt0NuUbIKoXSd1vdSiLtbgovPBum87",
"DIRECTUS_PROMPTS_COLLECTION_ENABLED": "true",
"DIRECTUS_PROMPTS_COLLECTION": "ai_prompts"
}
}
}
}
And the log file I call via tail -n 20 -F ~/Library/Logs/Claude/mcp*.log look like this:
==> /Users/robertwildling/Library/Logs/Claude/mcp-server-Directus_JVDS_local.log <==
'/usr/bin',
'/usr/bin',
'/bin',
'/usr/sbin',
'/sbin',
[length]: 15
]
}
} %o
2025-07-22T15:17:18.495Z [Directus_JVDS_local] [info] Server started and connected successfully { metadata: undefined }
2025-07-22T15:17:18.507Z [Directus_JVDS_local] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0} { metadata: undefined }
npx: installed 126 in 9.977s
Unexpected token {
npx: installed 126 in 5.636s
Unexpected token {
2025-07-22T15:17:25.044Z [Directus_JVDS_local] [info] Server transport closed { metadata: undefined }
2025-07-22T15:17:25.044Z [Directus_JVDS_local] [info] Client transport closed { metadata: undefined }
2025-07-22T15:17:25.044Z [Directus_JVDS_local] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log. { metadata: undefined }
2025-07-22T15:17:25.044Z [Directus_JVDS_local] [error] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging) { metadata: { context: 'connection', stack: undefined } }
2025-07-22T15:17:25.045Z [Directus_JVDS_local] [info] Client transport closed { metadata: undefined }
==> /Users/robertwildling/Library/Logs/Claude/mcp-server-Directus_JVDS_on_DigitalOcean.log <==
'/usr/local/bin',
'/opt/homebrew/bin',
'/usr/bin',
'/usr/bin',
'/bin',
'/usr/sbin',
'/sbin',
[length]: 15
]
}
} %o
2025-07-22T15:17:18.496Z [Directus_JVDS_on_DigitalOcean] [info] Server started and connected successfully { metadata: undefined }
2025-07-22T15:17:18.510Z [Directus_JVDS_on_DigitalOcean] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0} { metadata: undefined }
npx: installed 126 in 5.702s
Unexpected token {
2025-07-22T15:17:25.167Z [Directus_JVDS_on_DigitalOcean] [info] Server transport closed { metadata: undefined }
2025-07-22T15:17:25.167Z [Directus_JVDS_on_DigitalOcean] [info] Client transport closed { metadata: undefined }
2025-07-22T15:17:25.167Z [Directus_JVDS_on_DigitalOcean] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log. { metadata: undefined }
2025-07-22T15:17:25.167Z [Directus_JVDS_on_DigitalOcean] [error] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging) { metadata: { context: 'connection', stack: undefined } }
2025-07-22T15:17:25.167Z [Directus_JVDS_on_DigitalOcean] [info] Client transport closed { metadata: undefined }
==> /Users/robertwildling/Library/Logs/Claude/mcp-server-directus.log <==
'/Users/robertwildling/.nvm/versions/node/v16.20.2/bin',
'/Users/robertwildling/.nvm/versions/node/v18.20.8/bin',
'/Users/robertwildling/.nvm/versions/node/v20.19.3/bin',
'/Users/robertwildling/.nvm/versions/node/v22.17.0/bin',
'/Users/robertwildling/.nvm/versions/node/v8.17.0/bin',
'/usr/local/bin',
'/opt/homebrew/bin',
'/usr/bin',
'/usr/bin',
'/bin',
'/usr/sbin',
'/sbin',
[length]: 15
]
}
} %o
2025-07-22T14:57:08.998Z [directus] [info] Server started and connected successfully { metadata: undefined }
2025-07-22T14:57:09.003Z [directus] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0} { metadata: undefined }
npx: installed 126 in 6.895s
Unexpected token {
==> /Users/robertwildling/Library/Logs/Claude/mcp.log <==
'/usr/bin',
'/bin',
'/usr/sbin',
'/sbin',
[length]: 15
]
}
2025-07-22T15:17:18.496Z [info] [Directus_JVDS_on_DigitalOcean] Server started and connected successfully
2025-07-22T15:17:18.507Z [info] [Directus_JVDS_local] Message from client: {"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
2025-07-22T15:17:18.510Z [info] [Directus_JVDS_on_DigitalOcean] Message from client: {"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
2025-07-22T15:17:25.044Z [info] [Directus_JVDS_local] Server transport closed
2025-07-22T15:17:25.044Z [info] [Directus_JVDS_local] Client transport closed
2025-07-22T15:17:25.044Z [info] [Directus_JVDS_local] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log.
2025-07-22T15:17:25.044Z [error] [Directus_JVDS_local] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging)
2025-07-22T15:17:25.045Z [info] [Directus_JVDS_local] Client transport closed
2025-07-22T15:17:25.167Z [info] [Directus_JVDS_on_DigitalOcean] Server transport closed
2025-07-22T15:17:25.167Z [info] [Directus_JVDS_on_DigitalOcean] Client transport closed
2025-07-22T15:17:25.167Z [info] [Directus_JVDS_on_DigitalOcean] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log.
2025-07-22T15:17:25.167Z [error] [Directus_JVDS_on_DigitalOcean] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging)
2025-07-22T15:17:25.167Z [info] [Directus_JVDS_on_DigitalOcean] Client transport closed
I restarted Claude 3 times already.
Any idea, what I am doing wrong? Does the Directus mcp have problems with installations that run on Docker? Does this mcp even work on a v10 Directus?