tasks-mcp
A local MCP server for managing a personal kanban board with SQLite, enabling task creation, editing, and movement across backlog, in progress, testing, and done columns.
README
tasks-mcp
A personal kanban board as a local MCP server, backed by SQLite. Four columns — backlog → in_progress → testing → done — driven entirely through typed MCP tools: Claude pulls your tasks, adds new ones, edits them, and moves them across the board.
Tasks are never hard-deleted: archiving hides a task from listings but keeps it in the database.
Requirements
- Python 3.11+
uv(recommended, not required — see the venv option below)
Install & run
Option A: uv (recommended)
From this directory:
uv run tasks-mcp
That resolves the environment, installs the single runtime dependency (fastmcp), and serves over stdio — uv even downloads a suitable Python if the machine has none. It is also exactly what an MCP host runs for you (see below).
The tasks-mcp / tasks-mcp-web console scripts exist too, but prefer the python -m tasks_mcp / python -m tasks_mcp.web module form for anything long-running: Windows locks a running .exe, which blocks uv run from refreshing the environment while a server is up.
To install uv itself, see the official installation guide.
Option B: plain venv (no uv)
# Windows
py -3.13 -m venv .venv
.venv\Scripts\pip install -e .
# macOS/Linux
python3 -m venv .venv
.venv/bin/pip install -e .
The server is then the tasks-mcp entry point inside the venv (.venv\Scripts\tasks-mcp.exe on Windows, .venv/bin/tasks-mcp elsewhere). Re-run the pip install step after pulling dependency changes.
Registering with Claude Desktop / Cowork
Add to claude_desktop_config.json (Windows: %AppData%\Claude\, macOS: ~/Library/Application Support/Claude/):
{
"mcpServers": {
"tasks": {
"command": "uv",
"args": ["--directory", "C:\\dev\\mcp-kanban", "run", "python", "-m", "tasks_mcp"]
}
}
}
On macOS/Linux use the absolute path to this folder in --directory. If uv is not on the host's PATH, use the full path to the executable (where uv / which uv). Restart the Claude app fully after saving.
If you went with the venv install (Option B), point the config straight at the entry point instead — no args needed:
{
"mcpServers": {
"tasks": {
"command": "C:\\dev\\mcp-kanban\\.venv\\Scripts\\tasks-mcp.exe"
}
}
}
(macOS/Linux: "command": "/path/to/mcp-kanban/.venv/bin/tasks-mcp".)
Then try: "add a task to buy milk", "show my board", "move it to testing".
Configuration
| Env var | Default | Meaning |
|---|---|---|
TASKS_MCP_DB |
~/.local/share/tasks-mcp/tasks.db |
SQLite database path (parent dir is created) |
TASKS_MCP_TRANSITIONS |
free |
Transition policy. free = any column to any column. Hook for a future linear policy. |
TASKS_MCP_WEB_HOST |
127.0.0.1 |
Bind address for the web view. |
TASKS_MCP_WEB_PORT |
8765 |
Port for the web view. |
TASKS_MCP_WEB_AUTOSTART |
0 |
Opt-in: 1 makes MCP sessions spawn the web view if it isn't running. |
Set them via the env key of the MCP config entry if you want a non-default location.
Tools
| Tool | What it does |
|---|---|
add_task |
Create a task (lands in backlog). Title required; optional description, priority (low/normal/high), tags. |
list_tasks |
List tasks with optional AND-combined filters: status, tag, priority, include_archived. |
get_task |
Full detail of one task by id (works for archived tasks). |
edit_task |
Update title/description/priority/tags. Omitted fields keep their value; empty-string description clears it. |
move_task |
Move a task to another column — the kanban action. |
archive_task |
Soft delete. No hard delete exists. |
get_board |
The whole board grouped by column; always all four columns, in order. |
Web view (drag & drop board)
A browser UI over the same database, runnable alongside the MCP server (WAL mode makes concurrent access safe). Start it when you want the visual board:
uv run python -m tasks_mcp.web # or .venv\Scripts\python -m tasks_mcp.web with the venv install
Then open http://127.0.0.1:8765. Every MCP session (Claude Desktop, Claude Code, ...) is its own process, but they all share the database with this one web view, so it reflects everything live.
To have it always available, run it at login — e.g. a shortcut in shell:startup pointing at .venv\Scripts\pythonw.exe -m tasks_mcp.web (pythonw runs without a console window). There is also an opt-in convenience: set TASKS_MCP_WEB_AUTOSTART=1 in the MCP server's environment and whichever session starts first spawns the board in the background if it isn't running. Drag cards between columns to move them, click a card to edit or archive it, add tasks from the header. The page polls every few seconds, so changes Claude makes through MCP appear on their own.
It exposes the same seven operations as JSON endpoints (/api/board, /api/tasks, /api/tasks/{id}, /api/tasks/{id}/move, /api/tasks/{id}/archive) and is built on the stdlib HTTP server — no new dependencies, no build step. Binds to localhost only by default (TASKS_MCP_WEB_HOST / TASKS_MCP_WEB_PORT to change).
Architecture
Dependencies point inward: mcp → services → storage(interface) + domain.
src/tasks_mcp/
├── domain/ # pure data + rules, zero I/O (Task, Status, Priority, TransitionPolicy)
├── storage/ # TaskRepository interface, SQLite impl, versioned migration runner
├── services/ # TaskService — all business logic, typed exceptions
├── mcp/ # thin, disposable adapter: MCP tools
├── web/ # thin, disposable adapter: JSON API + drag-and-drop board UI
├── wiring.py # shared composition: config → service object graph
└── config.py # env resolution in one place
Design decisions worth knowing:
- Storage is swappable. The service layer codes against the abstract
TaskRepository; the SQLite implementation (raw SQL, no ORM) is the only file that knows how a task is stored. WAL mode is on, so a future read-only consumer (e.g. an HTML board view) can read while the server writes. - Schema changes are migrations. A versioned runner applies
NNN_*.sqlfiles in order, each in its own transaction, on every startup. Adding a field later = dropping a new002_*.sqlfile next to001_initial.sql. Never a manualALTER. - Transitions are a policy object. v1 ships
FreeTransitionPolicy. A strict linear pipeline is a new class registered inmcp/server.pyand selected viaTASKS_MCP_TRANSITIONS— zero changes to existing code. - Adapters are disposable. MCP tools and web endpoints alike parse input, call one service method, format output. The web view was added without touching a line beneath the adapter layer — the proof the seams work.
Development
uv sync # create venv with dev deps
uv run pytest # domain, storage, services, MCP protocol, web API
The service tests run against an in-memory SQLite repository; the MCP tests exercise the wired server through an in-memory MCP client; the web tests hit a live threaded server over real HTTP.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。