Levarage Claude Sonnet for MCP server with +20 tools available

“Prompt to Directus Database”

Directus MCP Server

Example usage:

Prompt: “Please analyze my schema.”
It will return broken relationships and suggest a fixes for the database.

A robust Model Context Protocol (MCP) server for Directus, providing seamless integration between Claude AI and your Directus CMS. This custom implementation offers more features and better reliability than the official Directus MCP package.

Features

:bar_chart: Data Access

  • Collection Management: List and access all Directus collections

  • Item Retrieval: Fetch items from any collection with customizable limits

  • Smart Filtering: Built-in support for published content filtering

  • Type Safety: Proper error handling and data validation

:hammer_and_wrench: Schema Management

  • Collection Creation: Create new collections programmatically

  • Field Management: Add/remove fields with proper type definitions

  • Relationship Builder: Create complex many-to-many, one-to-many relationships

  • Schema Inspection: View current database schema and relationships

:robot: AI Prompts Integration

  • Dynamic Prompts: Store and manage AI prompts in Directus

  • Variable Substitution: Mustache-style template variables ({{variable}})

  • Prompt Library: Organized prompt management for different AI workflows

:shopping_cart: E-commerce Features

  • Product Sync: Integration with external inventory APIs

  • Customer Management: Access customer data and order information

  • Inventory Updates: Automated stock synchronization

Thanks for sharing @Jorge_Domingues_Nune! How much have you been using this recently and have you got any insights with how it’s behaving that would be good to share? Was Claude picked over other options because you personally use it most or was there some other reasoning behind it?

1 Like

Hi Beth

I am using it to help build and fixing schema logic, fields and relationships between collections.

I selected Claude for it’s proactive can do towards Directus. From my personal experience it is the currently the model more aware for these kinds of tasks. I usually connect it to a IDE and also faster frontend regarding the routes and endpoints. It really helps speeding up the process .

Always safer to use in development environment, in case there is traction feel free to open a github issue.

Jorge.

2 Likes