[Home](/index.md) › [MCP servers](/mcp.md) › Directus MCP server

# Directus MCP server

MCP server

- 0 callable tools
- 4 capabilities

[Installation guide](https://directus.com/docs/guides/ai/mcp/installation)

## Overview

Directus publishes a built-in MCP server that lets AI assistants work with the data and schema of a Directus instance. It runs under the permissions of the user account that connects.

### Capabilities

- Read and edit Directus items, files and collections
- Explore the Directus schema
- Connect AI clients via OAuth or a static access token
- Limit AI access with Directus roles and permissions

## Works with

The products your agent can work with through this server.

- [Directus](/tools/directus.md): Self-hostable backend and CMS

## Installation

Follow the installation guide for supported clients, authentication and required permissions.

### Add Directus MCP server to Claude Code

Run this in your terminal:

```sh
claude mcp add --transport http directus https://your-directus-url.com/mcp
```

If the server asks you to sign in, run `/mcp` in Claude Code and follow the browser prompt.

### Add Directus MCP server to Cursor

Add it with the Add to Cursor button below, or add it to `.cursor/mcp.json` in your project (`~/.cursor/mcp.json` for every project):

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=directus&config=eyJ1cmwiOiJodHRwczovL3lvdXItZGlyZWN0dXMtdXJsLmNvbS9tY3AifQ%3D%3D)

```json
{
  "mcpServers": {
    "directus": {
      "url": "https://your-directus-url.com/mcp"
    }
  }
}
```

### Add Directus MCP server to VS Code

Add it to `.vscode/mcp.json` in your workspace. VS Code uses `servers` rather than `mcpServers`. Or run MCP: Add Server from the Command Palette and choose HTTP.

```json
{
  "servers": {
    "directus": {
      "type": "http",
      "url": "https://your-directus-url.com/mcp"
    }
  }
}
```

### Add Directus MCP server to Codex

Run this in your terminal:

```sh
codex mcp add directus --url https://your-directus-url.com/mcp
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.directus]
url = "https://your-directus-url.com/mcp"
```

If the server uses OAuth, sign in with `codex mcp login directus`.

### Add Directus MCP server to Claude

Add it as a custom connector with this URL:

```
https://your-directus-url.com/mcp
```

1. Open Customize, then Connectors.
2. Click + Add, then Add custom connector.
3. Name it, paste the URL and click Continue.
4. Choose how to sign in, then click Add.

On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.

### Add Directus MCP server to other clients

For any other client that connects to remote MCP servers over HTTP, use this URL:

```
https://your-directus-url.com/mcp
```

[Read the installation guide](https://directus.com/docs/guides/ai/mcp/installation)

## Related MCP servers

Other servers for the same products, or from the same vendor.

- [Directus docs MCP](/mcp/directus-docs.md)

## Sources

Documentation and source code reviewed on 10 November 2026.

- [directus.com/docs/guides/ai/mcp/installation](https://directus.com/docs/guides/ai/mcp/installation)
- [directus.com/docs/raw/guides/ai/mcp/installation.md](https://directus.com/docs/raw/guides/ai/mcp/installation.md)
