
directus-mcp
Serveur MCP pour l'intégration de l'API Directus
3 years
Works with Finder
4
Github Watches
2
Github Forks
4
Github Stars
Directus MCP Server
A Node.js server implementing Model Context Protocol (MCP) for Directus CMS. Enable AI Clients to interact with the Directus API through the Model Context Protocol (MCP).
ℹ Prerequisites
▶️ Quick start
-
Get your Directus API credentials
- Go to your Directus instance
- Create a static access token or get your email and password
- Keep these credentials secure
-
Add to your AI editor
{ "mcpServers": { "directus": { "command": "npx", "args": ["-y", "@pixelsock/directus-mcp@latest"], "env": { "DIRECTUS_URL": "https://your-directus-instance.com", "DIRECTUS_ACCESS_TOKEN": "YOUR_ACCESS_TOKEN" } } } }
Alternatively, you can use email/password authentication:
{ "mcpServers": { "directus": { "command": "npx", "args": ["-y", "@pixelsock/directus-mcp@latest"], "env": { "DIRECTUS_URL": "https://your-directus-instance.com", "DIRECTUS_EMAIL": "your-email@example.com", "DIRECTUS_PASSWORD": "your-password" } } } }
For Cursor:
- Go to Settings → Cursor Settings → MCP
- Click
+ Add New Global MCP Server
- Paste configuration
- Replace placeholder values with your Directus credentials
- Save and restart Cursor
For Claude Desktop:
- Open Settings → Developer
- Click
Edit Config
- Open
claude_desktop_config.json
in a code editor and paste configuration - Replace placeholder values with your Directus credentials
- Save and restart Claude
❓ Troubleshooting
If you are having issues starting the server in your MCP client e.g. Cursor or Claude Desktop, please try the following.
Ensure you have valid Directus credentials
- Verify that your Directus URL is correct and accessible
- Check that your access token or email/password credentials are valid
- Replace the credentials in your MCP client configuration
- Save and restart your MCP client
Ensure you have Node and NPM installed
Run the following commands to confirm you have Node and NPM installed:
node -v
npm -v
Clear your NPM cache
Sometimes clearing your NPM cache can resolve issues with npx
.
npm cache clean --force
🛠️ Available tools
Collections and Items
getItems // Get items from a collection
getItem // Get a single item from a collection by ID
createItem // Create a new item in a collection
updateItem // Update an existing item in a collection
deleteItem // Delete an item from a collection
getCollections // Get all collection schemas
getFields // Get fields for a collection
getRelations // Get relations for a collection
Files
getFiles // Get files from Directus
uploadFile // Upload a file to Directus
Users and Permissions
login // Login to Directus and get an access token
getUsers // Get users from Directus
getCurrentUser // Get the current user info
getRoles // Get roles from Directus
getPermissions // Get permissions from Directus
System
getSystemInfo // Get system information from Directus
getActivity // Get activity logs from Directus
getConfig // Get current configuration information
🚧 Development mode
If you want to run the server in development mode:
-
Clone and install:
git clone https://github.com/pixelsock/directus-mcp.git cd directus-mcp npm install
-
Add your credentials to
.env
:# .env DIRECTUS_URL=https://your-directus-instance.com DIRECTUS_ACCESS_TOKEN=your_token_here # Or use email/password DIRECTUS_EMAIL=your-email@example.com DIRECTUS_PASSWORD=your-password
-
Start development server:
npm run dev
📄 Directus Developer resources
相关推荐
🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.
PDF Traduction de papier scientifique avec formats conservés - 基于 AI 完整保留排版的 PDF 文档全文双语翻译 , 支持 Google / Deepl / Olllama / Openai 等服务 , 提供 CLI / GUI / MCP / DOCKER / ZOTERO
Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.
😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信 (企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Dify 、 Claude 、 GEMINI 、 XAI 、 PPIO 、 OLLAMA 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 ChatGlm 、 Sillytraven 、 MCP 等 LLM 的机器人 / Agent | Plateforme de bots de messagerie instantanée basés sur LLM, prend en charge Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack
Reviews

user_uiKRsCvJ
As a dedicated user of directus-mcp by pixelsock, I am thoroughly impressed with its seamless functionality and user-friendly interface. This application has significantly streamlined my project management process. Highly recommend it for anyone looking to enhance their productivity!

user_DujE58zf
Directus-MCP by Pixelsock is an exceptional tool for managing content. It offers an intuitive interface and seamless integration, enhancing productivity significantly. The customizable features cater to various needs, making it suitable for different projects. Highly recommended for those seeking a reliable and efficient content management solution.

user_7XpkkJ9e
I've been using directus-mcp for a while now, and it is absolutely fantastic! Created by the talented pixelsock, this application offers seamless content management with a user-friendly interface. The robust features and reliable performance have significantly improved my workflow. If you're looking for an efficient solution to manage your projects, directus-mcp is definitely worth checking out.

user_6lTPFpcN
As a dedicated user of directus-mcp, I can confidently say that this product by pixelsock is exceptional. The interface is intuitive and user-friendly, making data management a breeze. It seamlessly integrates with various applications, enhancing productivity and efficiency. Whether you're a developer or a business professional, directus-mcp offers robust features and an excellent user experience. Highly recommended for anyone looking to streamline their project workflows.

user_Olt877JB
I have been using directus-mcp by pixelsock and it's been a game-changer for managing our projects. The intuitive design and user-friendly interface make it easy to navigate and track project progress. It's a solid tool for teams looking to streamline their operations and improve workflow efficiency. Highly recommend checking it out!

user_VMK5ibqg
As a dedicated user of directus-mcp, I can confidently say that this tool, developed by pixelsock, is a game-changer. It offers a seamless and user-friendly experience for managing content. The clean interface and powerful features make it an essential tool for any project. Highly recommended!

user_3Ik7kpDF
As a dedicated user of directus-mcp by pixelsock, I am thoroughly impressed with its capabilities. It's an exceptional tool for managing content, offering a seamless experience with a user-friendly interface. The integration and functionality provided are top-notch, making it a must-have for any content management system. Highly recommend!

user_mYneqTWZ
Directus-mcp by pixelsock is a fantastic tool for managing your content with ease. Its seamless integration and user-friendly interface make content management a breeze. Highly recommended for teams looking for an efficient and reliable solution!

user_ZaXs3UOZ
I have been using directus-mcp by pixelsock for some time now and it has significantly streamlined my workflow. The intuitive interface combined with its powerful features makes managing content a breeze. Highly recommended for anyone looking for a reliable content management solution!