Directus MCP Server
Allows AI tools to connect to and use a Directus API, providing tools to read items from collections, read the current user, and discover available collections and fields.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Directus MCP Serverread the 10 most recent articles sorted by date published"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 onhttps://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": "<your Directus instance URL>",
"DIRECTUS_TOKEN": "<your Directus user token>"
}
}
}
}Local / Dev Installation
Clone the repo
pnpm install && pnpm buildto build the serverConfigure Claude AI like above, but pointing it to the
distfile instead:
{
"mcpServers": {
"directus": {
"command": "node",
"args": ["/path/to/directus-mcp-server/dist/index.js"]
}
}
}Related MCP server: Directus MCP Server
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
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI agents to 1000+ apps with managed authentication and tool-calling.
Connects AI assistants to TrackingTime for querying time entries, projects, tasks, customers, and team data using natural language.
- mcpOAuthcom.vibgrate
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Verified, pay-per-use API tools for AI agents through one authenticated connection.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that allows AI tools to connect to and interact with your Directus API, enabling automated access to collections, items, and user data.17 npm27MIT
- FlicenseBqualityFmaintenanceA Node.js server that enables AI Clients to interact with the Directus CMS API through the Model Context Protocol, allowing for management of collections, items, files, users, and system information.1824-
- AlicenseNot gradedqualityDmaintenanceAn extension that implements the Model Context Protocol for Directus, enabling AI tools and LLMs to interact with Directus content through natural language for content editing, data analysis, and asset management.8 npm8MIT
- AlicenseBqualityBmaintenanceEnables comprehensive interaction with Directus CMS including collection management, file operations, flow automation, user management, and schema analysis through natural language commands.34300 npmMIT