directus-mcp

directus-mcp

12

Directus MCP Server is a Node.js implementation of the Model Context Protocol for Directus CMS, enabling AI clients to interact with its API. It focuses on ease of use with detailed setup instructions and troubleshooting tips.

Directus MCP Server

A Node.js server implementing Model Context Protocol (MCP) for Directus CMS. It allows AI clients to interact with the Directus API via MCP. Key prerequisites include Node.js, NPM, and an instance of Directus. The project supports quick setup with Directus API credentials and provides troubleshooting tips for common issues. Available tools cover operations on collections, files, user permissions, and system information. Developers can run the server in development mode by cloning the repository and setting up a local environment.

❓ Troubleshooting

  1. Ensure valid Directus credentials: Verify Directus URL, access token or email/password credentials, update and restart MCP client.
  2. Ensure Node and NPM installation: Run version commands to confirm installation.
  3. Clear NPM cache for resolving npx issues.

🛠️ Available tools

  • Collections and Items: Retrieve and manage collection items.
  • Files: Manage files in Directus.
  • Users and Permissions: Handle user authentication and permissions.
  • System: Access system information and logs.