3,400+ MCP servers ready to use
Vinkius
M

Bring Sql Database
to Mastra AI

Learn how to connect Directus to Mastra AI and start using 16 AI agent tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code.

Check Directus StatusCreate ItemDelete ItemGet CollectionGet FileGet ItemGet MeList ActivityList CollectionsList FieldsList FilesList ItemsList RolesList UsersSearch ItemsUpdate Item

What is the Directus MCP Server?

Connect your Directus instance to any AI agent and manage your content database through natural conversation.

What you can do

  • Collection Management — List all data collections with field counts and inspect individual collection schemas
  • Content CRUD — Create, read, update, and delete items in any collection using JSON payloads
  • Search & Query — Search items within collections by keyword to find specific content quickly
  • Schema Inspection — List all fields and their data types for any collection to understand your data model
  • File Management — Browse uploaded files and retrieve metadata for specific assets
  • User & Role Management — List all users with roles and status, view role configurations, and check your own profile
  • Audit Trail — Access the activity log of recent database operations for compliance and debugging

How it works

1. Subscribe to this server
2. Enter your Directus Static Token from your user profile in the Data Studio
3. Start managing your content from Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Content Teams — create, update, and search content items across collections without opening the Directus dashboard
  • Developers — inspect collection schemas, manage fields, and debug data issues through conversational AI
  • Administrators — audit user activity, manage roles, and monitor database operations

Built-in capabilities (16)

check_directus_status

Verify connectivity

create_item

Create an item

delete_item

Delete an item

get_collection

Get collection details

get_file

Get file details

get_item

Get item details

get_me

Get current user

list_activity

List recent activity

list_collections

List collections

list_fields

List fields

list_files

List files

list_items

List items

list_roles

List roles

list_users

List users

search_items

Search items

update_item

Update an item

Why Mastra AI?

Mastra's agent abstraction provides a clean separation between LLM logic and Directus tool infrastructure. Connect 16 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

M
See it in action

Directus in Mastra AI

AI AgentVinkius
High Security·Kill Switch·Plug and Play
Why Vinkius

Directus and 3,400+ other MCP servers. One platform. One governance layer.

Teams that connect Directus to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.

3,400+MCP Servers ready
<40msCold start
60%Token savings
Raw MCP
Vinkius
Server catalogFind and host yourself3,400+ managed
InfrastructureSelf-hostedSandboxed V8 isolates
Credential handlingPlaintext in configVault + runtime injection
Data loss preventionNoneConfigurable DLP policies
Kill switchNoneGlobal instant shutdown
Financial circuit breakersNonePer-server limits + alerts
Audit trailNoneEd25519 signed logs
SIEM log streamingNoneSplunk, Datadog, Webhook
HoneytokensNoneCanary alerts on leak
Custom domainsNot applicableDNS challenge verified
GDPR complianceManual effortAutomated purge + export
Enterprise Security

Why teams choose Vinkius for Directus in Mastra AI

The Directus MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 16 tools execute in hardened sandboxes optimized for native MCP execution.

Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

Directus
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure

The Vinkius Advantage

How Vinkius secures Directus for Mastra AI

Every tool call from Mastra AI to the Directus MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.

< 40msCold start
Ed25519Signed audit chain
60%Token savings
FAQ

Frequently asked questions

01

Can I create, update, and delete content items in any collection?

Yes! Use create_item with a collection name and JSON payload to add new items. Use update_item with the collection, item ID, and updated fields to modify existing items. Use delete_item to remove items. All operations respect the permissions assigned to your Static Token's user role.

02

How does Directus authentication work with a Static Token?

Directus uses a non-expiring Static Token associated with a specific user account. Generate it from your User Profile in the Data Studio. The token is sent as a Bearer token in the Authorization header. Its permissions match the role assigned to that user — use an admin role for full access or a restricted role for read-only operations.

03

Can I audit what changes have been made to my database?

Yes. The list_activity tool retrieves the audit log of recent database operations, showing who made changes, which collections were affected, timestamps, and the type of operation (create, update, delete). Combine with list_users and list_roles for full accountability tracking.

04

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.

05

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.

06

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.

07

createMCPClient not exported

Install: npm install @mastra/mcp