4,500+ servers built on MCP Fusion
Vinkius
Directus logo
Vinkius
Cursor logo

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.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

Directus MCP on Cursor AI Code Editor MCP Client Directus MCP on Claude Desktop App MCP Integration Directus MCP on OpenAI Agents SDK MCP Compatible Directus MCP on Visual Studio Code MCP Extension Client Directus MCP on GitHub Copilot AI Agent MCP Integration Directus MCP on Google Gemini AI MCP Integration Directus MCP on Lovable AI Development MCP Client Directus MCP on Mistral AI Agents MCP Compatible Directus MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
Cursor

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.

GDPR Free for Subscribers

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.

Setup guide

Set up Directus MCP in Cursor

Prerequisites

  • Cursor installed (macOS, Windows, or Linux)
  • Active Vinkius subscription with a valid endpoint token
  1. 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. 2

    Add the Directus MCP

    Cursor will create or open .cursor/mcp.json in your project root. Paste the JSON snippet on the right. Replace [YOUR_TOKEN_HERE] with your endpoint token from cloud.vinkius.com.

  3. 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. 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.

.cursor/mcp.json
{
  "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

Add the server to your `.cursor/mcp.json` file in your project root or global directory. Include your Vinkius endpoint URL and authentication token in the configuration object. Once configured, enable Agent mode in the Cursor chat panel to start calling the database tools.
Yes, Cursor can. By calling `get_collection_details`, the agent extracts the structural properties driving your active tables. It then translates these properties into TypeScript interfaces directly in your open workspace files, ensuring type safety across your codebase.
No, these tools only run when you explicitly invoke the Cursor agent or composer. Standard autocomplete and inline code generation remain fast because they do not trigger active network calls to the MCP server unless requested.
Yes, `list_directus_files` retrieves the exact structural matching to verify media storage files. This allows your agent to check for existing assets and generate code that references the correct file paths from your Directus storage bucket.
Your Directus API tokens and database connection strings are never exposed to Cursor's indexing servers. Vinkius manages all authentication credentials within a secure, ephemeral sandbox. This zero-trust MCP architecture ensures that database payloads pass directly to your editor over encrypted local transport.

Start using the Directus MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 10 tools

We've already built the connector for Directus. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 10 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.