mcp-task-manager
A local task management MCP server that enables users to create, update, and manage tasks through natural language conversations with Claude. It provides nine tools for comprehensive task management including creation, filtering, searching, and daily planning without requiring a separate UI or backend service.
README
mcp-task-manager
A local task manager that plugs into Claude Desktop through Anthropic's Model Context Protocol. No UI, no backend service — just a Python process and a SQLite file. You manage tasks by talking to Claude.
"Create a high-priority task to fix the auth bug, due Friday, tag it backend." → task created. "What should I focus on today?" → returns overdue + urgent + high-priority tasks. "Mark task 3 completed and show me a summary." → done + stats.
Stack: Python 3.11+ · FastMCP · SQLite · Pydantic v2 Status: working locally, 9 tools implemented
Why this project
Built to learn MCP end-to-end: server lifecycle, tool registration, stdio transport, and how Claude picks tools from natural-language requests. It's a small but complete example — the kind of thing you'd extend into a real internal tool at work.
How it works
MCP servers run as a local subprocess. Claude Desktop talks to the server over stdio using JSON-RPC. When you type a message, Claude:
- Picks which registered tool fits the request
- Fills in the parameters from your natural language
- Calls the tool, gets back structured data (Pydantic models)
- Summarises the result back to you in plain English
Claude Desktop ──── JSON-RPC (stdio) ──── server.py (FastMCP)
│
TaskRepository
│
tasks.db (SQLite)
Tools
| Tool | What it does |
|---|---|
create_task |
Create a task with title, description, priority, due date, tags |
list_tasks |
List tasks, optionally filtered by status and/or priority |
get_task |
Fetch a single task by ID |
update_task |
Update any field (title, description, priority, status, due date, tags) |
complete_task |
Shortcut — mark as completed |
delete_task |
Delete a task by ID |
search_tasks |
Substring search across title, description, and tags |
get_summary |
Counts by status and priority + overdue count |
plan_day |
Prioritised focus list for today (overdue + urgent + high) |
Priorities: low · medium · high · urgent
Statuses: pending · in_progress · completed · cancelled
Project structure
mcp-task-manager/
├── server.py # FastMCP entry point, tool registration, lifespan
├── core/
│ ├── models.py # Pydantic models + enums (Task, TaskCreate, TaskUpdate, TaskSummary)
│ └── repository.py # SQLite DAO — CRUD, search, summary
├── tools/
│ └── __init__.py # 9 MCP tool functions (thin layer over repository)
├── pyproject.toml
└── .env.example
Three layers, one responsibility each:
tools/— the MCP-facing surface. Each function has a docstring that Claude reads to understand when/how to call it.core/repository.py— SQLite access. Raw SQL, indexed onstatus,priority,due_date.core/models.py— validation, serialization, enums.
Setup
Requirements: Python 3.11+, Claude Desktop.
git clone https://github.com/soltyDude/mcp-task-manager.git
cd mcp-task-manager
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e .
cp .env.example .env
Connect to Claude Desktop
Open your Claude Desktop config:
- macOS —
~/Library/Application Support/Claude/claude_desktop_config.json - Windows —
%APPDATA%\Claude\claude_desktop_config.json
Add the server:
{
"mcpServers": {
"mcp-task-manager": {
"command": "/absolute/path/to/mcp-task-manager/.venv/bin/python",
"args": ["/absolute/path/to/mcp-task-manager/server.py"]
}
}
}
Restart Claude Desktop. The tools will show up under the 🔌 icon.
Configuration
.env supports two variables:
DATABASE_PATH=tasks.db # where SQLite stores data
SERVER_NAME=mcp-task-manager # name shown in Claude Desktop
Example session
You: Add a task: refactor the auth filter, high priority, due tomorrow, tags: backend, security
Claude: Created task #1 — "Refactor the auth filter" (high, due 2025-04-19, tags: backend, security)
You: What's my plan for today?
Claude: 📅 Day plan for 2025-04-18
🔥 FOCUS (urgent + high priority)
[1] [HIGH] Refactor the auth filter #backend #security
📊 Total: 1 | In progress: 0 | Overdue: 0
You: Mark it in progress and show a summary
Claude: Task #1 updated — status: in_progress.
📊 Total: 1 | Pending: 0 | In progress: 1 | Completed: 0 | Overdue: 0
Design notes
A few choices worth calling out, in case you're reading this as a reviewer:
- Lifespan-scoped repository. The
TaskRepositoryis built once in FastMCP'slifespancontext manager and injected viactx.request_context.lifespan_context. Tools stay stateless; the connection details don't leak into tool code. - Enums instead of magic strings.
PriorityandTaskStatusarestrenums — validated by Pydantic on input, stored as strings in SQLite, typed everywhere in between. - Tags as JSON in a TEXT column. Pragmatic for SQLite — no junction table needed for a local tool. Search uses
LIKEover the serialized JSON. If this ever moved to Postgres, it'd become atext[]or a real tags table. - Indexed the hot paths.
status,priority,due_date— the three columns every filter hits. plan_daydeduplicates. Urgent and high-priority queries can overlap with the overdue list, so the final focus list is built with aseenset.
Limitations / next steps
- No tests yet — planned:
pytestwith an in-memory SQLite fixture for the repository layer. - No recurring tasks.
- Search is
LIKE-based; for a bigger dataset, SQLite FTS5 would be the upgrade. - Single-user, single-machine by design. Multi-user would mean swapping SQLite for Postgres and adding a user column.
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。