Skip to main content
Glama

Todo MCP Server

License: MIT Node.js MCP

An MCP (Model Context Protocol) server for team todo/task management. Includes project organization, team assignment, role-based access control, and a built-in Web UI dashboard.

Features

  • Task Management - Create, update, delete, and track tasks with priority levels and importance ratings

  • Projects - Organize tasks into color-coded projects

  • Team Assignment - Assign tasks to team members

  • Role-based Access - 4 roles with granular permissions (Admin, Manager, Member, Viewer)

  • Web UI Dashboard - Built-in web interface with charts, filters, and full CRUD

  • Persistent Storage - JSON file-based storage, no database required

  • 25+ MCP Tools - Comprehensive toolset for AI assistants

Related MCP server: Personal Task Manager MCP

Roles & Permissions

Role

Create Task

Assign Others

Delete Any

Manage Projects

Manage Users

Admin

Yes

Yes

Yes

Yes

Yes

Manager

Yes

Yes

Yes

Yes

-

Member

Yes

-

-

-

-

Viewer

-

-

-

-

-

Quick Start

Install from source

git clone https://github.com/devbyanuwat/mcp-todo-server.git
cd todo-mcp-server
npm install
npm run build

Use with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "todo": {
      "command": "node",
      "args": ["/path/to/todo-mcp-server/dist/index.js"]
    }
  }
}

Use with Claude Code (CLI)

claude mcp add todo node /path/to/todo-mcp-server/dist/index.js

Web UI

npm run web
# Open http://localhost:3456

Start the web server alongside the MCP server:

node dist/index.js --web

Available MCP Tools

Authentication

Tool

Description

todo_login

Login as a user

todo_logout

Logout current user

todo_current_user

Get current user info

Users

Tool

Description

todo_list_users

List all users

todo_add_user

Add a new user (Admin only)

Projects

Tool

Description

todo_list_projects

List all projects

todo_add_project

Create a new project

todo_delete_project

Delete a project

Tasks

Tool

Description

todo_list

List all todos

todo_add

Create a new todo

todo_update

Update a todo

todo_toggle

Toggle complete/incomplete

todo_delete

Delete a todo

todo_assign

Assign a todo to a user

Queries

Tool

Description

todo_by_project

Filter todos by project

todo_by_assignee

Filter todos by assignee

todo_by_date

Filter todos by date

todo_overdue

Get overdue todos

todo_urgent

Get urgent todos

todo_pending

Get incomplete todos

todo_completed

Get completed todos

todo_summary

Get summary statistics

Example Usage

User: Login as admin and show me the task summary

Claude: [uses todo_login with user_id="admin1"]
        [uses todo_summary]

        You're logged in as Admin. Here's your summary:
        - Total tasks: 5
        - Completed: 2
        - Pending: 3
        - Urgent: 1

User: Create a new task for dev1 - implement login feature for mobile app, due tomorrow

Claude: [uses todo_add with title="Implement Login Feature",
         project_id="proj2", assignee_id="dev1",
         date="2026-01-15", priority="high"]

        Task created:
        - Title: Implement Login Feature
        - Project: Mobile App
        - Assigned to: Developer 1
        - Due: 2026-01-15
        - Priority: High

Default Users

ID

Name

Role

admin1

Admin

admin

manager1

Project Manager

manager

dev1

Developer 1

member

dev2

Developer 2

member

viewer1

Viewer

viewer

REST API (for any AI / HTTP client)

The web server exposes a full REST API at http://localhost:3456/api. Any AI or tool that can make HTTP requests can use it.

npm run web   # Start the API server

Authentication

# Login (required before creating/modifying data)
curl -X POST http://localhost:3456/api/login \
  -H "Content-Type: application/json" \
  -d '{"user_id": "admin1"}'

# Get current user
curl http://localhost:3456/api/current-user

# Logout
curl -X POST http://localhost:3456/api/logout

Todos

Method

Endpoint

Description

GET

/api/todos

List all todos

GET

/api/todos?project={id}

Filter by project

GET

/api/todos?assignee={id}

Filter by assignee

GET

/api/todos?status=pending

Filter by status (pending / completed)

GET

/api/todos?priority=urgent

Filter by priority (urgent / high / medium / low)

POST

/api/todos

Create a todo

