Directus MCP x Cursor: Unable to connect

Hi everyone,

I am developing NextJS Application with Directus database. I want to connect my Cursor with Directus MCP following this guide: Mcp | Directus Docs

However, the connection keeps in red status “No tools or prompts”. I have checked my node ver is up to date also.

image

Using the same structure as the guide for adding the MCP server but still hit this error. The URL and API key is the same as my NextJS env.local. so I do not think it is the problem.

I am on Directus Cloud anyway. Appreciate with any help :folded_hands: Thank you

Please share the content of your mcp.json and the MCP logs output. And just as sidenote, when testing I just realized, that Auto mode in Cursor can't use at least the directus mcp tools anymore. I don't get any error message tho, and the MCP server is showing up running in the settings, so I guess that's not what you are experiencing. It does work tho on gpt-4.1, even as free user.

Hi Nik, thank you for your response! My content is: { "mcpServers": { "directus": { "command": "npx", "args": ["@directus/content-mcp@latest"], "env": { "DIRECTUS_URL": "MY PROJECT URL", "DIRECTUS_ACCESS_TOKEN": "MY TOKEN" } For the logs output, I also try to run terminal but it returns: > nextn@0.1.0 mcp > directus-mcp-server No prompts collection configured, skipping prompt fetching

1 Answer

1

According to the docs, the correct env var is DIRECTUS_TOKEN instead of DIRECTUS_ACCESS_TOKEN

You can alternatively also use DIRECTUS_USER_EMAIL and DIRECTUS_USER_PASSWORD

Let me know if this was the only issue.

Hi Nik, I think the problem lies in the "args". I tried to use the "args": ["@directus/content-mcp@latest"] from the Directus docs. But my AI told me look for its in npm website, the doc shows a different "args". "args": ["directus-mcp-server"] I tried this and it works. For the link to npm website: https://www.npmjs.com/package/directus-mcp-server Thank you so much, Nik :)

Great it's working now. Happy coding!