Skip to main content

MCP server for Taskwarrior CLI task management

Project description

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

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

From PyPI (recommended)

pip install taskwarrior-mcp

From Source

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

Configuration

Claude Desktop

Add to your Claude Desktop configuration file:

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"]
    }
  }
}

Available Tools

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_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_tags List all tags
taskwarrior_undo Undo the last operation
taskwarrior_summary Get task statistics

Usage Examples

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

  • "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?"

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 feel free to submit a Pull Request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taskwarrior_mcp-0.1.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taskwarrior_mcp-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file taskwarrior_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: taskwarrior_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for taskwarrior_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2e8d8fcd14f405de757f00f7a8e7bc56c725b07fdd76ac01f764aeff158e8328
MD5 de54a54751127655da55b4fdd8dd8c38
BLAKE2b-256 0a8ad6b9ee9d70df6357277e70724074c56da9064963d38116c620d89bdfa7ea

See more details on using hashes here.

File details

Details for the file taskwarrior_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for taskwarrior_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acbc52e1d0d54aac440dafd19c8957ec3ec383dcab2d9e6a8d59d5c1b85bcb7d
MD5 21dd69309777e07466220ce63944d66c
BLAKE2b-256 21d20a9f41998c193121290f91b6052e557878495cc80be8f2d00a5432c53892

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page