Skip to main content
Glama

@staminna/directus-mcp-server

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

npm version License: MIT CI mcp-server-claude MCP server

mcp-server-claude MCP server

Test Coverage

Statements

Branches

Functions

Lines

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.


Why this, why now

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:

  • 🛒 Shop / catalog: products, categories, variants, stock, images; import the supplier CSV; the API is ready for your storefront.

  • 🌐 Website CMS: pages, menus, blog, SEO fields, translations; your marketing team edits in the Directus app.

  • 🤝 Lightweight CRM: leads, companies, deals, activity; a Flow notifies you on every new lead.

  • 📅 Bookings / services: resources, slots, customers, reservations, with roles for staff and the public.

  • 🧰 Internal back-office: replace the spreadsheet; keep the data in SQL with an audit trail and permissions.

Then move it between environments with get_schema_snapshot → diff_schema → apply_schema.


Related MCP server: Strapi Content MCP

Quick start (60 seconds)

  1. In Directus, create a user for the agent and generate a static token (User → Token).

  2. Paste the config below into your agent.

  3. Ask: "List my collections, then create a 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).

Add it to your agent

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:

  • From source: "command": "node", "args": ["/path/to/mcp-server-claude/dist/index.js"] (after npm install && npm run build)

  • Docker: "command": "docker", "args": ["run", "-i", "--rm", "-e", "DIRECTUS_URL", "-e", "DIRECTUS_TOKEN", "directus-mcp"] (after docker build -t directus-mcp .)


Ask for outcomes, not API calls

"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."

Tools

Collection Management

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

Schema & Fields

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)

Flow Management

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

User Management

Tool

Description

get_users

Get all users with filtering

get_user

Get a specific user by ID

File Management

Tool

Description

get_files

Get files with filtering and pagination

import_data

Import CSV/JSON into one collection, or several at once

Diagnostics

Tool

Description

diagnose_collection_access

Diagnose collection access issues

refresh_collection_cache

Refresh collection cache

validate_collection_creation

Validate newly created collections

Discovery

Tool

Description

search_tools

Find the tools matching a task description

Built-in safety

  • Every tool carries MCP annotations: 17 are read-only, 6 are additive (destructiveHint: false), and 11 are destructive (deletes, overwriting updates, apply_schema, import_data, trigger_flow).

  • Deletes and 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 }.


Configuration

Variable

Required

Description

DIRECTUS_URL

Yes

