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": "<your Directus instance URL>",
"DIRECTUS_TOKEN": "<your Directus user token>"
}
}
}
}
Local / Dev Installation
- Clone the repo
pnpm install && pnpm build
to build the server- 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 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 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
Directus MCP Server
Project Details
- rijkvanzanten/directus-mcp-server
- @rijk/directus-mcp-server
- MIT License
- Last Updated: 4/16/2025
Recomended MCP Servers
A server implementation for Wikidata API using the Model Context Protocol (MCP).
This repository contains the source code for a confluence context server, it provides prompts that can be used...
Official Vectorize MCP Server
Microsoft Azure Data Lake Storage MCP Server
A model context protocol implementation granting LLMs access to make database queries and learn about supabase types.
An MCP server based on OSSInsight.io, providing data analysis for GitHub individuals and repositories, as well as in-depth...
MCP server provides feishu related operations
A powerful Model Context Protocol (MCP) server that helps refine AI-generated content to sound more natural and human-like....
Model Context Protocol server for managing, storing, and providing prompts and prompt templates for LLM interactions.
AI-powered local MCP server for terminal commands, surgical file editing, process management, and intelligent codebase exploration. FastMCP-powered, file...
A Model Context Protocol (MCP) server to provide git tools for LLM Agents
A Model Context Protocol (MCP) server that provides tools to interact with LinkedIn's Feeds and Job API.