directus-mcp-server
Model Context Protocol server for Directus
Documentation
> [!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 ๐
Directus Model Context Protocol (MCP) Server
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 :)
Installation
This MCP server is built to work with NodeJS v22.12 or newer.
Global Installation (Recommended)
`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": "",
"DIRECTUS_TOKEN": ""
}
}
}
}Local / Dev Installation
1. Clone the repo
2. `pnpm install && pnpm build` to build the server
3. Configure Claude AI like above, but pointing it to the `dist` file instead:
{
"mcpServers": {
"directus": {
"command": "node",
"args": ["/path/to/directus-mcp-server/dist/index.js"]
}
}
}Tools
Read Items
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 from
- `fields`: (optional) Array of field names to return
- `sort`: (optional) Field to sort by (prefix with `-` for descending order)
- `limit`: (optional) Maximum number of items to return
Example:
{
"collection": "articles",
"fields": ["id", "title", "date_published"],
"sort": "-date_published",
"limit": 10
}Read Current User
Get information about the current user. Effectively the `/users/me` endpoint.
Read Collections
Return what collections/fields are available in the system. Use this tool first to discover available collections before using the `read-items` tool.
License
MIT
Frequently asked questions
What is directus-mcp-server?
directus-mcp-server is Model Context Protocol server for Directus
How do I install directus-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is directus-mcp-server open source?
Yes โ it is hosted on GitHub at https://github.com/rijkvanzanten/directus-mcp-server and has 28 stars.
Related MCP tools
๐ Cherry Studio is a desktop client that supports for multiple LLM providers. Built for the Model Context Protocol to enhance AI capabilities.
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini...
FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, ...
Composio equips your AI agents & LLMs with 100+ high-quality integrations via function calling for the Model Context Protocol. Enhance AI assistants with powerf
๐ฆ Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Lan...
AI Agents & MCPs & AI Workflow Automation โข (~400 MCP servers for AI agents) โข AI Automation / AI Agent with MCPs โข AI Workflows & AI Agents โข MCPs for AI Ag...
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP