MCPcopy
hub / github.com/directus/directus

github.com/directus/directus @v12.1.1 sqlite

repository ↗ · DeepWiki ↗ · release v12.1.1 ↗
6,066 symbols 26,132 edges 3,067 files 408 documented · 7%
README

Directus

The Collaborative Backend for Builders & AI

Connect any SQL database and get instant REST and GraphQL APIs, a visual management Studio, and a native MCP server for AI agents.

45M+ downloads · 500K+ projects deployed

[!NOTE] Free for most organizations. Under $5M annual revenue and 50 employees? Directus is completely free. Apply for an Open Innovation Grant license and get a key in minutes. Learn more about our license.


🐇 Introduction

Directus wraps any SQL database with a REST and GraphQL API layer and a visual Studio. Engineers control schema and access. Non-technical teammates and AI agents work directly with live data. No tickets, no boilerplate.

  • REST & GraphQL APIs: Automatically generated from your database schema. No configuration required.
  • Visual Studio: A full management interface for non-technical teammates.
  • AI Assistant: Embedded in the Studio. Creates, translates, and takes direct action on your content.
  • Native MCP Server: Connect Claude, Cursor, ChatGPT, or any MCP-compatible tool directly to your data.
  • Policy-based Access Control: Granular permissions down to the field level, for humans and AI agents alike.
  • Bring your own database: Postgres, MySQL, MariaDB, MS SQL, SQLite, OracleDB, CockroachDB, and more.
  • Fully extensible: Custom endpoints, hooks, interfaces, and modules.
  • Self-host or cloud: Run locally, on your own infrastructure, or on Directus Cloud.

Learn more about Directus · Documentation


🤖 AI & MCP

Directus includes a built-in AI Assistant and a native MCP server. AI works with your live data, not a copy of it.

  • AI Assistant: Creates content, runs translations, and triggers workflows directly from the Studio.
  • Native MCP Server: Any MCP-compatible agent or tool can connect to Directus. Same access policies that apply to your team apply to AI.
  • Governed by default: AI agents operate under the same role-based permissions as human users. No special cases, no workarounds.

Read the AI & MCP docs


🚀 Directus Cloud

Directus Cloud provisions a fully managed project in under 90 seconds.

  • Centrally managed: Self-service dashboard to create and monitor all your projects in one place
  • All-in-one solution: Database, storage, and auto-scaling included with a global CDN
  • Simple setup: Select a region and get a running instance immediately

Create a Directus Cloud Project


⚡ One-Click Deployment Options

Deploy on Railway

One click. Fully provisioned with PostgreSQL, Redis, and S3-compatible storage, connected via Railway's private network.

Deploy on Railway


🙋 Community Help

The Directus Documentation is a great place to start, or explore these other channels:


❤️ Contributing

Read our Contributing Guide before submitting pull requests.

Report security vulnerabilities per our Security Policy.

Built by our core team and contributors. Thank you.


📄 License

Directus is licensed under the Monospace Sustainable Core License (MSCL) 1.0, a source-available license derived from the Fair Core License.

Free for most builders. Organizations under $5M in annual revenue and 50 employees can use Directus for free under the Open Innovation Grant.

Free Core Tier. A free tier is available to everyone to explore and build on Directus without a commercial license.

Commercial License. Organizations above those thresholds using advanced or enterprise features require a commercial license. See pricing for details.

Extension points exported contracts — how you extend this code

Cache (Interface)
(no doc) [8 implementers]
packages/memory/src/cache/types/class.ts
TusDriver (Interface)
(no doc) [12 implementers]
packages/storage/src/index.ts
SchemaInspector (Interface)
(no doc) [9 implementers]
packages/schema/src/types/schema-inspector.ts
CollectionsService (Interface)
* The CollectionsService [2 implementers]
packages/types/src/services.ts
SynchronizationManager (Interface)
(no doc) [4 implementers]
api/src/synchronization.ts
TimeStructure (Interface)
* Structural type for time values to avoid nominal typing issues. * Compatible with Time, CalendarDateTime, and ZonedDa
app/src/utils/format-date-picker-model-value.ts
RestClient (Interface)
(no doc) [1 implementers]
sdk/src/rest/types.ts
Validator (Interface)
(no doc)
packages/extensions-sdk/src/cli/commands/validators/index.ts

Core symbols most depended-on inside this repo

getUrl
called by 1016
tests/blackbox/common/config.ts
set
called by 902
packages/memory/src/kv/types/class.ts
string
called by 709
packages/schema-builder/src/field.ts
request
called by 573
sdk/src/rest/types.ts
field
called by 570
packages/schema-builder/src/collection.ts
get
called by 560
packages/memory/src/kv/types/class.ts
get
called by 512
api/src/synchronization.ts
from
called by 435
app/src/utils/vector2.ts

Shape

Function 3,794
Method 1,465
Class 415
Interface 379
Enum 13

Languages

TypeScript100%

Modules by API surface

packages/types/src/services.ts133 symbols
api/src/services/mcp-oauth/index.ts44 symbols
tests/e2e/tests/auth/mcp-oauth-utils.ts41 symbols
api/src/extensions/manager.ts35 symbols
packages/storage-driver-supabase/src/index.ts33 symbols
api/src/websocket/collab/room.ts33 symbols
api/src/synchronization.ts33 symbols
packages/schema-builder/src/field.ts31 symbols
api/src/deployment/drivers/netlify.ts27 symbols
packages/storage-driver-cloudinary/src/index.ts26 symbols
app/src/views/private/components/comparison/use-comparison.ts26 symbols
api/src/services/payload.ts26 symbols

Dependencies from manifests, versioned

@ai-sdk/anthropiccatalog: · 1×
@ai-sdk/devtoolscatalog: · 1×
@ai-sdk/googlecatalog: · 1×
@ai-sdk/openaicatalog: · 1×
@ai-sdk/openai-compatiblecatalog: · 1×
@ai-sdk/vuecatalog: · 1×
@authenio/samlify-node-xmllintcatalog: · 1×
@aws-sdk/client-s3catalog: · 1×
@aws-sdk/client-sesv2catalog: · 1×
@aws-sdk/lib-storagecatalog: · 1×
@azure/storage-blobcatalog: · 1×
@braintrust/otelcatalog: · 1×

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add directus \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact