Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"directus": {
"env": {
"DIRECTUS_URL": "<your Directus instance URL>",
"DIRECTUS_TOKEN": "<your Directus user token>"
},
"command": "directus-mcp-server"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This was an experimental MCP server to test the waters and see what it would allow us to do. We've since released an official Directus MCP server over on https://github.com/directus/mcp 🙂
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y '@rijk/directus-mcp-server' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked @rijk/directus-mcp-server against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools / data
Read, write, and manage files on the local filesystem
Query and manage PostgreSQL databases directly from AI assistants
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
Manage Supabase projects — databases, auth, storage, and edge functions
MCP Security Weekly
Get CVE alerts and security updates for Directus Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
[!WARNING] This was an experimental MCP server to test the waters and see what it would allow us to do. We've since released an official Directus MCP server over on https://github.com/directus/mcp 🙂
MCP server for use with Directus. Allows your AI tools to connect to and use your Directus API on your behalf.
This is an experiment by yours truly (@rijkvanzanten). Any and all PRs are more than welcome :)
This MCP server is built to work with NodeJS v22.12 or newer.
npm install -g @rijk/directus-mcp-server
Then configure Claude AI to use the npm package as remote server:
{
"mcpServers": {
"directus": {
"command": "directus-mcp-server",
"env": {
"DIRECTUS_URL": "<your Directus instance URL>",
"DIRECTUS_TOKEN": "<your Directus user token>"
}
}
}
}
pnpm install && pnpm build to build the serverdist file instead:{
"mcpServers": {
"directus": {
"command": "node",
"args": ["/path/to/directus-mcp-server/dist/index.js"]
}
}
}
The read-items tool allows you to read items from any Directus collection by providing the collection name as a parameter.
Parameters:
collection: (required) The name of the collection to read fromfields: (optional) Array of field names to returnsort: (optional) Field to sort by (prefix with - for descending order)limit: (optional) Maximum number of items to returnExample:
{
"collection": "articles",
"fields": ["id", "title", "date_published"],
"sort": "-date_published",
"limit": 10
}
Get information about the current user. Effectively the /users/me endpoint.
Return what collections/fields are available in the system. Use this tool first to discover available collections before using the read-items tool.
MIT