How to Use the Directus MCP in Cursor
Inject live Directus database records and schema details directly into your Cursor code editor while you write code.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Directus MCP to Cursor
Create your Vinkius account to connect Directus to Cursor and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Inspect live Directus schemas within the Cursor editor
`list_schema_collections` retrieves the active database rules defining your PostgreSQL tables directly inside your Cursor composer panel. Your AI agent reads these rules to understand your backend structure while you write frontend queries. This keeps your code aligned with your actual database schema without manual context switching. When you need to write a specific query, `list_collection_fields` inspects the internal arrays of your target collection to verify column configurations. Cursor uses this live metadata to generate typed interfaces and API calls that match your Directus database exactly.
Use this MCP Server to generate code with real database values
`get_single_item` retrieves explicit cloud logging tracing database row UUIDs directly into your Cursor chat. Instead of writing mock data or stubs, your agent uses these real production values to test and write code. You get working code blocks that use actual records from your backend. If you need to fetch multiple records for a component, `list_collection_items` identifies bounded routing spaces to pull live collection items. Cursor reads these items to verify that your UI components render your Directus content correctly.
Mutate Directus collection records directly from Cursor
`create_cms_record` provisions a highly-available JSON payload to write new rows to your database while testing features. You don't need to open your Directus admin panel to seed test data. Just ask the Cursor agent to insert a record, and it executes the tool instantly. For updates, `patch_cms_record` mutates global boundaries by substituting database values using specific IDs. If a test record needs to be deleted, Cursor invokes `wipe_cms_record` to drop the live row from the collection.
Set up Directus MCP in Cursor
Prerequisites
- Cursor installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP Settings
Go to Cursor Settings → MCP or open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) and search for "MCP: Add Server". - 2
Add the Directus MCP
Cursor will create or open
.cursor/mcp.jsonin your project root. Paste the JSON snippet on the right. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Enable Agent mode
Open Composer (
Cmd+I/Ctrl+I) and switch to Agent mode using the dropdown at the top. MCP tools are only available in Agent mode. - 4
Verify the connection
Ask Cursor something like "List my recent Directus transactions." If the MCP tools are loaded correctly, Cursor will call the Directus tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"directus-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Directus. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Directus MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Directus MCP today
We host it, we monitor it, we maintain it. You just paste one token.