MCP Server Studio

Directus MCP Server MCP server

MCP server for Directus 12 — items, collections, files, flows, users, and schema tools

Registry name: io.github.staminna/directus-mcp-server

Publisher
staminna
Runs
Runs locally
Package
npm
Version
12.7.0
Category
Developer tools
Updated
2026-11-26

Source code on GitHub

Set up Directus MCP Server (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "directus-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@staminna/[email protected]"
      ],
      "env": {
        "DIRECTUS_URL": "<DIRECTUS_URL>",
        "DIRECTUS_TOKEN": "<DIRECTUS_TOKEN>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add directus-mcp-server -e DIRECTUS_URL='<DIRECTUS_URL>' -e DIRECTUS_TOKEN='<DIRECTUS_TOKEN>' -- npx -y @staminna/[email protected]

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "directus-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@staminna/[email protected]"
      ],
      "env": {
        "DIRECTUS_URL": "<DIRECTUS_URL>",
        "DIRECTUS_TOKEN": "<DIRECTUS_TOKEN>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "directus-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@staminna/[email protected]"
      ],
      "env": {
        "DIRECTUS_URL": "<DIRECTUS_URL>",
        "DIRECTUS_TOKEN": "<DIRECTUS_TOKEN>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "directus-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@staminna/[email protected]"
      ],
      "env": {
        "DIRECTUS_URL": "<DIRECTUS_URL>",
        "DIRECTUS_TOKEN": "<DIRECTUS_TOKEN>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
DIRECTUS_URLYesURL of the Directus instance
DIRECTUS_TOKENYesStatic Directus access token

More developer tools MCP servers