MCP server for Directus 12 — items, collections, files, flows, users, and schema tools
MCPpedia last refreshed this data
io.github.staminna/directus-mcp-server is an MCP server that MCP server for Directus 12 — items, collections, files, flows, users, and schema tools. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 89/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"directus": {
"env": {
"DIRECTUS_URL": "http://localhost:8065",
"DIRECTUS_TOKEN": "your-directus-token-here"
},
"args": [
"-y",
"@staminna/directus-mcp-server"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP server for Directus 12 — items, collections, files, flows, users, and schema tools
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y '@staminna/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 @staminna/directus-mcp-server against OSV.dev.
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 other
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Build, run and debug Make automation scenarios.
Unofficial KakaoTalk CLI and native MCP server for macOS — read, watch, and send messages via Accessibility automation.
专门为 agent 打造的 agent 搜索工具,具备多语言搜索能力,覆盖中文/英文/学术/代码/购物/金融/新闻/百科。
MCP Security Weekly
Get CVE alerts and security updates for io.github.staminna/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.
Turn Directus 12 into an AI-operated backend. Your agent models the data, ships the API, imports your records, wires the automations and debugs the permissions. You just describe the business. Reduce costs
| Statements | Branches | Functions | Lines |
|---|---|---|---|
Coverage badges are generated from coverage/coverage-summary.json by npm run badges (no external service required). Run npm run test:coverage first.
Directus already gives you a production backend for free: a SQL database you own, instant REST + GraphQL APIs, auth, roles and permissions, file storage, Flows (automation) and a no-code admin app for your team. What it doesn't give you is speed of setup. Modelling collections, relations, permissions and flows still takes clicks and hours.
This MCP server lets Claude, Cursor or any MCP agent run Directus for you. 34 typed tools cover collections, fields, relations, items, bulk ops, CSV/JSON import, schema snapshot/diff/apply, flows, users, files and access diagnostics. Each one carries read/write safety annotations, and deletes and schema applies require explicit confirmation.
What you can stand up in an afternoon:
Then move it between environments with get_schema_snapshot → diff_schema → apply_schema.
products collection with name, price, stock and a many-to-one category."Requires Node.js ≥ 26 · works with Directus 12.0 – 12.6 (compatibility notes).
One config works for every MCP client:
{
"mcpServers": {
"directus": {
"command": "npx",
"args": ["-y", "@staminna/directus-mcp-server"],
"env": {
"DIRECTUS_URL": "https://your-directus.example.com",
"DIRECTUS_TOKEN": "your-static-token"
}
}
}
}
| Client | Where it goes |
|---|---|
| Claude Code | `claude mcp add directus -e DIRECTUS_URL=https://… -e DIRECTUS_TOKEN=… -- npx -y @staminna/directus- |