Task Tracker MCP Server
Enables AI assistants to manage tasks with tools for adding, completing, and deleting tasks, and resources for viewing all or pending tasks.
README
📋 Task Tracker MCP Server
A practical Model Context Protocol (MCP) server built in Python using FastMCP and managed with uv. This server provides AI assistants (like Claude Desktop, Cursor, Antigravity, etc.) with structured task management capabilities.
🌟 Overview
The Model Context Protocol (MCP) is an open standard that allows LLMs and AI applications to interact safely and seamlessly with external tools and data sources.
This project implements the three core MCP primitives:
- 🛠️ Tools: Callable functions allowing the model to perform actions (
add_task,complete_task,delete_task). - 📦 Resources: Read-only data URIs allowing the model to inspect state (
tasks://all,tasks://pending). - 💡 Prompts: Predefined prompt templates that guide the AI to perform complex workflows (e.g., task analysis & prioritization).
flowchart LR
Host["AI Host / Application<br/>(Claude Desktop / Cursor / Antigravity)"]
Client["MCP Client<br/>(Protocol Handler)"]
Server["Task Tracker MCP Server<br/>(FastMCP)"]
Host <--> Client
Client <--> Server
subgraph ServerCapabilities ["Server Capabilities"]
Tools["🛠️ Tools<br/>add_task, complete_task, delete_task"]
Resources["📦 Resources<br/>tasks://all, tasks://pending"]
Prompts["💡 Prompts<br/>task_summary_prompt"]
end
Server --- ServerCapabilities
🚀 Features & MCP Primitives
1. Tools (Actions)
| Tool | Arguments | Description |
|---|---|---|
add_task |
title: str, description: str = "" |
Adds a new task with a unique ID and ISO timestamp. |
complete_task |
task_id: int |
Marks a task status as "completed" and adds a completion timestamp. |
delete_task |
task_id: int |
Removes a task by ID and returns the deleted object. |
2. Resources (Read-Only Data)
| Resource URI | Description |
|---|---|
tasks://all |
Formats and returns all tasks with emojis (✅ for completed, ⏳ for pending). |
tasks://pending |
Filters and returns only active/pending tasks. |
3. Prompts (Guided Workflows)
| Prompt | Description |
|---|---|
task_summary_prompt |
Guides the AI assistant to analyze pending vs completed tasks, identify overdue items, and recommend next actions using tasks://all. |
📦 Getting Started with uv
This project is built and managed with uv, an extremely fast Python package and project manager written in Rust by Astral.
1. Install uv
macOS / Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Verify installation:
uv --version
2. Clone and Setup Repository
git clone https://github.com/<your-username>/task-tracker-mcp.git
cd task-tracker-mcp
3. Install Dependencies
uv will automatically create a virtual environment (.venv) and install all required dependencies:
uv sync
🧪 Testing the Server
You can run the built-in async client (test_client.py) which exercises every tool, resource, and prompt:
uv run test_client.py
Expected Output:
🚀 Starting FastMCP Test Client...
==================================================
1. Listing Available Tools:
Found 3 tools: ['add_task', 'complete_task', 'delete_task']
2. Calling 'add_task' Tool:
Task 1 Response: {"id":1,"title":"Learn MCP", ...}
Task 2 Response: {"id":2,"title":"Master uv", ...}
3. Listing Available Resources:
Found 2 resources: [AnyUrl('tasks://all'), AnyUrl('tasks://pending')]
4. Reading 'tasks://all' Resource:
Current Tasks:
⏳ [1] Learn MCP
⏳ [2] Master uv
5. Completing Task ID 1:
Completed Result: {"id":1, "status":"completed", ...}
6. Reading 'tasks://pending' Resource:
Pending Tasks:
⏳ [2] Master uv
7. Listing Available Prompts:
Found 1 prompts: ['task_summary_prompt']
8. Deleting Task ID 2:
Delete Result: {"success": true, "deleted": {"id": 2, ...}}
==================================================
✨ All MCP Server tests completed successfully!
🔌 Connecting & Inspecting
1. FastMCP CLI Inspector & Dev Tools
FastMCP 3.x provides built-in CLI commands to inspect and debug your server:
- Interactive Web Inspector:
uv run fastmcp dev inspector task_server.py - Inspect Server Summary:
uv run fastmcp inspect task_server.py - List All Tools:
uv run fastmcp list task_server.py - Run Standalone Server:
uv run fastmcp run task_server.py
2. Claude Desktop Integration
Add the server configuration to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"task-tracker": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/task-tracker-mcp",
"run",
"task_server.py"
]
}
}
}
📁 Project Structure
Task Tracker MCP/
├── pyproject.toml # Dependency & project metadata (managed by uv)
├── task_server.py # MCP Server definitions (tools, resources, prompts)
├── test_client.py # FastMCP async automated test client
├── src/
│ └── task_tracker_mcp/ # Python package entrypoint
│ └── __init__.py
├── .python-version # Locked Python version
├── .gitignore # Python & uv exclusions
└── README.md # Documentation
💡 Key uv Commands Cheat Sheet
| Command | Description |
|---|---|
uv init |
Initialize a new Python project with pyproject.toml |
uv add <pkg> |
Add a dependency to pyproject.toml and install it in .venv |
uv remove <pkg> |
Remove a dependency |
uv run <script.py> |
Run any Python script within the isolated project environment |
uv sync |
Sync installed packages with uv.lock |
uv venv |
Create a virtual environment explicitly |
🛠️ Next Steps & Extensions
- [ ] Persistent Storage: Replace in-memory list with SQLite via
aiosqliteorsqlite3. - [ ] Priority & Due Dates: Add task priority flags (
low,medium,high) and due date filters. - [ ] Search Tool: Add a
search_tasks(query: str)tool to search title and descriptions. - [ ] Authentication: Secure endpoints with FastMCP auth providers.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。