MCP Server
Troubleshooting
Common issues and solutions when setting up and using the Directus MCP server.
Having trouble with your MCP setup? Here are the most common fixes.
Connection Issues
MCP Server Not Found
Check that MCP is enabled in Settings → AI → Model Context Protocol and your URL includes the /mcp
endpoint:
- ✅
https://your-site.com/mcp
- ❌
https://your-site.com
Authentication Failures
- Verify your token is generated and saved in Directus
- Check your MCP user has a role assigned
- Test your token with curl:
curl -H "Authorization: Bearer your-token" \
https://your-site.com/items/directus_collections
Permission Errors
Access Denied
Your MCP user needs appropriate permissions:
- Content operations: Read/write access to target collections
- Schema operations: Administrator role required
Delete Operations Blocked
Enable "Allow Deletes" in Settings → AI → Model Context Protocol even if your user has delete permissions.
Client Issues
Claude Desktop
- Check JSON syntax in configuration (no trailing commas)
- Restart Claude Desktop after config changes
- Verify token in environment variables
Claude Code (VS Code)
- Configuration goes in VS Code settings, not Claude Desktop
- Search for "Claude MCP" in VS Code settings
- Restart VS Code after changes
ChatGPT
- Requires Pro or Teams subscription
- Use Bearer token format:
Bearer your-token
Cursor
- Put
.cursor/mcp.json
in project root - Check file permissions and JSON syntax
Quick Debugging
Test with simple operations:
- "Please call the system prompt tool"
- "What collections do I have?"
- "Show me one item from collection-name"
Get once-a-month release notes & real‑world code tips...no fluff. 🐰