Manage tasks in Directus with automatic schema synchronization.
A Model Context Protocol (MCP) server for managing tasks in Directus with automatic schema synchronization. This server allows you to interact with your Directus PostgreSQL database through AI assistants like Claude or Cursor.
Clone and setup the project:
npm install
npm run build
Configure your Directus connection:
The server uses the following environment variables:
DIRECTUS_URL
: Your Directus instance URL (default: https://te9-pg-api.up.railway.app/)DIRECTUS_TOKEN
: Your Directus API token (default: mo7tahjWjKgHW-42_tEMThJiqBstu2V_)DIRECTUS_USER_EMAIL
: Alternative to token - user emailDIRECTUS_USER_PASSWORD
: Alternative to token - user password.cursor/mcp.json
file in your project root:
{
"mcpServers": {
"directus-tasks": {
"command": "node",
"args": ["dist/index.js"],
"env": {
"DIRECTUS_URL": "https://te9-pg-api.up.railway.app/",
"DIRECTUS_TOKEN": "mo7tahjWjKgHW-42_tEMThJiqBstu2V_"
}
}
}
}
{
"mcpServers": {
"directus-tasks": {
"command": "node",
"args": ["/absolute/path/to/your/project/dist/index.js"],
"env": {
"DIRECTUS_URL": "https://te9-pg-api.up.railway.app/",
"DIRECTUS_TOKEN": "mo7tahjWjKgHW-42_tEMThJiqBstu2V_"
}
}
}
}
Important: Replace /absolute/path/to/your/project
with the actual absolute path to your project directory.
The MCP server provides the following tools:
sync-task-schema
: Synchronizes the Task model schema with your Directus databaselist-tasks
: List all tasks with optional filtering by status, priority, and limitget-task
: Get a specific task by IDcreate-task
: Create a new taskupdate-task
: Update an existing taskdelete-task
: Delete a taskget-user-info
: Get current user informationThe Task model includes the following fields:
interface Task {
id?: string; // UUID primary key
title: string; // Required task title
description?: string; // Optional description
status: 'todo' | 'in_progress' | 'completed'; // Task status
priority: 'low' | 'medium' | 'high'; // Task priority
due_date?: string; // Optional due date (ISO format)
created_at?: string; // Auto-generated creation timestamp
updated_at?: string; // Auto-generated update timestamp
user_created?: string; // Auto-generated user who created
user_updated?: string; // Auto-generated user who updated
}
Please sync the task schema with the database
Create a new task with title "Implement user authentication" and high priority
Show me all tasks with status "in_progress"
Update task with ID [task-id] to completed status
Show me details for task [task-id]
src/
├── models/
│ └── Task.ts # Task model with TypeScript interfaces and Zod schemas
├── services/
│ └── SchemaManager.ts # Schema management service
└── index.ts # Main MCP server implementation
src/models/
# Install dependencies
npm install
# Build the project
npm run build
# Development mode (watch for changes)
npm run dev
# Start the server directly
npm start
The server logs errors to stderr. You can check the logs in your AI assistant's console or terminal.
MIT License - see LICENSE file for details
Manage various router types using natural language. Requires router credentials to be configured.
A simple note-taking server for recording and managing notes with AI models, using AWS DynamoDB for storage.
A sound tool for MCP-compatible IDEs like Cursor. Plays sounds for events like completion, error, and notification.
Monitor team productivity, usage, and spending for AI assistants using the Cursor Admin API.
Interact with Atlassian products like Confluence and Jira, supporting both Cloud and Server/Data Center deployments.
Automate your local browser
A comprehensive travel planning server for flight search, accommodation booking, currency exchange, and weather forecasting.
Premium memory consistent across all AI applications.
A comprehensive toolkit for text processing, formatting, and analysis.
Performs basic arithmetic calculations. A TypeScript-based server demonstrating core MCP concepts.