Skip to main content
Glama

Deep Work Timer MCP server

Pomodoro and deep work time tracking for AI coding agents, with a permanent per-skill ledger.

This is the Model Context Protocol server for Deep Work Timer. It lets Claude Code, Claude Desktop, Cursor, Windsurf, or any MCP client start and log focus sessions, manage tasks, and read how many hours you have put into each skill. Every session lands in your ledger at deepworktimer.com: today, this week, a 12-week heatmap, and lifetime hours per #skill. Free, no subscription, no session limit.

Typical use: you tell your agent "track this as #python for the next hour". It creates the task, starts a 60 minute session, switches tasks as the work moves, and logs the block when you are done. Six months later you can ask "how many hours have I put into Python?" and get a number.

Install

You need a free account at deepworktimer.com and an API token (Settings > API tokens). If you already use the dwt CLI, the server reads its token from ~/.deepworktimer/token and no extra setup is needed.

Claude Code

claude mcp add deepworktimer -e DWT_TOKEN=your_token -- npx -y deepworktimer-mcp

Claude Desktop, Cursor, Windsurf and other clients

Add to the client's MCP config:

{
  "mcpServers": {
    "deepworktimer": {
      "command": "npx",
      "args": ["-y", "deepworktimer-mcp"],
      "env": { "DWT_TOKEN": "your_token" }
    }
  }
}

Related MCP server: ticktick-sdk

Tools

Tool

What it does

dwt_status

Active session (task, time left, which device owns it) and today's total

dwt_stats

Focus time today / 7d / 30d / 365d / all time, best day, daily average

dwt_lifetime_skills

The 10,000-hour ledger: lifetime hours per #skill with the next milestone

dwt_deposits_today

Today's completed sessions, itemized

dwt_list_projects, dwt_create_project

Projects group tasks (a repo, a course, a certification)

dwt_list_tasks, dwt_create_task, dwt_complete_task

Tasks; #tags in the description attach skills, @1h30m sets an estimate

dwt_start_session

Start a server-side session (1 to 240 min; default is your pomodoro length)

dwt_switch_task

Move the running session to another task; time is split honestly

dwt_log_session

Complete the running session and write it to the ledger

dwt_abandon_session

Discard the running session

dwt_log_pomodoro

Record N minutes on a task after the fact

Sessions are account-wide: one active session, visible from your phone, laptop and agent. Starting a new one takes over any running session, so the tool descriptions steer agents to dwt_status first and dwt_switch_task when something is already running. Logging refuses if another device owns the open segment (you might be working there) unless you explicitly ask.

Configuration

Variable

Default

Purpose

DWT_TOKEN

~/.deepworktimer/token

API token

DWT_BASE_URL

https://deepworktimer.com

Point at a self-hosted instance

DWT_SOURCE

mcp:<hostname>

Device label shown on sessions started here

Why a ledger and not a streak

Most timers count down and forget. Deep Work Timer keeps the count: hours per day, per week, per skill, for as long as you keep the account. There is no premium tier and nothing is deleted when you stop paying, because there is nothing to pay. The number only goes up.

Development

npm install
npm test        # builds, then runs node:test against dist/
node dist/index.js   # stdio server; talk to it with an MCP inspector

The REST API this wraps is the same one the web app and the dwt CLI use. Two API quirks are handled for you: POST /api/tasks does not attach #skills (a follow-up PATCH does), and estimates are patched separately in minutes.

License

MIT

Available Tools

14 tools
dwt_abandon_sessionAbandon the running sessionA

Discard the active session without logging any time.

Inputs: no named parameters.

dwt_complete_taskComplete a taskD

Mark a task as completed.

Inputs: task_id (required).

dwt_create_projectCreate a projectB

Create a project to group tasks (e.g. a repo, a course, a certification).

Inputs: name (required), description.

dwt_create_taskCreate a taskA

Create a task. Put skills in the description as #tags (e.g. 'Fix auth bug #python #django @1h'); an @Nh/@Nm marker sets the estimate. #tags only attach to skills that already exist on the account. Returns the created task with its attached skills.

Inputs: description (required), project_id, estimate_minutes.

dwt_deposits_todayToday's depositsB

Today's ledger statement: each completed focus session with its tasks and minutes.

Inputs: no named parameters.

dwt_lifetime_skillsLifetime hours per skill (the ledger)A

The 10,000-hour ledger: lifetime focus hours for every #skill the user has tagged, sorted by hours, with the next milestone. Use to answer 'how many hours have I put into X'.

Inputs: no named parameters.

dwt_list_projectsList projectsA

List the user's projects (id, name). Tasks live in projects or unassigned.

Inputs: no named parameters.

dwt_list_tasksList tasksA

List open tasks. Without project_id returns unassigned tasks; with it, that project's tasks. Set snoozed=true to see snoozed tasks instead.

Inputs: snoozed, project_id.

dwt_log_pomodoroLog a finished block manuallyC

Record focus time that already happened (no running session): N minutes on one task, written to the ledger now.

Inputs: minutes (required), task_id (required).

dwt_log_sessionLog (complete) the running sessionA

Complete the active session and write it to the ledger as one pomodoro, split across the tasks it touched. Refuses if another device currently owns the open segment (the user may be working there) unless force=true and the user explicitly asked.

Inputs: force.

dwt_start_sessionStart a focus sessionA

Start a server-side focus session (default length: the account's pomodoro setting, usually 25 min; 1 to 240 minutes). There is ONE active session per account: starting takes over any session running on another device, so call dwt_status first and prefer dwt_switch_task when a session is already running.

Inputs: minutes, task_id.

dwt_statsFocus time totalsA

Total focus time for today, last 7 days, last 30 days, last 365 days and all time, plus best day and 30-day daily average.

Inputs: no named parameters.

dwt_statusCurrent focus session and today's totalA

Show the active Deep Work Timer session (if any: task, time remaining, which device owns it) and today's total focus time. Call this first before starting or logging anything.

Inputs: no named parameters.

dwt_switch_taskSwitch the running session to another taskA

Move the active session's open segment to a different task. Time is split honestly between tasks; total is conserved. Use this instead of dwt_start_session when a session is already running.

Inputs: task_id (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 14 tools

    Disambiguation5/5

    Each tool targets a distinct action/resource: session lifecycle (start, switch, log, abandon), task/project management, and reporting views are clearly separated. Even closely related tools like dwt_log_session and dwt_log_pomodoro are disambiguated by the descriptions (active session vs. past time).

    Naming Consistency4/5

    All tools share the 'dwt_' prefix and mostly follow a verb_noun pattern (list_projects, create_task, start_session, complete_task). A few names are noun-like (dwt_status, dwt_stats, dwt_lifetime_skills, dwt_deposits_today) but they are still predictable and consistent in style.

    Tool Count5/5

    14 tools is well-scoped for a deep work timer with projects, tasks, sessions, and reporting. Each tool has a clear purpose, and the number is large enough to cover key workflows without feeling bloated.

    Completeness4/5

    The core domain is well covered: session management, task creation/completion, manual logging, and multiple reporting views are present. Minor gaps like task/project update or delete operations exist, but they are not essential to the primary focus-tracking workflow.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Local workstation attention journal that tracks focus, idle, and agent sessions, exposing timeline data via MCP for AI agents to query current or past activity.
      5
      AGPL 3.0
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to connect to the OnTime personal workbench via MCP to manage tasks, projects, and goals through natural language, including creating sprint projects, logging progress, and querying workbench state in real time.
      1
      -