MCP Tasks
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.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Tasks add 'review quarterly report' to my tasks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Task Manager MCP Server
✨ 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)
{
"mcpServers": {
"mcp-tasks": {
"command": "npx",
"args": ["-y", "mcp-tasks"]
}
}
}Option 2: Docker
{
"mcpServers": {
"mcp-tasks": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"flesler/mcp-tasks"
]
}
}
}🤖 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:
Use mcp-tasks tools to track our work in path/to/tasks.mdIf you are telling it about new or updated tasks, you can append this to the end of your prompt:
use mcp-tasksAdding tasks while AI works: To safely add tasks without interfering with AI operations, use the CLI from a separate terminal:
npx mcp-tasks add "Your new task text" "To Do" 0🔧 Installation Examples
Full configuration with custom environment:
{
"mcpServers": {
"mcp-tasks": {
"command": "npx",
"args": ["-y", "mcp-tasks"],
"env": {
"STATUS_WIP": "In Progress",
"STATUS_TODO": "To Do",
"STATUS_DONE": "Done",
"STATUS_REMINDERS": "Reminders",
"STATUS_NOTES": "Notes",
"STATUSES": "In Progress,To Do,Done,Backlog,Reminders,Notes",
"AUTO_WIP": "true",
"PREFIX_TOOLS": "true",
"KEEP_DELETED": "true",
"TRANSPORT": "stdio",
"PORT": "4680",
"INSTRUCTIONS": "Use mcp-tasks tools when the user mentions new or updated tasks"
}
}
}
}HTTP transport for remote access:
First run the server:
TRANSPORT=http PORT=4680 npx mcp-tasksThen:
{
"mcpServers": {
"mcp-tasks": {
"type": "streamableHttp",
"url": "http://localhost:4680/mcp"
}
}
}📁 Supported File Formats
Extension | Format | Best For | Auto-Created |
| Markdown | Human-readable task lists | ✅ |
| JSON | Structured data, APIs | ✅ |
| 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 |
| Initialize a task file (creates if missing, supports |
|
| Search tasks with filtering |
|
| Add new tasks to a status |
|
| Update tasks by ID |
|
| Get task counts and work-in-progress |
|
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:
tasks_setup({
workspace: "/path/to/project",
source_path: "tasks.md" // relative to workspace or absolute
// source_path: "tasks.json"
// source_path: "tasks.yml"
})
// Returns: {"source":{"id":"xK8p","path":"/path/to/project/tasks.md"},"Backlog":0,"To Do":0,"In Progress":0,"Done":0,"inProgress":[]}
// Source ID (4-char alphanumeric) is used for all subsequent operationsAdd tasks:
tasks_add({
source_id: "xK8p", // From setup response
texts: ["Implement authentication", "Write tests"],
status: "To Do",
index: 0 // Add at top (optional)
})
// Returns: {"source":{"id":"xK8p","path":"/absolute/path/to/tasks.md"},"Backlog":0,"To Do":2,"In Progress":0,"Done":0,"inProgress":[],"tasks":[{"id":"m3Qw","text":"Implement authentication","status":"To Do","index":0},{"id":"p9Lx","text":"Write tests","status":"To Do","index":1}]}Search and filter:
tasks_search({
source_id: "xK8p", // From setup response
terms: ["auth", "deploy"], // Search terms (text or status, OR logic)
statuses: ["To Do"], // Filter by status
ids: ["m3Qw", "p9Lx"] // Filter by specific task IDs
})
// Returns: [{"id":"m3Qw","text":"Implement authentication","status":"To Do","index":0}]Update tasks status:
tasks_update({
source_id: "xK8p", // From setup response
ids: ["m3Qw", "p9Lx"], // Task IDs from add/search responses
status: "Done" // Use "Deleted" to remove
})
// Returns: {"source":{"id":"xK8p","path":"/absolute/path/to/tasks.md"},"Backlog":0,"To Do":0,"In Progress":0,"Done":2,"inProgress":[],"tasks":[{"id":"m3Qw","text":"Implement authentication","status":"Done","index":0},{"id":"p9Lx","text":"Write tests","status":"Done","index":1}]}Get overview:
tasks_summary({
source_id: "xK8p" // From setup response
})
// Returns: {"source":{"id":"xK8p","path":"/absolute/path/to/tasks.md"},"Backlog":0,"To Do":0,"In Progress":1,"Done":2,"inProgress":[{"id":"r7Km","text":"Fix critical bug","status":"In Progress","index":0}]}🎛️ Environment Variables
Variable | Default | Description |
|
| Transport mode: |
|
| HTTP server port (when |
|
| Prefix tool names with |
|
| Work-in-progress status name |
|
| ToDo status name |
|
| Completed status name |
|
| Reminders for the AI (empty string to disable) |
|
| Notes/non-actionable tasks (empty string to disable) |
|
| Comma-separated additional statuses |
|
| One WIP moves rest to To Do, first To Do to WIP when no WIP's |
|
| Retain deleted tasks (AI can't lose you tasks!) |
|
| Included in all tool responses, for the AI to follow |
|
| File to store source registry (internal) |
|
| if true, enable the |
Advanced Configuration Examples
Optional, the WIP/ToDo/Done statuses can be included to control their order.
Custom workflow statuses:
{
"env": {
"STATUSES": "WIP,Pending,Archived,Done,To Review",
"STATUS_WIP": "WIP",
"STATUS_TODO": "Pending",
"AUTO_WIP": "false"
}
}📊 File Formats
Markdown (.md) - Human-Readable
# Tasks - File Name
## In Progress
- [ ] Write user registration
## To Do
- [ ] Implement authentication
- [ ] Set up CI/CD pipeline
## Backlog
- [ ] Plan architecture
- [ ] Design database schema
## Done
- [x] Set up project structure
- [x] Initialize repository
## Reminders
- [ ] Don't move to Done until you verified it works
- [ ] After you move to Done, commit all the changes, use the task name as the commit message
## Notes
- [ ] The task tools were really great to use!JSON (.json) - Structured Data
{
"groups": {
"In Progress": [
"Write user registration"
],
"To Do": [
"Implement authentication",
"Set up CI/CD pipeline"
],
"Backlog": [
"Plan architecture",
"Design database schema"
],
"Done": [
"Set up project structure",
"Initialize repository"
],
"Reminders": [
"Don't move to Done until you verified it works",
"After you move to Done, commit all the changes, use the task name as the commit message"
],
"Notes": [
"The task tools were really great to use!"
]
}
}YAML (.yml) - Configuration-Friendly
groups:
"In Progress":
- Write user registration
"To Do":
- Implement authentication
- Set up CI/CD pipeline
Backlog:
- Plan architecture
- Design database schema
Done:
- Set up project structure
- Initialize repository
Reminders:
- Don't move to Done until you verified it works
- After you move to Done, commit all the changes, use the task name as the commit message🖥️ Server Usage
# Show help
mcp-tasks --help
# Default: stdio transport
mcp-tasks
# HTTP transport
TRANSPORT=http mcp-tasks
TRANSPORT=http PORT=8080 mcp-tasks
# Custom configuration
STATUS_WIP="Working" AUTO_WIP=false mcp-tasks💻 CLI Usage
You can also use mcp-tasks (or npx mcp-tasks) as a command-line tool for quick task management:
# Setup a task file
mcp-tasks setup tasks.md $PWD # Setup with workspace
# Add tasks
mcp-tasks add "Implement authentication" # Defaults to "To Do" status
mcp-tasks add "Write tests" "Backlog" # Add with specific status
mcp-tasks add "Fix critical bug" "In Progress" 0 # Add at top (index 0)
# Search tasks
mcp-tasks search # All tasks
mcp-tasks search "" "auth,login" # Search for specific terms
mcp-tasks search "To Do,Done" "" # Filter by statuses
mcp-tasks search "In Progress" "bug" # Filter by status and search terms
# Update task status (comma-separated IDs)
mcp-tasks update m3Qw,p9Lx Done
# Get summary
mcp-tasks summary
# Add a reminder (feature must be enabled with REMINDERS=true)
mcp-tasks add "Don't move to Done until you verified it works" RemindersCLI 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
# Clone and setup
git clone https://github.com/flesler/mcp-tasks
cd mcp-tasks
npm install
# Development mode (auto-restart)
npm run dev # STDIO transport
npm run dev:http # HTTP transport on port 4680
# Build and test
npm run build # Compile TypeScript
npm run lint # Check code style
npm run lint:full # Build + lint🛠️ 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-tasksCause: Corrupt or incomplete npx cache preventing proper dependency resolution
Solution: Clear the npx cache and try again:
npx clear-npx-cache npx mcp-tasksNote: 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_setupThe absolute path is returned in every tool call response under
source.pathIf 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,sedcalls to locate and modify correct sectionsContext 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-nameMake your changes with tests
Run:
npm run lint:fullSubmit a pull request
📄 License
MIT License - see LICENSE for details.
🔗 Links
Available Tools
5 toolstasks_addB
Add new tasks with a specific status. It's faster and cheaper if you use this in batch. User can add atomically while AI works using the CLI add tool
Inputs: texts (required), status (required), source_id, index.
tasks_searchBRead-only
Search tasks from specific statuses with optional text & ID filtering
Inputs: source_id, statuses, terms, ids, +1 more.
tasks_setupA
Initializes an source file from a path
Always call once per conversation when asked to use these tools
Ask the user to clarify the file path if not given, before calling this tool
Creates the file if it does not exist
Returns the source ID for further use
Use mcp-tasks tools when the user mentions new or updated tasks
Inputs: source_path (required), workspace.
tasks_summaryARead-only
Get per-status task counts and the WIP task(s). Redundant right after tasks_add/tasks_update
Inputs: source_id.
tasks_updateA
Update tasks in bulk by ID to a different status. Returns complete summary no need to call tasks_summary afterwards. Prevents AI accidentally rename or deleting tasks during mass updates, not even possible
Inputs: ids (required), status (required), source_id, index.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Most tools have distinct purposes: add, search, update, and summary are clearly differentiated. However, tasks_setup is ambiguous—it initializes a source file but overlaps conceptually with tasks_add for task creation, which could cause confusion about when to use each. The descriptions help but don't fully resolve this overlap.
All tool names follow a consistent 'tasks_' prefix with a verb suffix pattern (add, search, setup, summary, update). This uniformity makes the tool set predictable and easy to navigate, with no deviations in naming style.
With 5 tools, this server is well-scoped for task management. Each tool serves a specific function (adding, searching, updating, summarizing, and setup), and the count is appropriate for covering core operations without being overwhelming or insufficient.
The tool set covers basic CRUD-like operations (add, update, search, summary) but has notable gaps. There is no tool for deleting tasks, which limits lifecycle coverage. Additionally, tasks_setup's role is unclear—it initializes files but doesn't integrate cleanly with other task operations, creating potential dead ends in workflows.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Local-first task manager: create, edit, and complete tasks, projects, and checklists via MCP.
ADHD-friendly task management MCP server for ChaTodo: organize tasks, lists, and priorities.
Task management your AI agents can actually run. One line becomes a context-ready task over MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides persistent task management capabilities for AI assistants, allowing them to create, update, and track tasks beyond their usual context limitations.5-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server providing comprehensive task management capabilities with support for project organization, task tracking, and automatic PRD parsing into actionable items.38MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server providing AI assistants with comprehensive project, task, and subtask management capabilities with project-specific storage.2942 npm88MIT
- AlicenseBqualityDmaintenanceA server implementation that enables LLMs to programmatically manage tasks in Todo.txt files using the Model Context Protocol (MCP), supporting operations like adding, completing, deleting, listing, searching, and filtering tasks.1111 npm9ISC