Directus
DirectusThird party
Manage your Directus content, schema and flows from your agent.
What it does
Directus has an MCP server built in (version 11.12 and later): an assistant connects to your own Directus instance to create and manage content, files, collections and fields, and to build flows, all through your existing Directus permissions.
It runs on your server, so the address is yours: replace the placeholder host with it. Turn it on under Settings, AI, Model Context Protocol. Directus recommends OAuth (an administrator enables the OAuth server and a client registration method); a static access token, from a dedicated Directus user, is the fallback for clients that cannot do OAuth. Use a dedicated user and keep deletes switched off unless you need them.
- Read and write items in any collection you give it access to
- Create collections, fields and relations
- Manage files and folders
- Build and trigger flows
The facts
- Address (your own server)
https://YOUR-DIRECTUS-HOST/mcpReplace YOUR-DIRECTUS-HOST with the address of your own Directus instance.- Kind
- Remote: a server on the internet
- Transport
- Streamable HTTP
- Sign-in
- OAuth sign-in
- Account
- No account: it runs on your own server
How to connect
Connect from Claude Code
Run this in a terminal, then start Claude Code, run /mcp and sign in (or run claude mcp login directus). Replace YOUR-DIRECTUS-HOST with the address of your own server first.
claude mcp add --transport http directus 'https://YOUR-DIRECTUS-HOST/mcp'Connect from Claude.ai
Claude.ai connects from Anthropic’s cloud, so it needs a public address. Follow these steps in the app.
- Open Customize > Connectors, click "+ Add", then "Add custom connector".
- Name: directus
- Remote MCP server URL: https://YOUR-DIRECTUS-HOST/mcp
- Replace YOUR-DIRECTUS-HOST with the address of your own directus server. It must be reachable from the internet.
- Click "Continue".
- Under Authentication choose "Sign in now", then click "Continue".
- Click "Add", then "Connect" if it asks.
- On a Team or Enterprise plan an Owner adds the connector under Organization settings > Connectors, and each member then clicks Connect.
Connect from Cursor
Add this to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json for one. Cursor opens a sign-in the first time the server is used. Replace YOUR-DIRECTUS-HOST with the address of your own server first.
{
"mcpServers": {
"directus": {
"url": "https://YOUR-DIRECTUS-HOST/mcp"
}
}
}Connect from Codex
Add this to ~/.codex/config.toml, or to .codex/config.toml in a trusted project. Replace YOUR-DIRECTUS-HOST with the address of your own server first.
[mcp_servers.directus]
url = "https://YOUR-DIRECTUS-HOST/mcp"
# then sign in: codex mcp login directusDirectus docsChecked on
Plugins that go with it
directus-dev
devDirectus development plugin. Knowledge base for working with Directus MCP tools (12 tools), REST API, and @directus/sdk. Covers…
v1.4.9