Back to Home
Skeyelab icon

directus-mcp-server

Verified Safe

by Skeyelab

Overview

This server acts as a Model Context Protocol (MCP) interface for AI assistants and other MCP clients to programmatically manage Directus CMS schema, content, workflows, and dashboards.

Installation

Run Command
npx -y @skeyelab/directus-mcp-server

Environment Variables

  • DIRECTUS_URL
  • DIRECTUS_TOKEN
  • DIRECTUS_EMAIL
  • DIRECTUS_PASSWORD
  • MCP_TOOLSETS

Security Notes

The server adheres to good security practices by loading sensitive Directus authentication credentials (URL, token, email, password) from environment variables, preventing hardcoding. It leverages Zod for input validation on incoming MCP requests, ensuring arguments conform to expected schemas. There are no direct uses of 'eval' or obvious obfuscation. Network communication relies on the standard `fetch` API to interact with the Directus instance. Some Zod schemas use `z.record(z.any())` or `z.array(z.any())` for complex Directus API parameters (e.g., filters, deep queries, options), which means the server passes these structures directly to the Directus API without deeper content-specific validation. This delegates the responsibility of sanitizing and securing these complex query objects entirely to the Directus API itself. While this is standard for a proxy, a hypothetical vulnerability in Directus's handling of complex, dynamic queries could be exposed through this mechanism. Overall, the server's own code is robust against common web vulnerabilities.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens1200
Stars0
Forks0
Last Update2025-11-25

Tags

mcpdirectuscmsschema-managementcontent-management