Task Manager MCP Server
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., "@Task Manager MCP Server create a high priority task for the team meeting tomorrow"
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.
Task Manager MCP Server
A production-ready Task Manager server built with the Model Context Protocol (MCP), enabling AI assistants to manage tasks through a standardized interface. Built with TypeScript, Zod validation, and the official MCP SDK.
Features
ā 8 Comprehensive Tools: Create, list, update, delete, complete, search tasks, get statistics, and clear completed tasks
š Type-Safe: Built with TypeScript and runtime validation using Zod
š¦ Portable: Uses only official MCP SDK - no vendor lock-in
š³ Dockerized: Ready for containerized deployment
š¾ Persistent Storage: File-based JSON storage with environment-aware configuration
š Advanced Filtering: Filter tasks by status, priority, and category
š Statistics & Analytics: Track task completion rates, overdue items, and more
šÆ Production Ready: Comprehensive error handling and validation
Related MCP server: Todoist MCP Server
Quick Start
Prerequisites
Node.js 18+
npm 9+
Installation
# Clone the repository
git clone https://github.com/aafsar/task-manager-mcp-server.git
cd task-manager-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Run the server
npm startDevelopment Mode
# Run with hot reload
npm run devAvailable Tools
1. create_task
Create a new task with optional metadata.
Parameters:
title(string, required): Task titledescription(string, optional): Detailed descriptionpriority(enum, optional): "low", "medium", or "high" (default: "medium")category(string, optional): Task category (e.g., "work", "personal")dueDate(string, optional): Due date in YYYY-MM-DD format
Example:
{
"title": "Review pull requests",
"description": "Review open PRs for the API project",
"priority": "high",
"category": "work",
"dueDate": "2025-10-05"
}2. list_tasks
List tasks with optional filters.
Parameters:
status(enum, optional): "pending", "in_progress", "completed", or "all" (default: "all")priority(enum, optional): "low", "medium", "high", or "all" (default: "all")category(string, optional): Filter by specific category
Example:
{
"status": "pending",
"priority": "high"
}3. update_task
Update any field of an existing task.
Parameters:
taskId(string, required): Task ID (minimum 8 characters)title(string, optional): New titledescription(string, optional): New descriptionpriority(enum, optional): New prioritycategory(string, optional): New categorydueDate(string, optional): New due datestatus(enum, optional): New status
Example:
{
"taskId": "a1b2c3d4",
"status": "in_progress",
"priority": "high"
}4. complete_task
Mark a task as completed.
Parameters:
taskId(string, required): Task ID (minimum 8 characters)
5. delete_task
Delete a task permanently.
Parameters:
taskId(string, required): Task ID (minimum 8 characters)
6. search_tasks
Search tasks by title or description.
Parameters:
query(string, required): Search query
Example:
{
"query": "review"
}7. get_task_stats
Get comprehensive statistics about all tasks.
Returns:
Total task count
Completion rate
Status breakdown (pending/in progress/completed)
Priority breakdown (high/medium/low)
Category distribution
Overdue task count
Tasks due within 7 days
8. clear_completed
Remove all completed tasks from storage.
Claude Desktop Integration
Configuration
Locate your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server configuration:
{
"mcpServers": {
"task-manager": {
"command": "node",
"args": [
"/absolute/path/to/task-manager-mcp-server/dist/index.js"
]
}
}
}Restart Claude Desktop completely
Look for the hammer icon (šØ) in the input box
Test with: "Create a high priority task called 'Test MCP Integration'"
Testing with MCP Inspector
The MCP Inspector provides a web-based interface for testing tools:
# Launch the inspector
npx @modelcontextprotocol/inspector dist/index.jsThis will open a browser window where you can:
View all available tools
Test tool execution interactively
Inspect request/response data
Debug errors
Docker Deployment
Build and Run with Docker
# Build the image
docker build -t task-manager-mcp .
# Run the container
docker run -it task-manager-mcpUsing Docker Compose
# Start the service
docker-compose up -d
# View logs
docker-compose logs -f
# Stop the service
docker-compose downPersist Data with Docker
Data is automatically persisted to a Docker volume. To back up your tasks:
# Export tasks
docker cp task-manager-mcp:/app/data/tasks.json ./backup-tasks.json
# Import tasks
docker cp ./backup-tasks.json task-manager-mcp:/app/data/tasks.jsonEnvironment Variables
Configure the server using environment variables:
# Data storage directory (default: ./data)
DATA_DIR=/custom/path/to/data
# Log level
LOG_LEVEL=info
# Node environment
NODE_ENV=productionCreate a .env file in the project root:
cp .env.example .env
# Edit .env with your valuesCloud Deployment Options
Railway
# Install Railway CLI
npm install -g @railway/cli
# Login
railway login
# Initialize project
railway init
# Deploy
railway upRender
Connect your GitHub repository
Create a new Web Service
Set build command:
npm install && npm run buildSet start command:
npm startDeploy
Fly.io
# Install flyctl
curl -L https://fly.io/install.sh | sh
# Login
flyctl auth login
# Launch app
flyctl launch
# Deploy
flyctl deployProject Structure
task-manager-mcp-server/
āāā src/
ā āāā index.ts # Main MCP server and request handlers
ā āāā types.ts # TypeScript interfaces and Zod schemas
ā āāā storage.ts # File-based storage module
ā āāā tools.ts # Tool implementation functions
āāā dist/ # Compiled JavaScript (generated)
āāā data/ # Task storage (JSON files, git-ignored)
āāā Dockerfile # Docker configuration
āāā docker-compose.yml # Docker Compose setup
āāā package.json # Dependencies and scripts
āāā tsconfig.json # TypeScript configuration
āāā README.md # This fileDevelopment
Scripts
npm run build # Compile TypeScript to JavaScript
npm run dev # Development mode with hot reload
npm run typecheck # Type check without building
npm run clean # Remove build artifacts
npm start # Run production buildType Safety
The project uses strict TypeScript settings and Zod for runtime validation:
Compile-time safety: TypeScript catches type errors during development
Runtime validation: Zod validates all tool inputs at runtime
Dual schema approach: JSON Schema for MCP protocol, Zod for validation
Adding New Tools
Define Zod schema in
src/types.tsImplement handler function in
src/tools.tsAdd tool definition to
TOOLSarray insrc/index.tsAdd case handler in
tools/callswitch statementRebuild and test with MCP Inspector
Troubleshooting
"Cannot find module" errors
Ensure all imports use .js extension (even for .ts files):
import { Task } from "./types.js"; // ā
Correct
import { Task } from "./types"; // ā WrongTasks not persisting
Check
DATA_DIRenvironment variableVerify write permissions on data directory
Check for errors in server logs
TypeScript compilation errors
# Run type checker to identify issues
npm run typecheck
# Common fix: ensure strict types are used
# Check tsconfig.json module settingsMCP Inspector not connecting
Ensure server builds successfully:
npm run buildCheck Node.js version (must be 18+)
Verify no port conflicts
Check firewall settings
Claude Desktop not showing tools
Verify JSON syntax in config file
Use absolute paths in configuration
Restart Claude Desktop completely (Cmd+R / Ctrl+R not sufficient)
Check server logs for errors
Resources
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For issues and questions:
GitHub Issues: https://github.com/aafsar/task-manager-mcp-server/issues
MCP Discord: https://discord.gg/modelcontextprotocol
Available Tools
8 toolsclear_completedB
Remove all completed tasks
Inputs: no named parameters.
complete_taskC
Mark a task as completed
Inputs: taskId (required).
create_taskC
Create a new task
Inputs: title (required), description, priority, category, +1 more.
delete_taskC
Delete a task by ID
Inputs: taskId (required).
get_task_statsC
Get statistics about all tasks
Inputs: no named parameters.
list_tasksC
List tasks with optional filters
Inputs: status, priority, category.
search_tasksC
Search tasks by title or description
Inputs: query (required).
update_taskC
Update an existing task
Inputs: taskId (required), title, description, priority, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose with no ambiguity. For example, create_task, update_task, delete_task, and complete_task handle different lifecycle actions, while list_tasks, search_tasks, and get_task_stats serve distinct querying functions. The clear separation prevents misselection.
All tool names follow a consistent verb_noun pattern using snake_case, such as create_task, update_task, and list_tasks. This uniformity makes the tool set predictable and easy to understand, with no deviations in naming conventions.
With 8 tools, the server is well-scoped for task management, covering essential operations like CRUD, querying, and statistics. Each tool earns its place without feeling excessive or insufficient for the domain.
The tool surface provides complete coverage for task management, including create, read (list/search), update, delete, and lifecycle actions (complete/clear). There are no obvious gaps, ensuring agents can handle full workflows without dead ends.
Maintenance
Related MCP Connectors
AI-native task management: list, create, update and archive tasks with rich context for AI agents
Read and write your own Microsoft To Do, Google Tasks or Todoist tasks from any AI agent.
Task and bug tracker for AI coding agents: 75 tools to file, triage and update work.
Manage tasks, Focus Zone, notes, projects, and task history from compatible AI assistants.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Todoist tasks and projects through natural language. Supports comprehensive task management including creating, updating, completing tasks, managing projects, and filtering by various criteria.11GPL 3.0
- AlicenseBqualityDmaintenanceEnables AI assistants to manage Todoist tasks, projects, and labels through natural language. It provides a comprehensive suite of tools for task organization, productivity tracking, and structured workflows like daily planning.24284 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage tasks with full lifecycle support including due dates, priorities, tags, subtasks, and project lists via 19 SQLite-backed MCP tools.5-
- FlicenseAqualityDmaintenanceEnables AI assistants to manage tasks across multiple projects with structured Markdown files, supporting creation, updates, completion, and organization with metadata and dependencies.7-