Provides task management functionality through a Docker container, allowing deployment of the MCP server in containerized environments.
Supports task management in Markdown files with automatic formatting of task lists, including statuses and checkboxes.
Requires Node.js ≥20 for running the MCP server, with full support for Node.js environments.
Available as an npm package for easy installation and integration into Node.js projects.
Offers full TypeScript support with Zod validation for type-safe task management operations.
Allows managing tasks in YAML format, providing configuration-friendly representation for task data.
Uses Zod for runtime type validation of task data, ensuring data integrity and type safety.
MCP Tasks 📋
An efficient task manager. Designed to minimize tool confusion and maximize LLM budget efficiency while providing powerful search, filtering, and organization capabilities across multiple file formats (Markdown, JSON, YAML)
📚 Table of Contents
- ✨ Features
- 🚀 Quick Start
- 🤖 AI Integration Tips
- 🔧 Installation Examples
- 📁 Supported File Formats
- 🛠️ Available Tools
- 🎛️ Environment Variables
- 📊 File Formats
- 🖥️ Server Usage
- 💻 CLI Usage
- 🧪 Development
- 🛠️ Troubleshooting
- Why not let AI edit files directly?
- 🤝 Contributing
- 📄 License
- 🔗 Links
✨ Features
- ⚡ Ultra-efficient design: Minimal tool count (5 tools) to reduce AI confusion
- 🎯 Budget-optimized: Batch operations, smart defaults and auto-operations minimize LLM API calls
- 🚀 Multi-format support: Markdown (
.md
), JSON (.json
), and YAML (.yml
) task files - 🔍 Powerful search: Case-insensitive text/status filtering with OR logic, and ID-based lookup
- 📊 Smart organization: Status-based filtering with customizable workflow states
- 🎯 Position-based indexing: Easy task ordering with 0-based insertion
- 📁 Multi-source support: Manage multiple task files simultaneously
- 🔄 Real-time updates: Changes persist automatically to your chosen format
- 🤖 Auto WIP management: Automatically manages work-in-progress task limits
- 🚫 Duplicate prevention: Automatically prevents duplicate tasks
- 🛡️ Type-safe: Full TypeScript support with Zod validation
- 🔒 Ultra-safe: AI has no way to rewrite or delete your tasks (unless you enable it), only add and move them
- 📅 Optional reminders: Enable a dedicated Reminders section the AI constantly sees and can maintain
🚀 Quick Start
Add this to ~/.cursor/mcp.json
for Cursor, ~/.config/claude_desktop_config.json
for Claude Desktop.
Option 1: NPX (Recommended)
Option 2: Docker
🤖 AI Integration Tips
To encourage the AI to use these tools, you can start with a prompt like the following, with any path you want with .md (recommended), .json, .yml:
If you are telling it about new or updated tasks, you can append this to the end of your prompt:
Adding tasks while AI works: To safely add tasks without interfering with AI operations, use the CLI from a separate terminal:
🔧 Installation Examples
Full configuration with custom environment:
HTTP transport for remote access:
First run the server:
Then:
📁 Supported File Formats
Extension | Format | Best For | Auto-Created |
---|---|---|---|
.md | Markdown | Human-readable task lists | ✅ |
.json | JSON | Structured data, APIs | ✅ |
.yml | YAML | Configuration files | ✅ |
Format is auto-detected from file extension. All formats support the same features and can be mixed in the same project.
Recommended: Markdown (.md
) for human readability and editing
⚠️ Warning: Start with a new file rather than using pre-existing task files to avoid losing non-task content.
🛠️ Available Tools
When PREFIX_TOOLS=true
(default), all tools are prefixed with tasks_
:
Tool | Description | Parameters |
---|---|---|
tasks_setup | Initialize a task file (creates if missing, supports .md , .json , .yml ) | source_path , workspace? |
tasks_search | Search tasks with filtering | source_id , statuses? , terms? , ids? |
tasks_add | Add new tasks to a status | source_id , texts[] , status , index? |
tasks_update | Update tasks by ID | source_id , ids[] , status , index? |
tasks_summary | Get task counts and work-in-progress | source_id |
ID Format: Both source_id
(from file path) and task id
(from task text) are 4-character alphanumeric strings (e.g., "xK8p"
, "m3Qw"
).
Tool Examples
Setup a task file:
Add tasks:
Search and filter:
Update tasks status:
Get overview:
🎛️ Environment Variables
Variable | Default | Description |
---|---|---|
TRANSPORT | stdio | Transport mode: stdio or http |
PORT | 4680 | HTTP server port (when TRANSPORT=http ) |
PREFIX_TOOLS | true | Prefix tool names with tasks_ |
STATUS_WIP | In Progress | Work-in-progress status name |
STATUS_TODO | To Do | ToDo status name |
STATUS_DONE | Done | Completed status name |
STATUS_REMINDERS | Reminders | Reminders for the AI (empty string to disable) |
STATUS_NOTES | Notes | Notes/non-actionable tasks (empty string to disable) |
STATUSES | Backlog | Comma-separated additional statuses |
AUTO_WIP | true | One WIP moves rest to To Do, first To Do to WIP when no WIP's |
KEEP_DELETED | true | Retain deleted tasks (AI can't lose you tasks!) |
INSTRUCTIONS | ... | Included in all tool responses, for the AI to follow |
SOURCES_PATH | ./sources.json | File to store source registry (internal) |
DEBUG | false | if true, enable the tasks_debug tool |
Advanced Configuration Examples
Optional, the WIP/ToDo/Done statuses can be included to control their order.
Custom workflow statuses:
📊 File Formats
Markdown (.md
) - Human-Readable
JSON (.json
) - Structured Data
YAML (.yml
) - Configuration-Friendly
🖥️ Server Usage
💻 CLI Usage
You can also use mcp-tasks
(or npx mcp-tasks
) as a command-line tool for quick task management:
CLI Features:
- Direct access to all MCP tool functionality
- JSON output for easy parsing and scripting
- Same reliability and duplicate prevention as MCP tools
- Perfect for automation scripts and CI/CD pipelines
🧪 Development
🛠️ Troubleshooting
Requirements
- Node.js ≥20 - This package requires Node.js version 20 or higher
Common Issues
ERR_MODULE_NOT_FOUND when running npx-tasks
- Problem: Error like
Cannot find module '@modelcontextprotocol/sdk/dist/esm/server/index.js'
when runningnpx mcp-tasks
- Cause: Corrupt or incomplete npx cache preventing proper dependency resolution
- Solution: Clear the npx cache and try again:
- Note: This issue can occur on both Node.js v20 and v22, and the cache clear resolves it
Where are my tasks stored?
- Tasks are stored in the file path you specified by the AI in
tasks_setup
- The absolute path is returned in every tool call response under
source.path
- If you forgot the location, check any tool response or ask the AI to show it to you
Lost content in Markdown files:
- ⚠️ The tools will rewrite the entire file, preserving only tasks under recognized status sections
- Non-task content (notes, documentation) may be lost when tools modify the file
- Use a dedicated task file rather than mixing tasks with other content
Why not just have AI edit the task files directly?
- File parsing complexity: AI must read entire files, parse markdown structure, and understand current state - expensive and error-prone
- Multi-step operations: Moving a task from "In Progress" to "Done" requires multiple
read_file
,grep_search
,sed
calls to locate and modify correct sections - Context loss: Large task files forcing AI to work with incomplete chunks due to token restrictions and lose track of overall structure
- State comprehension: AI struggles to understand true project state when reading fragmented file sections - which tasks are actually in progress?
- Edit precision: Manual editing risks corrupting markdown formatting, losing tasks, or accidentally modifying the wrong sections
- Concurrent editing conflicts: When AI directly edits files, humans can't safely make manual changes without creating conflicts or overwrites
- Token inefficiency: Reading+parsing+editing cycles consume far more tokens than structured tool calls with clear inputs/outputs
- Safety: AI can accidentally change or delete tasks when directly editing files, but with these tools it cannot rewrite or delete your tasks
🤝 Contributing
We welcome contributions! Please:
- Fork the repository
- Create a feature branch:
git checkout -b feature-name
- Make your changes with tests
- Run:
npm run lint:full
- Submit a pull request
📄 License
MIT License - see LICENSE for details.
🔗 Links
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A comprehensive and efficient Model Context Protocol server for task management that works with Claude, Cursor, and other MCP clients, providing powerful search, filtering, and organization capabilities across multiple file formats.
- 📚 Table of Contents
- ✨ Features
- 🚀 Quick Start
- 🤖 AI Integration Tips
- 🔧 Installation Examples
- 📁 Supported File Formats
- 🛠️ Available Tools
- 🎛️ Environment Variables
- 📊 File Formats
- 🖥️ Server Usage
- 💻 CLI Usage
- 🧪 Development
- 🛠️ Troubleshooting
- Why not just have AI edit the task files directly?
- 🤝 Contributing
- 📄 License
- 🔗 Links
Related MCP Servers
- AsecurityAlicenseAqualityModel Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.Last updated -101,147167JavaScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.Last updated -325TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server that allows Claude Desktop to manage and execute tasks in a queue-based system, supporting planning, execution, and completion phases.Last updated -101,1475TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables advanced task and project management in Todoist via Claude Desktop and other MCP-compatible clients.Last updated -5691JavaScriptMIT License