mcp-taskwarrior-ai
An AI-native Taskwarrior bridge that provides natural language task management for Claude Code and other AI systems, integrating with existing Taskwarrior infrastructure.
README
MCP Taskwarrior AI Bridge
An AI-native Taskwarrior bridge that provides natural language task management for Claude Code and other AI systems. This MCP (Model Context Protocol) server extends Taskwarrior with context-aware, natural language capabilities while building on top of the existing Taskwarrior infrastructure.
Features
- Natural Language Processing: Convert everyday language into Taskwarrior commands
- Project Context Awareness: Automatically detects current project/ticket context
- Ticket Integration: Sync tasks from ticket checklists (supports .tickets/ directory structure)
- Eisenhower Matrix: Organize tasks by urgency and importance
- Smart Task Addition: Intelligently parse priorities, due dates, projects, and tags
- Shareable & Versioned: Configuration can be tracked in Git
Installation
Prerequisites
- Install Taskwarrior (if not already installed):
brew install task
- Install Node.js (v20 or later):
brew install node
Setup
- Clone the repository:
git clone https://github.com/storypixel/mcp-taskwarrior-ai.git
cd mcp-taskwarrior-ai
- Install dependencies:
npm install
- Build the project:
npm run build
Integration with Claude Code
Add the server to your Claude Code MCP configuration:
- Open your Claude Code settings
- Add to MCP servers:
{
"mcpServers": {
"taskwarrior": {
"type": "stdio",
"command": "node",
"args": ["/path/to/mcp-taskwarrior-ai/dist/index.js"],
"env": {}
}
}
}
Or using the Claude CLI:
claude mcp add taskwarrior -s project -- node /path/to/mcp-taskwarrior-ai/dist/index.js
Usage
Natural Language Commands
The bridge understands natural language for task management:
- Adding tasks: "add fix the login bug", "create task for code review", "todo implement caching"
- Listing tasks: "show all tasks", "what should I work on next", "list urgent tasks", "show tasks for today"
- Completing tasks: "mark task 5 as done", "complete task 1", "finish the review task"
- Context queries: "where am I", "what's my current project", "show current context"
Available Tools
task_natural
Execute Taskwarrior commands using natural language.
{
query: "add fix the authentication bug with high priority"
}
task_smart_add
Add tasks with structured metadata:
{
description: "Implement user authentication",
project: "myheb-android",
priority: "H",
due: "tomorrow",
tags: ["security", "auth"]
}
task_ticket_sync
Import tasks from a ticket's checklist:
{
ticket: "DRX-12345"
}
task_eisenhower
Get tasks organized by Eisenhower Matrix quadrants.
task_where_am_i
Get current context and suggested next actions based on project state.
task_context_set
Set the current project/context for all task operations:
{
context: "DRX-12345"
}
task_raw
Execute raw Taskwarrior commands for advanced users:
{
command: "modify 1 priority:H +urgent"
}
Project Context Integration
The bridge automatically detects project context using:
.taskprojectfile - If present, defines the project name for Taskwarrior- Git repository name - Falls back to the repo name from git
- Directory name - Uses current directory name if not in git
To override project detection, create a .taskproject file:
echo "my-project-name" > .taskproject
This is useful when one workspace manages tasks for another project.
The bridge also detects:
- Current Git branch (for ticket context)
- Task state from
.task-state.json - Ticket tasks from
.tickets/<ticket>/mr-checklist.md
Architecture
┌─────────────────┐
│ Claude Code │
│ or AI Agent │
└────────┬────────┘
│ Natural Language
▼
┌─────────────────┐
│ MCP Server │
│ - NLP Parser │
│ - Context Mgr │
└────────┬────────┘
│ Taskwarrior Commands
▼
┌─────────────────┐
│ Taskwarrior │
│ (task CLI) │
└─────────────────┘
Development
Running in Development Mode
npm run dev
Testing
Run the test script to verify the server is working:
node test.js
Building
npm run build
Configuration
The server uses your existing Taskwarrior configuration (~/.taskrc). You can customize Taskwarrior settings as usual.
Context Detection
The bridge uses the current working directory and automatically detects project context. No hardcoded paths or specific project names are used.
Ticket Integration
Place ticket tasks in:
.tickets/
└── DRX-12345/
├── context.md # Ticket context
└── mr-checklist.md # Tasks as checklist items
Format for mr-checklist.md:
- [ ] Update unit tests
- [ ] Add documentation
- [ ] Run linting
Prompts
The server includes built-in prompts:
Daily Review
Get a prioritized plan for the day including today's tasks, urgent items, and recommended next actions.
Weekly Planning
Organize tasks for the week ahead with active projects overview.
Troubleshooting
"Cannot proceed without rc file"
Initialize Taskwarrior:
task version
Context not detected
Ensure you're in a project directory or have .task-state.json in your workspace.
Ticket sync not finding tasks
Verify .tickets/<ticket>/mr-checklist.md exists and contains checkbox items.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT
Author
storypixel
Acknowledgments
Built on top of Taskwarrior - the command-line task management tool.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。