Directus MCP Server for AutoGenGive AutoGen instant access to 16 tools to Check Directus Status, Create Item, Delete Item, and more
Microsoft AutoGen enables multi-agent conversations where agents negotiate, delegate, and execute tasks collaboratively. Add Directus as an MCP tool provider through Vinkius and every agent in the group can access live data and take action.
Ask AI about this App Connector for AutoGen
The Directus app connector for AutoGen is a standout in the Loved By Devs category — giving your AI agent 16 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.tools.mcp import McpWorkbench
async def main():
# Your Vinkius token. get it at cloud.vinkius.com
async with McpWorkbench(
server_params={"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"},
transport="streamable_http",
) as workbench:
tools = await workbench.list_tools()
agent = AssistantAgent(
name="directus_alternative_agent",
tools=tools,
system_message=(
"You help users with Directus. "
"16 tools available."
),
)
print(f"Agent ready with {len(tools)} tools")
asyncio.run(main())
* 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
About Directus MCP Server
Connect your Directus instance to any AI agent and manage your content database through natural conversation.
AutoGen enables multi-agent conversations where agents negotiate, delegate, and collaboratively use Directus tools. Connect 16 tools through Vinkius and assign role-based access. a data analyst queries while a reviewer validates, with optional human-in-the-loop approval for sensitive operations.
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
The Directus MCP Server exposes 16 tools through the Vinkius. Connect it to AutoGen in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 16 Directus tools available for AutoGen
When AutoGen connects to Directus through Vinkius, your AI agent gets direct access to every tool listed below — spanning sql-database, graphql, rest-api, and more. Every call is secured with network, filesystem, subprocess, and code evaluation entitlements inside a sandboxed runtime. Beyond a simple connection, you get a full AI Gateway with real-time visibility into agent activity, enterprise governance, and optimized token usage.
Verify connectivity
Create an item
Delete an item
Get collection details
Get file details
Get item details
Get current user
List recent activity
List collections
List fields
List files
List items
List roles
List users
Search items
Update an item
Connect Directus to AutoGen via MCP
Follow these steps to wire Directus into AutoGen. The entire setup takes under two minutes — your credentials stay safe behind the Vinkius.
Install AutoGen
pip install "autogen-ext[mcp]"Replace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenIntegrate into workflow
Explore tools
Why Use AutoGen with the Directus MCP Server
AutoGen provides unique advantages when paired with Directus through the Model Context Protocol.
Multi-agent conversations: multiple AutoGen agents discuss, delegate, and collaboratively use Directus tools to solve complex tasks
Role-based architecture lets you assign Directus tool access to specific agents. a data analyst queries while a reviewer validates
Human-in-the-loop support: agents can pause for human approval before executing sensitive Directus tool calls
Code execution sandbox: AutoGen agents can write and run code that processes Directus tool responses in an isolated environment
Directus + AutoGen Use Cases
Practical scenarios where AutoGen combined with the Directus MCP Server delivers measurable value.
Collaborative analysis: one agent queries Directus while another validates results and a third generates the final report
Automated review pipelines: a researcher agent fetches data from Directus, a critic agent evaluates quality, and a writer produces the output
Interactive planning: agents negotiate task allocation using Directus data to make informed decisions about resource distribution
Code generation with live data: an AutoGen coder agent writes scripts that process Directus responses in a sandboxed execution environment
Example Prompts for Directus in AutoGen
Ready-to-use prompts you can give your AutoGen agent to start working with Directus immediately.
"Show me all collections in my Directus instance and the fields for the 'articles' collection."
"Create a new article titled 'AI in Healthcare 2025' with status 'draft' and search for existing articles about AI."
"Show me the recent activity log and list all users with their roles."
Troubleshooting Directus MCP Server with AutoGen
Common issues when connecting Directus to AutoGen through the Vinkius, and how to resolve them.
McpWorkbench not found
pip install "autogen-ext[mcp]"Directus + AutoGen FAQ
Common questions about integrating Directus MCP Server with AutoGen.
