Scan your whole stack
From OX Research Newsroom
Latest version: v12.7.0
io.github.staminna/directus-mcp-server was last scanned on 26 Nov 2026 at version 12.7.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 12.7.0 LATEST | 26 Nov 2026 | No rules fired |
| 12.6.0 | 8 Nov 2026 | No rules fired |
| 12.4.0 | 30 Sep 2026 | No rules fired |
| 12.3.2 | 21 Aug 2026 | Not shown |
| 12.3.1 | 21 Aug 2026 | Not shown |
Findings for v12.7.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 12.7.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
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-mcp-server |
| Claude Desktop | claude_desktop_config.json (Settings → Developer → Edit Config) |
| Cursor | ~/.cursor/mcp.json or .cursor/mcp.json in the project |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| VS Code / Cline / others | the client's MCP config, using the same mcpServers block |
Restart the client after editing. Other ways to run it:
"command": "node", "args": ["/path/to/mcp-server-claude/dist/index.js"] (after npm install && npm run build)"command": "docker", "args": ["run", "-i", "--rm", "-e", "DIRECTUS_URL", "-e", "DIRECTUS_TOKEN", "directus-mcp"] (after docker build -t directus-mcp .)"Create a products catalog: products (name, slug, price, stock, images) with a M2O category and M2M tags."
"Import customers.csv into the customers collection — dry run first."
"Create a flow that runs when an order is created and posts it to my webhook."
"Why can't the Public role read articles? Diagnose it."
"Snapshot the schema of products and categories so I can apply it to production."
"Show me all orders from this week over 100 €, newest first."
| Tool | Description |
|---|---|
list_collections |
List all collections; folders and inactive collections (Directus 12.4) are marked |
get_collection_schema |
Get schema for a specific collection |
get_collection_items |
Get items from a collection with filtering; search also matches related fields on m2m junctions (Directus 12.6.1) |
create_collection |
Create a new collection |
delete_collection |
Delete a collection (requires confirm) |
create_item |
Create a new item in a collection |
update_item |
Update an existing item, optionally into a draft version |
delete_items |
Delete items by ids or by query (see note below) |
bulk_operations |
Execute bulk create, update, delete |
| Tool | Description |
|---|---|
create_field |
Create a new field in a collection |
update_field |
Update an existing field |
delete_field |
Delete a field from a collection |
create_relationship |
Create relationships (O2O, O2M, M2O, M2M, M2A) |
analyze_collection_schema |
Analyze schema with relationship mapping |
validate_collection_schema |
Validate schema and relationships |
analyze_relationships |
Analyze relationships across collections |
get_schema_snapshot |
Read a full or partial snapshot of the data model |
diff_schema |
Compare a snapshot against the live schema (merge or mirror). Directus drops request bodies over ~96 KB, so pass a partial snapshot from get_schema_snapshot with include_collections on any sizeable data model — see DIRECTUS_V12_BREAKING_CHANGES.md |
apply_schema |
Apply a diff (requires confirm) |
| Tool | Description |
|---|---|
get_flows |
Get all flows, optionally by folder (Directus 12.4) |
get_flow |
Get a specific flow by ID |
create_flow |
Create a new automation flow, optionally inside a folder |
update_flow |
Update an existing flow |
delete_flow |
Delete a flow |
trigger_flow |
Manually trigger a flow |
get_operations |
Get flow operations |
| Tool | Description |
|---|---|
get_users |
Get all users with filtering |
get_user |
Get a specific user by ID |
| Tool | Description |
|---|---|
get_files |
Get files with filtering and pagination |
import_data |
Import CSV/JSON into one collection, or several at once |
| Tool | Description |
|---|---|
diagnose_collection_access |
Diagnose collection access issues |
refresh_collection_cache |
Refresh collection cache |
validate_collection_creation |
Validate newly created collections |
| Tool | Description |
|---|---|
search_tools |
Find the tools matching a task description |
destructiveHint: false), and 11 are destructive (deletes, overwriting updates, apply_schema, import_data, trigger_flow).apply_schema require confirm: true. delete_items takes either ids or a query, never falls back to deleting everything, and (since Directus 12.4) only reaches items the token can read. To wipe a collection you must ask explicitly: { "query": { "limit": -1 }, "confirm": true }.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.