wakatime-mcp
Provides read-only personal WakaTime analytics tools for recent coding activity, standup summaries, goals progress, and diagnostics using WakaTime API v1 endpoints.
wakatime-mcp
A lightweight, read-only Model Context Protocol (MCP) server (stdio transport) for personal WakaTime analytics, built as a standalone proof-of-concept for wakatime/wakatime-cli#1184.
Tools & Question Mapping
Rather than mirroring every raw REST endpoint, wakatime-mcp exposes 4 high-signal read-only tools mapped directly to the core developer questions highlighted in wakatime/wakatime-cli#1184:
Developer Question | MCP Tool | WakaTime API v1 Endpoints Used | Key Behavior |
"What have I been working on?" |
|
| Aggregates coding time across projects, languages, editors, branches, and categories with human-readable durations, percentage shares, and daily breakdown. |
"What should I say in standup?" |
|
| Compares previous coding day + today's progress by project and branch into concise |
"Am I on track?" |
|
| Evaluates enabled daily and weekly goals ( |
"Why is WakaTime showing weird numbers?" |
|
| Detects stale or missing heartbeats, unset/UTC profile timezone drift, multi-machine hostname splits, |
Related MCP server: ado-eod
Authentication & Zero-Config Discovery
wakatime-mcp resolves credentials automatically in the following order:
WAKATIME_API_KEYenvironment variable (plus optionalWAKATIME_API_URL, defaulting tohttps://api.wakatime.com/api/v1).~/.wakatime.cfgINI file (also honoring$WAKATIME_CONFIGand$WAKATIME_HOME/.wakatime.cfg), reading[settings] api_key,api_url,timeout, andhostname— matchingwakatime-cliout of the box with zero duplicate configuration.
Both modern waka_... keys and legacy UUID keys are encoded per WakaTime's HTTP Basic Auth specification (Authorization: Basic <base64(api_key)>).
Security & Privacy Design
100% Read-Only Personal Scope: Only
GET /users/current/*endpoints are called; heartbeats, goals, and account settings are never mutated.Automatic Secret Redaction:
WakaTimeConfig,WakaTimeError, andredact_secrets()scrub raw API keys, Base64 credentials, and query parameters from allrepr()strings and error payloads.TLS Enforcement: Non-loopback
http://api_urlvalues are rejected by default unlessWAKATIME_ALLOW_INSECURE_HTTP=1is explicitly set for local self-hosted testing.
Quick Start
Install
pip install git+https://github.com/khoap1220-hue/wakatime-mcp.gitOr run directly with uv:
uvx --from git+https://github.com/khoap1220-hue/wakatime-mcp.git wakatime-mcpClient Configuration (Claude Desktop / Cursor / VS Code / Continue)
If ~/.wakatime.cfg is already configured on your machine by your IDE's WakaTime plugin, no extra env block is required:
{
"mcpServers": {
"wakatime": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/khoap1220-hue/wakatime-mcp.git",
"wakatime-mcp"
]
}
}
}Or pass WAKATIME_API_KEY explicitly:
{
"mcpServers": {
"wakatime": {
"command": "wakatime-mcp",
"env": {
"WAKATIME_API_KEY": "waka_your_api_key_here"
}
}
}
}Development & Testing
pip install -e ".[dev]"
ruff check src tests
PYTHONDONTWRITEBYTECODE=1 python -B -m pytestRoadmap (Planned Next Phases)
This repository intentionally focuses on the personal read-only core. Planned next phases depending on maintainer direction in wakatime/wakatime-cli#1184:
Organization & Team Dashboards: Scoped read-only tools for
/orgs/:org/dashboards/...team summaries and project velocity.OAuth 2.0 Flows: Least-privilege OAuth2 scopes (
email,read_logged_time,read_stats) with automatic token refresh.Streamable HTTP Transport: Remote MCP server deployment support alongside local
stdio.Optional Go CLI Bridge: Evaluating a standalone binary/repository vs. a thin
wakatime-cli --serve-mcpsubcommand sharing~/.wakatime.cfgparsing.
License
Available Tools
4 toolswakatime_diagnosticsA
Answer "Why is WakaTime showing weird numbers?" by auditing heartbeats, timezone, machines, and slices.
Args:
date_str: "today" (default), "yesterday", or an ISO date "YYYY-MM-DD".
Inputs: date_str. Returns: object
wakatime_goals_progressA
Answer "Am I on track?" by evaluating daily and weekly coding goals vs live pace.
Inputs: no named parameters. Returns: object
wakatime_recent_activityA
Answer "What have I been working on?" by aggregating WakaTime summaries.
Args:
range_str: WakaTime range preset (today, yesterday, last_7_days,
last_14_days, last_30_days, this_week, last_week, this_month)
or YYYY-MM-DD..YYYY-MM-DD date span.
project: Optional project name filter.
Inputs: project, range_str. Returns: object
wakatime_standup_briefA
Answer "What should I say in standup?" with Yesterday / Today / Focus bullets.
Automatically falls back to the last active coding day (up to 7 days back)
when yesterday had 0 seconds logged (e.g., Monday standup after a weekend).
Args:
target_date: "yesterday" (default) or an explicit ISO date "YYYY-MM-DD".
Inputs: target_date. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a distinct high-level purpose: diagnostics, recent activity, standup summary, and goal progress. The main overlap is between wakatime_recent_activity and wakatime_standup_brief, since both aggregate summaries, but their descriptions make the boundary reasonably clear.
All four tools use the same wakatime_ prefix and snake_case noun-phrase naming convention. There is no mixing of casing or verb styles.
Four focused tools fit the narrow WakaTime workflow use case well. Each tool maps to a clear question or task, with no obviously redundant or filler tools.
The surface covers diagnostics, activity review, standup reporting, and goal tracking, which are core personal WakaTime workflows. Minor gaps remain, such as project listing or more granular stats, but agents can work around these for the stated purposes.
Maintenance
Related MCP Connectors
Read-only MCP server for AIStatusDashboard status, incidents, metrics, and fallback recommendations.
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Read-only MCP server for The Quiet Protocol's engines, benchmarks, proof, and business data.
timesheet.io MCP server - manage timers, projects, tasks and reports
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceRead-only MCP server for Things 3 to retrieve completed tasks by date, weekly summaries, and project reports for analysis and reflection.-
- AlicenseNot gradedqualityCmaintenanceMCP server that turns your IDE session history and git activity into Azure DevOps ticket updates, drafting comments, hours, and state changes with confirm-before-post. It also provides read-only progress, people, breakdown, and timeline reports for leads.MIT
- AlicenseNot gradedqualityCmaintenanceRead-only MCP server for Clockify time tracking, exposing 60 raw read tools and five workflows for status, workspace overview, and review of days/weeks.MIT
- FlicenseNot gradedqualityDmaintenanceRead-only MCP server for querying AI usage metrics (exact tokens, cost, latency, errors, productivity) from a local SQLite database, enabling charts and analysis in Claude Code and Cursor.-