Your Directus instance URL (e.g., http://localhost:8065)

DIRECTUS_TOKEN

Yes

Static API token with appropriate permissions

DIRECTUS_PROMPTS_COLLECTION_ENABLED

No

Enable AI prompts collection (true/false)

DIRECTUS_PROMPTS_COLLECTION

No

Collection name for AI prompts (default: ai_prompts)

DIRECTUS_RESOURCES_ENABLED

No

Enable resources feature (true/false)

DIRECTUS_RESOURCES_EXCLUDE_SYSTEM

No

Exclude system collections from resources (true/false)

NODE_ENV

No

Environment mode (development/production)

DIRECTUS_TIMEOUT

No

Request timeout in ms (default: 30000)

DIRECTUS_RETRIES

No

Retry attempts for network errors, 5xx and 429 (default: 3)

DIRECTUS_RETRY_DELAY

No

Base backoff delay in ms (default: 1000)

DIRECTUS_MAX_RETRY_DELAY

No

Backoff ceiling in ms (default: 10000)

DIRECTUS_IMPORT_MAX_FILE_SIZE

No

Client-side import size ceiling in bytes, mirroring the Directus IMPORT_MAX_FILE_SIZE (default: 50 MB)

LOG_LEVEL

No

DEBUG/INFO/WARN/ERROR (default: INFO). Logs go to stderr; stdout is reserved for MCP

For a private CA or a client certificate. CA/CERT/KEY/PFX accept a file path or the PEM/DER content itself.

| Variable | Description | |

Authentication: a static Directus token over stdio. No OAuth is needed: the MCP spec reserves OAuth for HTTP transports and tells stdio servers to read credentials from the environment. Use a dedicated least-privilege user in production. With a Claude Pro/Max subscription in Claude Code or Desktop you don't need an Anthropic API key either.


Troubleshooting

  • Not connecting: check DIRECTUS_URL is reachable and the token is set, then fully restart the client. Logs go to stderr (LOG_LEVEL=DEBUG for more).

  • Permission errors: run diagnose_collection_access on the collection. It tells permissions, inactive collections (12.4+) and folders apart.

  • Timeouts on a remote instance: raise DIRECTUS_TIMEOUT and check firewall/proxy settings.


Development

npm install && npm run build      # build to dist/
npm run typecheck && npm run lint
npm test                          # unit + integration (vitest)
npm run test:coverage             # enforces 95% thresholds
npm run test:e2e                  # spawns the real server over stdio against a mock Directus
npm run badges                    # refresh the coverage badges above
npm run tdqs                      # tool-definition quality gate (no API key needed)

Live verification: tests/live/demo.mjs drives every tool against a real instance. It reads DIRECTUS_URL/DIRECTUS_TOKEN from ENV_FILE (default .env.mdbaudio):

ENV_FILE=.env npm run test:live                               # read-only + guards
ENV_FILE=.env npm run test:live -- --write                    # + scratch mcp_demo_<stamp> collection, always cleaned up
ENV_FILE=.env npm run test:live -- --write --apply-schema     # + apply_schema, merge mode, scratch only

Tool-definition quality: the 34 definitions are held to TDQS, the open rubric Glama scores MCP servers with. A description has to state what the tool does, when to use it instead of its siblings, the side effects and failure modes an agent cannot infer from the schema, and what it returns; every parameter carries a description. npm run tdqs runs the deterministic stages of that check — no model, no API key — and fails on errors; npm run tdqs:report prints the full findings, notes and warnings included. CI runs the gate on every push and pull request.

Contributions welcome: fork, branch, open a PR. Start with CONTRIBUTING.md; vulnerabilities go through SECURITY.md, not a public issue.

License

MIT © Jorge Domingues Nunes

npm · GitHub · Directus docs · MCP spec

Available Tools

34 tools
analyze_collection_schemaA
Read-only

Inspects one collection and reports its fields with types and constraints, optionally mapped against its relationships and checked for schema problems. Use it when deciding how to query or extend a collection; get_collection_schema returns the raw field list alone, validate_collection_schema returns only the problems, analyze_relationships gives the cross-collection view. Read-only. includeRelations adds inbound and outbound relations and validateConstraints adds constraint findings; each costs extra requests against Directus, so leave them off for a quick look.

Inputs: collection (required), includeRelations, validateConstraints.

analyze_relationshipsA
Read-only

Maps relationships across the instance: which collections point at which, through which fields, and of which type (o2o, o2m, m2o, m2m, m2a). Pass collection to narrow it to one collection and its neighbours, or omit it for the whole graph. Use it before create_relationship, before deleting a field or collection, or when a nested query returns an unexpected shape; analyze_collection_schema covers one collection in depth. Read-only, and it reads the data model only, never items. System collections are excluded unless includeSystemCollections is true.

Inputs: collection, includeSystemCollections.

apply_schemaA
Destructive

Applies a diff from diff_schema to the live data model, creating, altering and dropping collections and fields. Requires confirm: true. Destructive and not transactional: a mirror-mode diff drops whatever is missing from the snapshot, and a failure partway leaves the model half-migrated. The hash ties the diff to the model it was computed against and the call is refused when the model has moved since; force bypasses that check and can corrupt the model. Always run diff_schema first and keep a get_schema_snapshot backup.

Inputs: diff (required), force, confirm.

bulk_operationsA
Destructive

Applies many writes to one collection in a single call: creates, updates and deletes together. Prefer it to repeated create_item or update_item calls when the row count is high; use import_data for a CSV or JSON file and delete_items when deleting by query rather than by id. Not a transaction: the phases run in order (create, update, delete) and a failure partway leaves earlier writes committed, so the result reports what succeeded per phase. validate: true checks the payload against the collection schema before anything is written. This tool writes data and has nothing to do with analyze_relationships, which only inspects the data model.

Inputs: collection (required), operations (required), validate.

create_collectionA

Creates a collection, either a real database table or a grouping folder. A table gets an auto-increment integer id when no fields are passed; folder: true makes a grouping element, which has no schema and can hold neither items nor fields. Use create_field to add fields afterwards, apply_schema to provision several collections from a snapshot. The table is created immediately and is not rolled back when a later field in the same call fails. A fresh collection can take a moment to become readable: validate_collection_creation confirms it, refresh_collection_cache clears a stale cache. Returns the created collection.

Inputs: collection (required), meta, fields, folder.

create_fieldA

Adds a field to an existing collection: a database column plus its Directus interface metadata. Use create_relationship for relational fields, since this tool creates a plain column and no foreign key, and update_field for a field that already exists. The column is added immediately; on a non-empty table a required field without default_value can fail or leave existing rows invalid, so add it optional first and backfill. type is the Directus type (string, integer, boolean, dateTime, json, uuid and so on) while interface only affects how the admin app renders it. Returns the created field definition.

Inputs: type (required), field (required), collection (required), note, +6 more.

create_flowA

Creates an automation flow and, optionally, its first operations in the same call. trigger selects what starts the flow (manual, schedule, event, webhook) and options carries the trigger-specific configuration, so a schedule flow needs its cron expression in options. A flow created with status active starts reacting immediately, events included, so create it inactive when that is not wanted. Each operations entry needs key, type and editor coordinates; operations are created but not chained, so wire the resolve and reject paths with update_flow or in the admin app. Use update_flow to change a flow and trigger_flow to run one.

Inputs: name (required), folder, status, options, +3 more.

create_itemA

Inserts one item (row) into a collection and returns it, including the generated primary key. Use bulk_operations for many rows in one call, import_data for a CSV or JSON file, update_item to change a row that exists. Directus validates the payload, so a missing required field or a failed validation rule comes back as a tool error and nothing is written. Fields the token may not write are rejected rather than silently dropped. The payload may include relational fields, which Directus resolves against the related collection.

Inputs: data (required), collection (required).

create_relationshipA

Creates a relationship between collections together with the schema it needs: a m2o or o2o foreign key, an o2m reverse field, a m2m junction collection, or a m2a any-collection link. Use create_field for a plain non-relational column and analyze_relationships to see what already exists. Which parameters are required depends on type: m2m needs junction_collection and both junction fields, m2a needs allowed_collections and collection_field. Creates real tables and constraints and does not roll back when a later step fails, so a half-created m2m may need manual cleanup. on_delete and on_update set the referential actions, where CASCADE means deleting a parent deletes its children.

Inputs: type (required), field (required), collection (required), on_delete, +10 more.

delete_collectionA
Destructive

Drops a collection and every item in it, permanently. Requires confirm: true; without it nothing is deleted and the call reports what it would have done. Irreversible and not transactional: related items elsewhere may be left orphaned and a RESTRICT foreign key can make the drop fail halfway. Use delete_items to remove rows and keep the collection, delete_field to remove a single field. Take get_schema_snapshot first when the data model may need restoring.

Inputs: collection (required), confirm.

delete_fieldA
Destructive

Drops one field and its column from a collection, discarding the data in it permanently. Requires confirm: true. Relations pointing at the field can be left dangling, so check analyze_relationships first; use update_field to hide a field in the admin app instead of destroying it, delete_collection to drop the whole table. Not reversible, so take get_schema_snapshot beforehand when the model may need restoring.

Inputs: field (required), collection (required), confirm.

delete_flowA
Destructive

Deletes a flow and all of its operations, permanently. Requires confirm: true. Whatever depended on the flow stops working, including a webhook URL that pointed at it, its schedule and any flow that triggered it, and the run history goes with it. Use update_flow with status inactive to switch a flow off and keep it. Not reversible.

Inputs: id (required), confirm.

delete_itemsA
Destructive

Deletes items from a collection, by explicit ids or by a Directus query, permanently. Requires confirm: true, and passing neither ids nor query deletes nothing. ids and query are mutually exclusive. Since Directus 12.4 a query resolves its targets under the read permissions of the token: read access to the primary key is required and only readable items are deleted, so the deleted count can be lower than the matching count. Use { "limit": -1 } in query to deliberately target every item. cascadeDelete also removes related items and works only with ids. Use delete_collection to drop the whole collection instead.

Inputs: collection (required), ids, query, confirm, +1 more.

diagnose_collection_accessA
Read-only

Explains why a collection cannot be read or written with the current token: whether it exists, whether it is active, whether the token holds item, field and relation permissions, and which of those is the blocker. Read-only and safe against production. Reach for it first when a tool returns an empty result or a forbidden error, before concluding the data is missing; validate_collection_schema covers a suspect schema and refresh_collection_cache a collection that was just created. Each include flag adds targeted probe requests against Directus.

Inputs: collection (required), includeFields, includeRelations, includePermissions.

diff_schemaA
Read-only

Compares a snapshot against the live data model and reports the operations that applying it would perform. Read-only, nothing is modified, which makes it the safe way to preview a migration before apply_schema, the tool that consumes the { hash, diff } object returned here. mode mirror (default) includes deletions so the live model would end up matching the snapshot exactly; merge drops them for a strictly additive diff. force bypasses the Directus version and database vendor checks and risks producing a diff that cannot be applied. An empty diff means the model already matches.

Inputs: snapshot (required), mode, force.

get_collection_itemsA
Read-only

Reads items (rows) from one collection with Directus filtering, sorting, field selection, full-text search and pagination. This is the read path for content: use get_users, get_files or get_flows for those system collections, and get_collection_schema when the shape rather than the data is wanted. Returns at most 25 items unless limit says otherwise, so paginate with offset over large collections. Results are scoped to what the token may read, so a filter can legitimately return fewer rows than exist. On versioned collections, version reads one draft and version_raw returns the delta instead of the merged item. Since Directus 12.6.1 search also matches related fields through a many-to-many junction.

Inputs: collection (required), sort, limit, fields, +5 more.

get_collection_schemaA
Read-only

Returns the field-level schema of one collection: field names, database types, interfaces, required and unique constraints, defaults and relation metadata. Use it before create_item or update_item to learn which fields exist and which are mandatory; use list_collections to find the collection name first, analyze_collection_schema when relationship mapping and constraint checks are also wanted. Read-only. Fails when the collection does not exist or the token cannot read it, and diagnose_collection_access tells those two apart.

Inputs: collection (required).

get_filesA
Read-only

Lists files in the Directus file library (directus_files) with filtering, sorting, field selection, search and pagination, returning their metadata rather than their binary contents. Use import_data to load rows from a CSV or JSON file, and get_collection_items for files referenced from a content collection. Returns at most 25 files unless limit says otherwise. Each entry carries the file id, filename, type, size and storage location, which is what an asset URL is built from.

Inputs: sort, limit, fields, filter, +2 more.

get_flowA
Read-only

Fetches one automation flow by id, optionally with its operations expanded so the whole pipeline can be read in a single call. Use get_flows to find the id and get_operations to list operations across several flows. Read-only: reading a flow never runs it, trigger_flow does that. include_operations costs an extra request and makes the response large on long flows.

Inputs: id (required), include_operations.

get_flowsA
Read-only

Lists Directus automation flows with filtering, sorting, search and pagination. Use get_flow for one flow and its operations, get_operations for operations across flows, trigger_flow to run one. status narrows to active or inactive flows; folder (Directus 12.4+) narrows to one flow folder, where an empty string means root-level flows. Returns at most 25 flows unless limit says otherwise, and flow metadata only: operations are omitted unless get_flow asks for them.

Inputs: sort, limit, fields, filter, +4 more.

get_operationsA
Read-only

Lists the operations (steps) that make up flows, optionally narrowed to one flow with flow_id. Use get_flow with include_operations for the whole pipeline of a single flow, and this tool to scan across flows, for example to find every step of a given type. Read-only: listing an operation never runs it. Returns at most 50 operations unless limit says otherwise, each with its key, type, editor position and options.

Inputs: limit, flow_id.

get_schema_snapshotA
Read-only

Exports the data model (collections, fields and relations, with no item data) as a snapshot object that diff_schema and apply_schema accept. Use it to back up the model before a destructive change, to move a model between environments, or to version it in git. Read-only. include_collections and exclude_collections are mutually exclusive and produce a partial snapshot, which on apply can read as a request to delete everything left out, so prefer a full snapshot for migrations.

Inputs: exclude_collections, include_collections.

get_userA
Read-only

Fetches one Directus user by id, with optional field selection. Use get_users to search or list when the id is unknown. Read-only. Fails when the id does not exist or the token cannot read directus_users. The password hash and static token are never returned. The shorthand id me is not resolved here, so pass the actual user id.

Inputs: id (required), fields.

get_usersA
Read-only

Lists Directus users (directus_users) with filtering, sorting, field selection, search and pagination. Use get_user to fetch one user when the id is known. Returns at most 25 users unless limit says otherwise. Results are scoped to the permissions of the token, so a token without access to directus_users gets an empty list rather than an error. Directus never returns password hashes or static tokens; pass fields to keep responses small.

Inputs: sort, limit, fields, filter, +2 more.

import_dataA
Destructive

Imports rows from a CSV or JSON file into one collection, or into several related collections at once from a flat multi-collection file. Use it when the data is in a file; bulk_operations takes payloads already in memory and create_item a single row. Subject to the Directus IMPORT_MAX_FILE_SIZE limit (50mb by default).

Single-collection: pass collection, and the file is a plain array of rows. Batch (Directus 12.2+): omit collection, and the file MUST be a JSON array of { "collection": string, "items": object[] } entries, e.g. [{"collection":"authors","items":[{"name":"Ann"}]},{"collection":"articles","items":[{"title":"Hi","author":1}]}]

Writes immediately and is not a transaction, so a failure partway leaves earlier rows imported. mode merge upserts instead of inserting, dry_run reports the changes without writing, and only dangerously_allow_delete together with confirm lets rows absent from the file be deleted.

Inputs: mode, confirm, dry_run, filename, +4 more.

list_collectionsA
Read-only

Lists every collection in the Directus instance with its metadata, so the data model can be discovered before anything is read or written. Start here when the collection name is unknown; use get_collection_schema for the fields of one collection and get_collection_items to read its rows. Folders (grouping elements with no table behind them) and inactive collections (Directus 12.4 refuses to read or write their contents) are flagged in the result. System collections are omitted unless include_system is true. Returns one entry per collection with its name, metadata and those flags.

Inputs: include_system.

refresh_collection_cacheA

Flushes the Directus server cache so recent schema changes become visible, then optionally verifies that one collection is readable. Use it after create_collection, create_field or apply_schema when a collection or field is reported as missing; validate_collection_creation answers the narrower question of whether a new collection is ready. Mutating but not destructive: it discards cached data, never stored data, though the next requests are slower while the cache refills. Needs a token allowed to flush the cache, and it affects every client of the instance, not just this session.

Inputs: collection.

search_toolsA
Read-onlyIdempotent

Finds the tools on this server that match a task description and returns their full definitions, so the right one can be called straight away. Use it first when unsure which tool fits, rather than guessing a name. Read-only and local: it searches the definitions this server already advertises, reaches Directus not at all, and so costs nothing against the instance. Matching runs over tool names, descriptions and keywords. Returns up to 10 tools unless limit says otherwise, best match first.

Inputs: query (required), limit.

trigger_flowA
Destructive

Runs one flow now and returns whatever its last operation produced. The side effects are whatever the flow does, which can mean writing items, sending mail or calling external services, so treat it as destructive unless the flow is known to be read-only. Flows with a manual trigger accept this reliably; others may refuse it or ignore the payload. data becomes the trigger payload and must match what the flow expects. Read the flow with get_flow before running it.

Inputs: id (required), data.

update_fieldA
DestructiveIdempotent

Changes an existing field, either its Directus metadata (interface, note, validation, options) or its database schema (type, required, unique, default_value). Metadata changes are safe; a type change rewrites the column and can fail or lose precision on existing data, and turning on required or unique fails on rows that already violate it. Idempotent: the same body applied twice leaves the same result. Use create_field to add a field, delete_field to remove one, and update_field with a hidden interface to retire a field without destroying data. Returns the updated field definition.

Inputs: field (required), collection (required), note, type, +6 more.

update_flowA
DestructiveIdempotent

Updates one flow by id: name, status, trigger, description or trigger options. Idempotent, and it replaces the keys present in data while leaving the rest alone. Switching status to active makes the flow start reacting to its trigger at once, and changing trigger or options can leave the flow inconsistent with operations built for the old trigger. Operations themselves are not edited here, so read them with get_flow or get_operations. This tool writes an automation and has nothing to do with analyze_relationships, which inspects the data model.

Inputs: id (required), data (required).

update_itemA
DestructiveIdempotent

Updates fields of one item by primary key and leaves fields absent from data untouched: a PATCH, not a replace. Use create_item for a new row, bulk_operations for many rows, delete_items to remove them. In versioned collections the published item is read-only, so pass version with a draft key to write into a draft; without it Directus refuses the write. Overwrites whatever the field held, so read it with get_collection_items first when the previous value matters. Returns the updated item.

Inputs: id (required), data (required), collection (required), version.

validate_collection_creationA
Read-only

Confirms that a newly created collection is usable: present in the schema, active, and readable with the current token, retrying once after waitTime milliseconds (default 2000) because Directus can lag a moment behind a create. Read-only. Use it right after create_collection and before writing items; refresh_collection_cache when it still reports the collection as missing, diagnose_collection_access for the full permission breakdown.

Inputs: collection (required), waitTime.

validate_collection_schemaA
Read-only

Checks one collection for schema problems and returns the findings: missing primary key, one-sided or broken relations, a database type that disagrees with its interface, constraints the stored data violates. Read-only, and it reports rather than repairs. Use it after create_collection or apply_schema, or when writes fail for no obvious reason; use diagnose_collection_access when permissions rather than schema are the suspicion. strict: true also reports conventions and warnings instead of errors alone.

Inputs: collection (required), strict.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 34 tools

    Disambiguation4/5

    Most tools target clearly distinct resources and actions, and the descriptions explicitly distinguish adjacent tools such as get_collection_schema, analyze_collection_schema, and validate_collection_schema. Some overlap remains among the schema inspection, validation, access diagnosis, and cache-refresh helpers, which can make tool selection harder in a 34-tool surface.

    Naming Consistency4/5

    Names are overwhelmingly snake_case and follow a verb_noun pattern, such as get_user, create_item, delete_flow, and validate_collection_creation. Minor inconsistencies exist, including list_collections versus get_users/get_files/get_flows, and noun-style names like bulk_operations.

    Tool Count2/5

    At 34 tools, the surface is well above the practical 3-15 range and feels heavy even for a broad platform like Directus. Several fine-grained schema validation, diagnosis, cache, and creation-check tools could likely be consolidated or exposed as options on fewer tools.

    Completeness3/5

    The server covers core Directus areas such as items, fields, collections, flows, relationships, schema snapshots, and imports. However, notable lifecycle gaps remain: users and files are read-only, relationships lack update/delete, flow operations cannot be edited directly, and collection metadata updates are absent.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables comprehensive management of Storyblok CMS through natural language interactions. Supports story creation and publishing, asset management, component schema updates, release workflows, and content discovery across all major Storyblok APIs.
      8 npm
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables comprehensive management of Directus instances through tools for schema manipulation, content CRUD operations, and dashboard management. It allows AI assistants to programmatically interact with collections, fields, relations, and workflow automation using the official Directus SDK.
      20
      19 npm
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides AI agents with full access to Strapi 5.x CMS for managing content types, entries, media, and schemas. It supports full CRUD operations, relation management, and secure authentication for comprehensive content administration.
      -