wakapi-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wakapi-mcp show my coding summary for this week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
wakapi
MCP connector for a self-hosted Wakapi server, tested against Wakapi 2.18.2. It speaks the HTTP API under /api over stdio and over stateless Streamable HTTP on localhost.
Wakapi on GitHub is MIT software. The vendored swagger info.license field says GPL-3.0 and points at the same repository. GitHub reported SPDX MIT for muety/wakapi on 2026-11-03. This connector does not copy the Go server. vendor/wakapi-swagger.json is a copy of the swagger shipped with the local 2.18.2 binary. See vendor/LICENSE-NOTE.md. The connector is not affiliated with Wakapi.
wakapi.routes.json lists every operation in that swagger. 22 operations are tools. None are excluded. scripts/gen-operations.mjs writes src/operations.ts from the swagger. Do not edit src/operations.ts by hand.
WAKAPI_URL and WAKAPI_API_KEY are required. There is no default origin. This connector talks to your Wakapi server. It does not call wakatime.com.
Setup
npm install
npm run ci
npm start
npm run start:httpnpm start speaks stdio. npm run start:http serves Streamable HTTP at http://127.0.0.1:3000/mcp and GET /health. HTTP mode has no authentication of its own. Keep it on localhost.
{
"mcpServers": {
"wakapi": {
"command": "node",
"args": ["/workspace/connectors/wakapi/dist/index.js"],
"env": {
"WAKAPI_URL": "http://127.0.0.1:8097",
"WAKAPI_API_KEY": "...",
"WAKAPI_ALLOW_WRITES": "false",
"WAKAPI_TOOLSETS": "summaries,projects,leaderboard,heartbeats,meta"
}
}
}
}Docker, HTTP, no authentication, keep it on localhost.
docker build -t wakapi-mcp .
docker run -p 127.0.0.1:3000:3000 \
-e WAKAPI_URL=http://127.0.0.1:8097 \
-e WAKAPI_API_KEY=... \
wakapi-mcpDo not put secrets in the image.
Regenerate the registry after a spec bump.
npm run gen:operationsscripts/live-check.mjs talks to a real server over stdio. It reads the API key from WAKAPI_API_KEY or from WAKAPI_API_KEY_FILE (default /workspace/tools/wakapi/api.key). It unsets DATABASE_URL. It sets WAKAPI_TOOLSETS=all for the child process. It prints pass or fail lines only, and it redacts the key.
Related MCP server: duckdb_analytics_mcp
Config
Variable | Meaning |
| Required. Origin, |
| Required. Sent as |
| Must be the literal |
| Comma list, or |
| Local request budget. Default 30. Cache hits do not spend it. |
| Upstream timeout. Default 20000. |
| Read cache TTL. Default 60. Writes clear the cache. |
| Contact token in the User-Agent. Must not contain the API key. |
|
|
| HTTP port. Default 3000. |
Invalid values are reported by field name and issue code. The rejected value is not included.
Paths in the swagger are mounted at /api on Wakapi 2.18.2. Health is GET /api/health and sends no API key. Shields badges send no key. Every other mapped route sends the Basic header.
Safety
Default toolsets are reads. Heartbeat posts and the diagnostics post live on separate toolsets. Those toolsets are off until WAKAPI_TOOLSETS includes them or is all.
A write on an enabled toolset still needs confirm set to the boolean true and WAKAPI_ALLOW_WRITES=true. The string "true" is rejected. Otherwise the tool returns a dry-run preview of method, path, query, and body, and it sends nothing.
HTTP 401 is unauthorized. HTTP 403 is forbidden. HTTP 404 is not found. HTTP 400 and 422 are invalid input. HTTP 429 includes Retry-After when the header is present. Other failures are server, network, or timeout. Response bodies are capped at 1,000,000 bytes.
The swagger has no delete operations. Heartbeats you confirm stay on the server.
Tools
Default WAKAPI_TOOLSETS publishes 5 tools and 13 read operations. WAKAPI_TOOLSETS=all publishes 7 tools and 22 operations. Each tool takes action plus optional params, query, body, and, on write tools, confirm.
action help with optional target returns the fields for one action.
Toolset | Tool | Actions | Default |
summaries |
| summary, wakatime_summaries, stats, all_time, statusbar | yes |
projects |
| list, get | yes |
leaderboard |
| list | yes |
heartbeats |
| list | yes |
meta |
| health, badge, user, user_agents | yes |
heartbeats_write |
| create, create_bulk, user_create, user_bulk, v1_create, v1_bulk, compat_create, compat_bulk | no |
diagnostics |
| post | no |
wakapi_summaries filters by project, language, editor, operating_system, machine, and label where the route defines them. Native summary uses from and to. WakaTime wakatime_summaries uses start and end. stats takes path range, for example last_7_days. all_time and statusbar are the WakaTime-compatible totals.
Pass query.format as csv on any summaries action. The tool returns dimension,key,total_seconds,text and does not send format to Wakapi. json is the default.
params.user accepts current on the WakaTime-compatible routes. Heartbeat list requires query date (YYYY-MM-DD).
create is POST /api/heartbeat. create_bulk is POST /api/heartbeats. The user_*, v1_*, and compat_* actions are the alias paths in the swagger. A heartbeat body needs entity, type, time, and usually project.
Shields badges use path interval and filter. On the 2.18.2 server used for the live check, interval:last_7_days with project:name returned JSON. A bare today returned HTTP 403, requested time range too broad. The user must allow a public share window or the badge route rejects the range. Health is plain text (app=1 and db=1).
Other Wakapi and WakaTime MCP servers
gh search repos "wakapi mcp" on 2026-11-03 returned no repositories. gh search repos "mcp-wakapi" and a search for WAKAPI_URL found one Wakapi server. The other results target wakatime.com. Stars and licenses are from gh api the same day. File contents were read with gh api.
impure0xntk/mcp-wakapi is the only self-hosted Wakapi server in that search. 1 star, Apache-2.0, Python, last push 2026-10-04. Tools seen in the tree are get_stats, get_projects, get_project_detail, get_leaders, get_user, get_all_time_since_today, get_recent_logs, and test_connection. The client uses HTTP Basic. The README also says Bearer. Those two statements disagree. The client code is Basic. There is no summaries tool, no CSV output, no heartbeat POST, and no write switch.
geeknees/wakatime-mcp is 6 stars. GitHub has no license file. The README badge says MIT. It calls https://api.wakatime.com/api/v1/ and exposes wakatime_summaries and wakatime_today only.
geeknees/wakatime-mcp-rb is 1 star, MIT, the same two summary tools in Ruby, aimed at wakatime.com.
dpshde/wakatime-mcp is 0 stars, MIT, Python, default host api.wakatime.com. Tools are get_coding_stats, get_summary, get_all_time, get_status_bar, and list_projects. The client is GET only.
efirvida/wakatime-mcp is 0 stars, no license file. It calls api.wakatime.com with several read tools, including heartbeats as summarized counts. No CSV and no heartbeat POST.
Mediel/WakaTimeMcp is 0 stars, MIT, C#, marked read-only. The default base URL is https://wakatime.com/api/v1/. It adds billing and free-slot helpers. No heartbeat list, no CSV, no writes.
pipeworx-io/mcp-wakatime is 0 stars, MIT, a hosted gateway plus an npm bridge. It is not a self-hosted Wakapi client.
thegauravgiri/mitra-mcp is 2 stars, no GitHub license. WakaTime is four read tools against wakatime.com summaries. No Wakapi URL.
None of those servers combine a self-hosted Wakapi origin with summaries, projects, leaderboard, heartbeat read, opt-in heartbeat write, user and meta routes, and CSV summaries, with reads as the default.
Live check
See LIVE-CHECK.md for the last run against Wakapi 2.18.2 at http://127.0.0.1:8097.
License
MIT. See LICENSE.
Available Tools
5 toolswakapi_heartbeatsCRead-only
wakapi_heartbeats covers the heartbeats toolset (1 operations). Calls go to WAKAPI_URL with the /api prefix. Authenticated routes send Authorization Basic base64 of the API key. The key is never placed in the URL. Health and shields badges send no key. action help with target returns one action's parameters. Actions: list.
Inputs: action (required), body, query, params, +1 more.
wakapi_leaderboardCRead-only
wakapi_leaderboard covers the leaderboard toolset (1 operations). Calls go to WAKAPI_URL with the /api prefix. Authenticated routes send Authorization Basic base64 of the API key. The key is never placed in the URL. Health and shields badges send no key. action help with target returns one action's parameters. Actions: list.
Inputs: action (required), body, query, params, +1 more.
wakapi_metaBRead-only
wakapi_meta covers the meta toolset (4 operations). Calls go to WAKAPI_URL with the /api prefix. Authenticated routes send Authorization Basic base64 of the API key. The key is never placed in the URL. Health and shields badges send no key. action help with target returns one action's parameters. Actions: badge, user, user_agents, health.
Inputs: action (required), body, query, params, +1 more.
wakapi_projectsCRead-only
wakapi_projects covers the projects toolset (2 operations). Calls go to WAKAPI_URL with the /api prefix. Authenticated routes send Authorization Basic base64 of the API key. The key is never placed in the URL. Health and shields badges send no key. action help with target returns one action's parameters. Actions: list, get.
Inputs: action (required), body, query, params, +1 more.
wakapi_summariesARead-only
wakapi_summaries covers the summaries toolset (5 operations). Calls go to WAKAPI_URL with the /api prefix. Authenticated routes send Authorization Basic base64 of the API key. The key is never placed in the URL. Health and shields badges send no key. action help with target returns one action's parameters. Pass query format csv for a CSV table of dimension, key, total_seconds, and text. That format value is not sent to Wakapi. Actions: all_time, stats, wakatime_summaries, summary, statusbar.
Inputs: action (required), body, query, params, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool maps cleanly to a distinct Wakapi resource (heartbeats, leaderboard, projects, summaries, meta), so an agent can pick a tool by resource alone. The risk is inside tools: wakapi_summaries bundles five actions (summary, wakatime_summaries, all_time, stats, statusbar) whose boundaries are not explained, and the near-identical boilerplate descriptions give no domain context beyond the action list.
All five tools follow the same predictable pattern: a wakapi_ namespace prefix plus the resource noun in snake_case, with the verb expressed as an action parameter. The only weakness is that names encode no operation, so 'list' vs 'get' behavior has to be discovered from the action enumeration rather than the tool name.
Five tools covering thirteen underlying operations is a well-scoped, resource-oriented grouping that keeps the surface small. A few groupings are lopsided (wakapi_heartbeats and wakapi_leaderboard each expose only 'list'), so some tools are thin while wakapi_summaries carries five actions.
The surface is read-only: it covers analytics retrieval (summaries, projects, leaderboards, heartbeats listing) plus meta utilities like user, badge, and health. Notable gaps remain for writing or removing heartbeats, per-user/alias and duration endpoints, and filtering options that the Wakapi API exposes, which will limit agents needing to submit or mutate data.
Maintenance
Related MCP Connectors
Read your WakaTime coding time: summaries, stats, projects, goals, commits and leaderboards.
Self-hostable uptime monitoring: create checks, read incidents, manage status pages.
Privacy-first web analytics. Query pageviews, referrers, trends, and AI insights.
Query, edit, and reconcile a hosted Beancount ledger: BQL, reports, files, and bank imports.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables tracking and analyzing development time through the Wakapi API. Provides tools to retrieve coding statistics, project details, leaderboards, and recent activity logs for productivity insights.81Apache 2.0
- AlicenseNot gradedqualityCmaintenanceProvides read-only SQL analytics on local CSV, Parquet, and JSON datasets using DuckDB, with pagination, security guardrails, and health monitoring.MIT
- AlicenseNot gradedqualityBmaintenanceServes read-only archived ResMed CPAP data from a local SQLite database, enabling MCP clients to query nightly summaries, raw signals, and sync status over the LAN.438 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to query self-hosted Apple Health summaries, history, sleep, training load, workouts, period comparisons, ingestion status, and metric recomputation through typed tools, resources, and prompts.MIT