task-manager-mcp
An MCP server that automates project task breakdown, dependency management, and smart task recommendations, integrating with LLMs like Gemini and OpenAI.
README
Task Manager MCP Service
An intelligent task management service based on Model Context Protocol (MCP), helping to automate project task breakdown, dependency management, and execution recommendations.
Features
- Automated Task Breakdown: Automatically extract and plan task structures from PRD documents
- Dependency Management: Intelligently handle dependencies between tasks, avoiding circular dependencies
- Smart Task Recommendations: Recommend the next task to execute based on dependency status and priority
- Subtask Expansion: Use LLM to automatically expand main tasks into detailed subtasks
- Code Association: Record associations between tasks and implementation code for better traceability
- Task Priority: Support multi-level task priorities and tag management
- MCP Integration: Native support for Model Context Protocol (MCP) for easy collaboration with LLMs
Quick Start
Installation
Recommended installation using uv:
# Install uv
pip install uv
# Install dependencies
uv pip install -r requirements.txt
Or use traditional pip installation:
pip install fastmcp uvicorn pydantic google-generativeai
Environment Configuration
Set necessary environment variables:
# Gemini configuration
export GEMINI_API_KEY="your-api-key-here"
export LLM_PROVIDER="gemini"
export MODEL_NAME="gemini-1.5-flash"
# Or OpenAI configuration
# export OPENAI_API_KEY="your-api-key-here"
# export LLM_PROVIDER="openai"
# export MODEL_NAME="gpt-4o"
# Optional: proxy settings
export HTTP_PROXY="http://your-proxy:port"
export HTTPS_PROXY="http://your-proxy:port"
# Optional: output directory
export MCP_OUTPUT_DIR="/path/to/output"
Basic Usage
- Start the service (using uv):
uv run --with fastmcp fastmcp run src/server.py
Or directly using Python:
cd src
python server.py
- Configure MCP service in Cursor IDE:
Edit the ~/.cursor/mcp.json file (usually located at C:\Users\<username>\.cursor\mcp.json), find the mcpServers section and add or update the task-manager configuration:
{
"mcpServers": {
"task-manager": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"fastmcp",
"run",
"D:\\code\\git_project\\task-manager-mcp\\src\\server.py" // Note: Replace this with the absolute path to your local server.py
],
"env": {
"GEMINI_API_KEY": "<Your Gemini API Key>",
"HTTP_PROXY": "http://127.0.0.1:7890", // If proxy is needed
"HTTPS_PROXY": "http://127.0.0.1:7890", // If proxy is needed
"MODEL_NAME": "gemini-1.5-flash", // Or other supported models
"LLM_PROVIDER": "gemini", // Or openai
"MCP_OUTPUT_DIR": "D:\\path\\to\\your\\output\\directory\\" // Optional: specify output directory
}
}
// There might be other server configurations...
}
}
Note:
- Replace
D:\code\git_project\task-manager-mcp\src\server.pywith the absolute path to your localserver.pyfile. - Ensure the environment variables in
envare set correctly, especially the API key and proxy settings (if needed). MCP_OUTPUT_DIRis optional, used to specify the output location for task-related files (such as JSON, Markdown).
- Using the service in Cursor:
@task-manager decompose_prd prd_content="file:///D:/path/to/prd.md"
Documentation
For detailed documentation, please refer to the docs/ directory:
- Design Document - System design overview
- Getting Started - Getting started guide
- API Reference - Detailed API reference
- MCP Rules - LLM calling conventions
- Configuration Examples - Configuration examples
- Implementation Guide - Implementation guide
- Installation Guide - Detailed installation instructions
- To-Do List - Development roadmap
Key Functions
PRD Parsing and Task Breakdown
Automatically extract tasks and dependencies from project requirement documents:
@task-manager decompose_prd prd_content="file:///D:/path/to/prd.md"
Task Management
Create and update tasks (including status, dependencies, code references, etc.):
@task-manager add_task name="Implement login function" description="Implement user login function, including form validation" priority="high" tags="frontend,user function"
@task-manager update_task task_id="1" status="in_progress" dependencies="2,3"
@task-manager get_task task_id="1"
@task-manager get_task_list status="todo" priority="high" tag="frontend"
Subtask Expansion
Expand a main task into multiple subtasks:
@task-manager expand_task task_id="1" num_subtasks="5"
Smart Task Recommendation
Get the next task that should be executed:
@task-manager get_next_executable_task
Code Reference Management
Update code files associated with a task:
@task-manager update_task_code_references task_id="1" code_files="src/login.js,src/utils/validation.js"
System Architecture
The system is built on Python and the FastMCP framework, providing interfaces using MCP tools. The architecture includes:
- MCP Service Layer: Handles MCP protocol communication and tool invocation
- Core Logic Layer: Implements core features such as task management and dependency checking
- LLM Integration Layer: Integrates with LLM services like Gemini/OpenAI for intelligent parsing
- Storage Layer: Supports in-memory storage (default) and database storage (extensible)
Contributing
Contributions are welcome, including code contributions, issue reports, or new feature suggestions. Please refer to the Contributing Guide for details.
License
MIT License
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。