todo-mcp
# todo-mcp
A simple todo list [MCP](https://modelcontextprotocol.io) server written in TypeScript. It exposes tools for managing a todo list to any MCP client (Claude Desktop, Claude Code, etc.). Todos are persisted to a JSON file on disk.
## Tools
| Tool | Description |
| --- | --- |
| `add_todo` | Add a new item (`text`) |
| `list_todos` | List items, optional `filter`: `all` \| `active` \| `completed` |
| `complete_todo` | Mark an item done/undone (`id`, optional `done`) |
| `delete_todo` | Delete an item (`id`) |
| `clear_completed` | Remove all completed items |
## Setup
```bash
npm install
npm run build
```
This compiles to `build/index.js`. By default todos are stored in `~/.todo-mcp.json`; override with the `TODO_FILE` environment variable.
## Connecting a client
### Claude Code
```bash
claude mcp add todo -- node /Users/mansi/Documents/MCP/todo-list/build/index.js
```
### Claude Desktop
Add to `claude_desktop_config.json`
(`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
```json
{
"mcpServers": {
"todo": {
"command": "node",
"args": ["/Users/mansi/Documents/MCP/todo-list/build/index.js"]
}
}
}
```
Restart the client, then ask it to add, list, or complete todos.
## Development
```bash
npm run dev # tsc --watch
```
TDQS
Scored across 5 tools
Each tool maps to a distinct operation (create, read, toggle, remove, bulk-remove) with little overlap in practice. The only mild confusion is between delete_todo and clear_completed, but the descriptions make the single-item vs. bulk-completed distinction clear.
Four of five names follow a clean verb_noun pattern (add_todo, list_todos, complete_todo, delete_todo). clear_completed drops the noun, a minor deviation that is still self-explanatory.
Five tools is exactly the right scope for a todo list: one per core operation with no filler. Every tool earns its place.
Create, list (with status filter), toggle-complete, delete, and bulk-clear cover the essential lifecycle. The notable gap is editing a todo's text/content — there is no update_todo, so an agent must delete and re-add to fix a typo.