PUT

/api/todos/:id

Update a todo

DELETE

/api/todos/:id

Delete a todo

PATCH

/api/todos/:id/toggle

Toggle complete/incomplete

PATCH

/api/todos/:id/assign

Assign to a user

Create a todo:

curl -X POST http://localhost:3456/api/todos \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Implement login page",
    "project_id": "proj2",
    "assignee_id": "dev1",
    "date": "2026-02-20",
    "time": "17:00",
    "priority": "high",
    "importance": 4,
    "note": "Use OAuth2 flow"
  }'

Update a todo:

curl -X PUT http://localhost:3456/api/todos/{id} \
  -H "Content-Type: application/json" \
  -d '{"title": "Updated title", "priority": "urgent"}'

Projects

Method

Endpoint

Description

GET

/api/projects

List all projects

POST

/api/projects

Create a project

DELETE

/api/projects/:id

Delete a project

curl -X POST http://localhost:3456/api/projects \
  -H "Content-Type: application/json" \
  -d '{"name": "New Project", "color": "#8b5cf6"}'

Users

Method

Endpoint

Description

GET

/api/users

List all users

POST

/api/users

Add a user (Admin only)

Queries

Method

Endpoint

Description

GET

/api/summary

Dashboard stats (total, pending, completed, overdue, urgent)

GET

/api/overdue

All overdue incomplete todos

GET

/api/urgent

All urgent incomplete todos

Response Format

All mutation endpoints return:

// Success
{ "success": true, "todo": { ... } }

// Error
{ "success": false, "error": "Permission denied" }

Configuration

Environment Variable

Description

Default

TODO_DATA_PATH

Path to the JSON data file

~/.todo-mcp-data.json

TODO_WEB_PORT

Web UI server port

3456

TODO_CORS_ORIGIN

Allowed CORS origins (comma-separated)

* (all)

Development

# Watch mode (auto-rebuild on changes)
npm run dev

# Build
npm run build

# Start MCP server
npm start

# Start Web UI only
npm run web

# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js

Project Structure

todo-mcp-server/
├── src/
│   ├── types.ts          # TypeScript interfaces
│   ├── store.ts          # Data store & business logic
│   ├── index.ts          # MCP server & tool definitions
│   └── web-server.ts     # Express REST API & web UI
├── public/
│   ├── index.html        # Web UI (SPA)
│   ├── app.js            # Frontend logic
│   └── style.css         # Styles
├── dist/                 # Compiled output (generated)
├── package.json
├── tsconfig.json
└── LICENSE

Contributing

  1. Fork the repository

  2. Create your feature branch (git checkout -b feature/amazing-feature)

  3. Commit your changes (git commit -m 'Add amazing feature')

  4. Push to the branch (git push origin feature/amazing-feature)

  5. Open a Pull Request

License

MIT

Available Tools

22 tools
todo_addAdd New TodoA

Create a new todo task.

Args:

  • title (string): Task title/description

  • project_id (string, optional): Project ID to assign to

  • assignee_id (string, optional): User ID to assign to (default: current user)

  • date (string, optional): Due date in YYYY-MM-DD format (default: today)

  • time (string, optional): Due time in HH:MM format

  • priority (string, optional): 'urgent', 'high', 'medium', 'low' (default: medium)

  • importance (number, optional): 1-5 stars (default: 3)

  • note (string, optional): Additional notes

Role permissions:

  • admin/manager: Can assign to any user

  • member: Can only assign to self

  • viewer: Cannot create tasks

Inputs: title (required), date, note, time, +4 more.

todo_add_projectAdd New ProjectA

Create a new project. Requires 'admin' or 'manager' role.

Args:

  • name (string): Project name

  • color (string, optional): Hex color code (e.g., '#667eea')

Inputs: name (required), color.

todo_add_userAdd New UserA

Add a new user to the system. Requires 'admin' role.

Args:

  • name (string): User's full name

  • email (string): User's email address

  • role (string): One of 'admin', 'manager', 'member', 'viewer'

  • avatar (string, optional): Emoji avatar for the user

Inputs: name (required), role (required), email (required), avatar.

todo_assignAssign Todo to UserA
Idempotent

Assign a todo to a different user. Requires 'admin' or 'manager' role.

