Directus MCP Server

Extended MCP server for Directus API

Local serverstdioGo

What is the Directus MCP MCP server?

Directus MCP MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Extended MCP server for Directus API.

What you get

A Node.js server implementing Model Context Protocol (MCP) for Directus CMS. Enable AI Clients to interact with the Directus API through the Model Context Protocol (MCP).

What the assistant can call

Once Directus MCP is connected, these are the calls the assistant has available:

  • Files — The Files tool exposed by this server
  • System — The System tool exposed by this server
  • Configuration — You can also pass --transport=http as a CLI argument instead of setting the environment variable

Configuration and credentials

You will need 5 environment variables: DIRECTUS_URL, DIRECTUS_ACCESS_TOKEN, DIRECTUS_EMAIL, DIRECTUS_PASSWORD, YOUR_ACCESS_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Choosing this one

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Directus MCP's toolset — Files, System, Configuration — is a fair guide to whether it matches your workflow. It is maintained by pixelsock; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the directus mcp mcp server does with a few real requests.

Available tools

ToolWhat it does
FilesThe Files tool exposed by this server.
SystemThe System tool exposed by this server.
ConfigurationYou can also pass --transport=http as a CLI argument instead of setting the environment variable.

How to install the Directus MCP MCP server

{
     "mcpServers": {
       "directus": {
         "command": "npx",
         "args": ["-y", "@pixelsock/directus-mcp@latest"],
         "env": {
           "DIRECTUS_URL": "https://your-directus-instance.com",
           "DIRECTUS_ACCESS_TOKEN": "YOUR_ACCESS_TOKEN"
         }
       }
     }
   }

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
DIRECTUS_URLEndpoint or connection string the server talks to.Yes
DIRECTUS_ACCESS_TOKENCredential the server authenticates with.Yes
DIRECTUS_EMAILFilesystem location the server is allowed to use.Optional
DIRECTUS_PASSWORDFilesystem location the server is allowed to use.Optional
YOUR_ACCESS_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Directus MCP to Files.
  • Use Directus MCP to System.
  • Use Directus MCP to Configuration.

Frequently asked questions

It connects Directus MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (Files, System, Configuration) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Directus MCP directly.