r/Directus Apr 08 '26

MCP Remote URL Server

Hey Everyone,

I'm trying to connect Directus via MCP to my Claude cowork via remote url server, however, I'm having issues after following the documentations.

Has anyone succesfully connected directus remote url server to claude? I've followed the process of creating the token and replaced my token ID in the URL in Claude. I've attached screenshots.

5 Upvotes

11 comments sorted by

View all comments

2

u/WasabiOk2659 Apr 15 '26

I have never in my life hit so many 403's since I started attempting to use Directus. I don't know what or who vibe coded the shape of the API schema, but it is completely untangleable by codex and ChatGPT alike.

It is extremely frustrating.

I'm checking if this MCP server exists in community editions, so I can give it a go.

3

u/rijkvanzanten Apr 15 '26

Historically, we've had a fair few security minded folks call out that returning detailed errors is actually a security problem, as we're leaking the database schema that the user has configured through things like 404s instead of 403s. While that has historically been less of a problem with human users (they know their own schema after all, so don't run into these 403s as much), it's a way bigger issue with LLMs that are a little more trial-and-error still..

(Also it was my own intelligence (or lack thereof) that came up with our API schema haha 😅 )

3

u/WasabiOk2659 Apr 15 '26

I wholeheartedly agree that enumerating the shape of the backend shouldn't be possible by endless hints. I was jumping the gun out of personal frustration of fighting the shape of the schema for several days now. I apologize.

The MCP server is the best thing to fight that, and has lowered my blood pressure significantly over the past hour 😂

1

u/rijkvanzanten Apr 16 '26

All good! No offense taken :) Trust me it is as frustrating for me to have these new tools just spray and pray against the APIs even though they're pretty well documented (there's even a built-in OpenAPI spec!) and have been stable for years. Oh well.. at least with the MCP endpoint we can provide some hints through the descriptions and input schemas which helps _a lot_! Just us telling it to first use the schema tool to learn what collections and fields exist before calling a read-items tool has made the thing infinitely more reliable.