Bring Headless Cms
to Mastra AI
Create your Vinkius account to connect Directus to Mastra AI and start using all 10 AI tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code. No hosting, no server setup — just connect and start using.
Compatible with every major AI agent and IDE
What is the Directus MCP Server?
Connect your Directus instance to any AI agent and take full control of your open-source data platform and headless CMS through natural conversation.
What you can do
- Collection Orchestration — Identify bounded routing spaces inside headless Directus SQL mappers and extract database tables traversing collections natively
- Item Management — Provision highly-available JSON payloads to write or update Directus rows, or irreversibly wipe records to clear internal database allocations
- Schema Auditing — Enumerate explicitly attached structured rules defining your PostgreSQL tables and execute bulk iterations to track registered system types
- Metadata Inspection — Analyze specific localized variables decoding native collection boundaries and extracting hidden tracking configurations seamlessly
- Field Discovery — Inspect deep internal arrays defining precisely which fields accept formatting and validate payloads strictly against your DB links
- Identity Oversight — Explains explicitly mapped profile arrays iterating the exact users authorized within the DB layer enforcing RBAC boundaries securely
- Media Storage — Retrieve the exact structural matching verifying file uploads and generating download routes for active frontends
How it works
- Subscribe to this server
- Enter your Directus Base URL and Static Token (found in User Directory > User > Token)
- Start managing your data platform from Claude, Cursor, or any MCP-compatible client
Who is this for?
- Database Administrators — audit schemas and manage users without writing complex SQL or using the Studio interface
- Full-stack Developers — create and update records and manage digital assets directly from the IDE or chat
- Product Teams — monitor collection data and verify field configurations across different environments
- Content Editors — manage headless content and digital assets through natural language conversation
Built-in capabilities (10)
Provision a highly-available JSON Payload writing Directus Rows
Perform structural extraction of properties driving active Tables
Retrieve explicit Cloud logging tracing explicit DB Row UUIDs
Inspect deep internal arrays mitigating specific Column configurations
Identify bounded routing spaces inside Headless Directus SQL mappers
Retrieve the exact structural matching verifying Media storage
Identify precise active arrays spanning rented Admin identities
Enumerate explicitly attached structured rules defining PostgreSQL tables
Mutate global Web CRM boundaries substituting Database values via ID
Irreversibly vaporize explicit App nodes dropping live Rows
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Directus tool infrastructure. Connect 10 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Directus without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Directus tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Directus in Mastra AI
Why run Directus with Vinkius?
The Directus connection runs on our fully managed, secure cloud infrastructure. We handle the hosting, maintenance, and security so you don't have to deal with servers or code. All 10 tools are ready to work instantly without any complex setup.
You stay in complete control of your data. Your AI only accesses the information you approve, keeping your sensitive passwords and private details completely safe. Plus, with automatic optimizations, your AI works faster and more efficiently.

* Every connection is hosted and maintained by Vinkius. We handle the security, updates, and infrastructure so you don't have to write code or manage servers. See our infrastructure
Over 4,000 integrations ready for AI agents
Explore a vast library of pre-built integrations, optimized and ready to deploy.
Connect securely in under 30 seconds
Generate tokens to authenticate and link external services in a single step.
Complete visibility into every agent action
Audit live requests, latency, success rates, and active security compliance policies.
Optimize spending and track token ROI
Analyze real-time token consumption and cost metrics detailed by connection.




Explore our live AI Agents Analytics dashboard to see it all working
This dashboard is included when you connect Directus using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.
Directus and 4,000+ other AI tools. No hosting, no code, ready to use.
Professionals who connect Directus to Mastra AI through Vinkius don't need to write code, manage servers, or worry about security. Everything is pre-configured, secure, and runs automatically in the background.
Raw MCP | Vinkius | |
|---|---|---|
| Ready-to-use MCPs | Find and configure each manually | 4,000+ MCPs ready to use |
| Connection Setup | Manual coding & server setup | 1-click instant connection |
| Server Hosting | You host it yourself (needs 24/7 uptime) | 100% hosted & managed by Vinkius |
| Security & Privacy | Stored in plaintext config files | Bank-grade encrypted vault |
| Activity Visibility | Blind execution (no logs or tracking) | Live dashboard with real-time logs |
| Cost Control | Runaway AI token spend risk | Automatic budget limits |
| Revoking Access | Must delete files or code to stop | 1-click disconnect button |
How Vinkius secures
Directus for Mastra AI
Every request between Mastra AI and Directus is protected by our secure gateway. We automatically keep your sensitive data private, prevent unauthorized access, and let you disconnect instantly at any time.
Frequently asked questions
Can my agent list all collections and their fields in Directus?
Yes. Use the 'list_schema_collections' tool to see all tables, and then use 'list_collection_fields' for a specific collection. The agent retrieves the absolute structural details defining precisely which fields accept formatting.
How do I create a new record in a specific Directus collection?
Use the 'create_cms_record' tool. Provide the collection name and a JSON payload mapping the columns. Your agent will orchestrate the request to drop the formatted endpoint into your database and return the new UUID.
Can I audit authorized users and their roles via the agent?
Absolutely. The 'list_directus_users' tool retrieves the explicitly mapped profile arrays iterating the exact users authorized within the database layer. This helps you monitor RBAC boundaries and organizational identities.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Bluesky Social
12 toolsPublish posts, follow accounts, and engage with the decentralized social network through your AI-powered workflow.

Axle
12 toolsFleet management and logistics automation — track vehicles, manage drivers, and monitor loads via AI.

Slite
12 toolsManage your Slite knowledge base, notes, and AI insights with AI agents.

Salesbricks
10 toolsIntegrate Salesbricks seamlessly into your AI. Quickly manage B2B customer billing, track active subscriptions, list available software plans, and audit invoices natively.