Inputs: todo_id (required), user_id (required).

todo_by_assigneeGet Todos by AssigneeB
Read-onlyIdempotent

Get all todos assigned to a specific user.

Inputs: user_id (required).

todo_by_dateGet Todos by DateC
Read-onlyIdempotent

Get all todos for a specific date.

Inputs: date (required).

todo_by_projectGet Todos by ProjectB
Read-onlyIdempotent

Get all todos for a specific project.

Inputs: project_id (required).

todo_completedGet Completed TodosA
Read-onlyIdempotent

Get all completed todos.

Inputs: no named parameters.

todo_current_userGet Current UserA
Read-onlyIdempotent

Get the currently logged in user information.

Inputs: no named parameters.

todo_deleteDelete TodoC
Destructive

Delete a todo task.

Inputs: todo_id (required).

todo_delete_projectDelete ProjectA
Destructive

Delete a project and all its tasks. Requires 'admin' or 'manager' role.

Inputs: project_id (required).

todo_listList All TodosB
Read-onlyIdempotent

Get all todos in the system.

Inputs: no named parameters.

todo_list_projectsList All ProjectsB
Read-onlyIdempotent

Get all projects in the system.

Inputs: no named parameters.

todo_list_usersList All UsersB
Read-onlyIdempotent

Get all users in the system with their roles.

Inputs: no named parameters.

todo_loginLogin to Todo SystemA
Idempotent

Login as a user to access the todo system.

Args:

  • user_id (string): The user ID to login as (e.g., 'admin1', 'manager1', 'dev1', 'dev2', 'viewer1')

Returns: User object with id, name, email, avatar, and role.

Available default users:

  • admin1: Admin (full access)

  • manager1: Project Manager (manage projects and assign tasks)

  • dev1, dev2: Developers (manage own tasks)

  • viewer1: Viewer (read-only)

Inputs: user_id (required).

todo_logoutLogout from Todo SystemA
Idempotent

Logout the current user from the todo system.

Inputs: no named parameters.

todo_overdueGet Overdue TodosA
Read-onlyIdempotent

Get all overdue (past due date) incomplete todos.

Inputs: no named parameters.

todo_pendingGet Pending TodosB
Read-onlyIdempotent

Get all incomplete todos.

Inputs: no named parameters.

todo_summaryGet Todo SummaryA
Read-onlyIdempotent

Get a summary of todos for the current user including stats and permissions.

Inputs: no named parameters.

todo_toggleToggle Todo CompleteB

Mark a todo as complete or incomplete.

Inputs: todo_id (required).

todo_updateUpdate TodoC
Idempotent

Update an existing todo task.

Inputs: todo_id (required), date, note, time, +5 more.

todo_urgentGet Urgent TodosA
Read-onlyIdempotent

Get all urgent priority incomplete todos.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 22 tools

    Disambiguation3/5

    Nine of the 22 tools are single-dimension read filters (todo_list, todo_pending, todo_completed, todo_by_project, todo_by_assignee, todo_by_date, todo_overdue, todo_urgent, todo_summary) whose result sets overlap heavily—overdue is a subset of pending, urgent crosses all projects. An agent needing 'urgent todos in project X' has no combined query tool and must pick among near-neighbors, though individual descriptions do clarify each predicate.

    Naming Consistency3/5

    The todo_ prefix is applied consistently, which helps a lot, but the verb pattern is genuinely mixed: verb_noun (todo_add_project, todo_list_users), bare verb (todo_list, todo_add, todo_update), prepositional with no verb (todo_by_project, todo_by_assignee), and bare adjective (todo_overdue, todo_urgent, todo_pending). Readable, but you cannot predict a tool's name from its intent.

    Tool Count3/5

    22 tools is borderline heavy for a todo app; a large share of the count is consumed by separate one-predicate filter tools that would be better expressed as parameters on a single query tool. Each tool does have a real function, so it is not bloat, but the set is more fragmented than the domain warrants.

    Completeness3/5

    Todo lifecycle is well covered (add, update, toggle, delete, assign, plus many read views), but the surrounding entities have gaps: projects support create/list/delete but no update (rename/recolor), users support add/list but no update, remove, or get-by-id, and there is no fetch-single-todo-by-id or text search. Agents will hit dead ends on project and user management.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers