Skip to main content
Glama
Taskwarrior MCP Server
by tylyan

Taskwarrior MCP Server

An MCP (Model Context Protocol) server that enables AI assistants to interact with Taskwarrior, the powerful command-line task management tool.

Features

  • Full Taskwarrior Integration: List, create, modify, complete, and delete tasks

  • Project & Tag Management: Organize tasks with projects and tags

  • Annotations: Add notes and context to tasks

  • Filtering: Use Taskwarrior's powerful filter expressions

  • Multiple Output Formats: Get responses in Markdown or JSON

  • Agent Intelligence: Smart suggestions, dependency analysis, triage tools

Related MCP server: Tasks MCP Server

Prerequisites

  • Python 3.10 or higher

  • Taskwarrior installed and available in your PATH

Installing Taskwarrior

# macOS
brew install task

# Ubuntu/Debian
sudo apt install taskwarrior

# Fedora
sudo dnf install task

# Arch Linux
sudo pacman -S task

Installation

pip install taskwarrior-mcp

From Source

git clone https://github.com/yourusername/taskwarrior-mcp.git
cd taskwarrior-mcp
pip install -e .

Verifying Installation

# Check the version
python -c "from taskwarrior_mcp import __version__; print(__version__)"

# Or run the server directly
taskwarrior-mcp --help

Configuration

See the examples/ directory for complete configuration files.

Claude Desktop

Add to your Claude Desktop configuration file:

Platform

Location

macOS

~/Library/Application Support/Claude/claude_desktop_config.json

Windows

%APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "taskwarrior": {
      "command": "taskwarrior-mcp"
    }
  }
}

Claude Code CLI

Add to your ~/.claude/settings.json:

{
  "mcpServers": {
    "taskwarrior": {
      "command": "taskwarrior-mcp"
    }
  }
}

Using uvx (no installation required)

{
  "mcpServers": {
    "taskwarrior": {
      "command": "uvx",
      "args": ["taskwarrior-mcp"]
    }
  }
}

Advanced Configuration

Use environment variables to customize Taskwarrior behavior:

{
  "mcpServers": {
    "taskwarrior": {
      "command": "taskwarrior-mcp",
      "env": {
        "TASKRC": "/path/to/custom/.taskrc",
        "TASKDATA": "/path/to/custom/.task"
      }
    }
  }
}

See examples/ for more configurations including multiple databases.

Available Tools

Core Task Management

Tool

Description

taskwarrior_list

List tasks with optional filtering

taskwarrior_add

Create a new task

taskwarrior_complete

Mark a task as completed

taskwarrior_modify

Modify task attributes

taskwarrior_delete

Delete a task

taskwarrior_get

Get detailed info about a task

taskwarrior_bulk_get

Get detailed info about multiple tasks at once

taskwarrior_annotate

Add a note to a task

taskwarrior_start

Start working on a task

taskwarrior_stop

Stop working on a task

taskwarrior_projects

List all projects

taskwarrior_project_summary

Get detailed project summaries with priority breakdown, due dates, and active tasks

taskwarrior_tags

List all tags

taskwarrior_undo

Undo the last operation

taskwarrior_summary

Get task statistics

Agent Intelligence Tools

Tool

Description

taskwarrior_suggest

Get smart task recommendations with scoring and reasoning

taskwarrior_ready

List tasks that are ready to work on (no pending dependencies)

taskwarrior_blocked

List tasks that are blocked by dependencies

taskwarrior_dependencies

Analyze dependency graphs and find bottlenecks

taskwarrior_triage

Find forgotten/stale tasks that need attention

taskwarrior_context

Get rich task context with computed insights

Usage Examples

Once configured, you can interact with Taskwarrior through your AI assistant:

Basic Task Management

  • "What tasks do I have?"

  • "Add a task to review the quarterly report with high priority"

  • "Show me all tasks in the work project"

  • "Complete task 5"

  • "What's due this week?"

Agent Intelligence

  • "What should I work on next?" - Uses taskwarrior_suggest for smart recommendations

  • "What tasks are ready to start?" - Uses taskwarrior_ready for unblocked tasks

  • "What's blocking my progress?" - Uses taskwarrior_blocked and taskwarrior_dependencies

  • "Any tasks I've forgotten about?" - Uses taskwarrior_triage for stale/orphaned tasks

  • "Give me context on task 5" - Uses taskwarrior_context for rich task details

Development

Setup

git clone https://github.com/yourusername/taskwarrior-mcp.git
cd taskwarrior-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

Running Tests

pytest

Code Quality

# Format code
black .
ruff check --fix .

# Type checking
mypy taskwarrior_mcp.py

License

MIT License - see LICENSE for details.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines on:

  • Development setup

  • Commit message conventions (Conventional Commits)

  • Pull request process

  • Code style requirements

Available Tools

13 tools
taskwarrior_addA
Create a new task in Taskwarrior.

Use this tool to add new tasks with optional project, priority, due date, and tags.

Args:
    params: AddTaskInput containing description and optional attributes

Returns:
    Confirmation message with the created task ID

Examples:
    - Simple task: params with description="Buy groceries"
    - Task with project: params with description="Review PR", project="work"
    - High priority task: params with description="Fix bug", priority="H"
    - Task with due date: params with description="Submit report", due="friday"
    - Task with tags: params with description="Call mom", tags=["personal", "important"]

Inputs: params (required). Returns: result

taskwarrior_annotateA
Add an annotation (note) to a task.

Use this tool to add notes, comments, or additional context to a task.

Args:
    params: AnnotateTaskInput containing task_id and annotation text

Returns:
    Confirmation message

Examples:
    - Add note: params with task_id="5", annotation="Discussed with John, needs review"

Inputs: params (required). Returns: result

taskwarrior_completeA
Idempotent
Mark a task as completed.

Use this tool when a task has been finished and should be marked as done.

Args:
    params: CompleteTaskInput containing the task_id to complete

Returns:
    Confirmation message

Examples:
    - Complete task #5: params with task_id="5"
    - Complete by UUID: params with task_id="a1b2c3d4"

Inputs: params (required). Returns: result

taskwarrior_deleteA
DestructiveIdempotent
Delete a task from Taskwarrior.

Use this tool to remove a task. The task is marked as deleted but can be
recovered with 'undo' if needed.

Args:
    params: DeleteTaskInput containing the task_id to delete

Returns:
    Confirmation message

Examples:
    - Delete task #5: params with task_id="5"

Inputs: params (required). Returns: result

taskwarrior_getA
Read-onlyIdempotent
Get detailed information about a specific task.

Use this tool to view all attributes and annotations of a single task.

Args:
    params: GetTaskInput containing task_id and response_format

Returns:
    Detailed task information (markdown or JSON)

Examples:
    - Get task #5: params with task_id="5"
    - Get task as JSON: params with task_id="5", response_format="json"

Inputs: params (required). Returns: result

taskwarrior_listA
Read-onlyIdempotent
List tasks from Taskwarrior with optional filtering.

Use this tool to view tasks, search for specific tasks, or get an overview
of pending work. Supports Taskwarrior filter expressions for powerful querying.

Args:
    params: ListTasksInput containing filter, status, limit, and response_format

Returns:
    Formatted list of tasks (markdown or JSON based on response_format)

Examples:
    - List all pending tasks: params with status="pending"
    - List tasks for a project: params with filter="project:work"
    - List urgent tasks: params with filter="+urgent"
    - List tasks due today: params with filter="due:today"
    - List completed tasks: params with status="completed"

Inputs: params (required). Returns: result

taskwarrior_modifyA
Idempotent
Modify an existing task's attributes.

Use this tool to update task description, project, priority, due date, or tags.

Args:
    params: ModifyTaskInput containing task_id and attributes to modify

Returns:
    Confirmation message with updated task info

Examples:
    - Change description: params with task_id="5", description="Updated task name"
    - Change project: params with task_id="5", project="personal"
    - Set priority: params with task_id="5", priority="H"
    - Add tags: params with task_id="5", add_tags=["urgent"]
    - Remove due date: params with task_id="5", due=""

Inputs: params (required). Returns: result

taskwarrior_projectsA
Read-onlyIdempotent
List all projects in Taskwarrior.

Use this tool to see all projects and the number of tasks in each.

Args:
    params: ListProjectsInput with response_format

Returns:
    List of projects with task counts

Examples:
    - List projects: params with response_format="markdown"

Inputs: params (required). Returns: result

taskwarrior_startA
Idempotent
Start working on a task.

Use this tool to indicate you're actively working on a task. This adds the
'active' state to the task.

Args:
    params: StartTaskInput containing the task_id to start

Returns:
    Confirmation message

Examples:
    - Start task #5: params with task_id="5"

Inputs: params (required). Returns: result

taskwarrior_stopA
Idempotent
Stop working on a task.

Use this tool to indicate you've paused work on a task.

Args:
    params: StopTaskInput containing the task_id to stop

Returns:
    Confirmation message

Examples:
    - Stop task #5: params with task_id="5"

Inputs: params (required). Returns: result

taskwarrior_summaryA
Read-onlyIdempotent
Get a summary of task statistics.

Use this tool to get an overview of pending tasks, including counts by
project, priority, and urgency.

Returns:
    Summary statistics of tasks

Inputs: no named parameters. Returns: result

taskwarrior_tagsA
Read-onlyIdempotent
List all tags used in Taskwarrior.

Use this tool to see all tags and how many tasks use each tag.

Args:
    params: ListTagsInput with response_format

Returns:
    List of tags with usage counts

Examples:
    - List tags: params with response_format="markdown"

Inputs: params (required). Returns: result

taskwarrior_undoA
Undo the last Taskwarrior operation.

Use this tool to revert the most recent change to tasks.

Args:
    params: UndoInput (no parameters needed)

Returns:
    Confirmation message

Examples:
    - Undo last action: params with no special values

Inputs: params (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific operations in Taskwarrior's task management lifecycle. Tools like add, modify, complete, delete, start, and stop handle different states and actions without overlap, while list, get, projects, tags, summary, and annotate serve distinct informational roles. The descriptions reinforce these boundaries, making tool selection unambiguous.

    Naming Consistency5/5

    All tool names follow a consistent 'taskwarrior_' prefix with a descriptive verb_noun pattern (e.g., taskwarrior_add, taskwarrior_list, taskwarrior_modify). This uniformity makes the tool set predictable and easy to navigate, with no deviations in naming conventions across the 13 tools.

    Tool Count5/5

    With 13 tools, this server is well-scoped for managing tasks in Taskwarrior, covering core CRUD operations (add, get, modify, delete), lifecycle states (start, stop, complete), informational queries (list, projects, tags, summary), and utilities (annotate, undo). Each tool earns its place without bloat, aligning with the domain's complexity.

    Completeness5/5

    The tool set provides complete coverage for Taskwarrior's domain, including task creation, retrieval, updating, deletion, state management (start/stop/complete), filtering, metadata access (projects/tags), annotations, undo functionality, and summary statistics. No obvious gaps exist; agents can perform all essential workflows without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers