Skip to main content
Glama
efirvida

wakatime-mcp

by efirvida
README.md
# πŸš€ wakatime-mcp

[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

An MCP server that exposes WakaTime summary tools over stdio. It proxies the
WakaTime Summaries API with your API key and returns raw JSON for clients to
parse as needed.

## πŸ“‹ Summary

Key features:

- πŸ” Uses `WAKATIME_API_KEY` for authentication
- πŸ“Š Exposes daily summaries and today’s summary
- πŸ“¦ Runs via `npx` (no install required)

## πŸš€ Quick Start (npx)

```bash
export WAKATIME_API_KEY="YOUR_API_KEY"
npx wakatime-mcp
```

## πŸ€– MCP Config (npx)

```json
{
  "command": "npx",
  "args": ["-y", "github:geeknees/wakatime-mcp"],
  "env": {
    "WAKATIME_API_KEY": "YOUR_API_KEY"
  }
}
```

## 🧰 Available Tools

### `wakatime_summaries`

```json
{
  "tool": "wakatime_summaries",
  "arguments": {
    "start": "2025-01-01",
    "end": "2025-01-07",
    "project": "my-project",
    "timezone": "Asia/Tokyo"
  }
}
```

### `wakatime_today`

```json
{
  "tool": "wakatime_today",
  "arguments": {
    "project": "my-project",
    "timezone": "Asia/Tokyo"
  }
}
```

## βš™οΈ Configuration

| Environment Variable | Description | Required |
| --- | --- | --- |
| `WAKATIME_API_KEY` | WakaTime API key | βœ… |

## πŸ§ͺ Tests

```bash
npm test
```

TDQS

A3.5/5.0

Scored across 10 tools

Disambiguation3/5

Several tools (today, summaries, durations, heartbeats, stats) all return time-tracking data with overlapping periods and granularities, making selection potentially confusing. Descriptions clarify differences, but the boundaries between raw summaries, processed durations, and aggregated stats are not always obvious.

Naming Consistency4/5

All tools share the wakatime_ prefix and use snake_case, creating a clear family identity. However, the semantic structure varies (e.g., wakatime_today is adverbial, wakatime_summaries is a plural noun, wakatime_mark_consumed is verb-object), so the pattern is consistent in style but not in syntactic form.

Tool Count5/5

10 tools is a well-scoped number for a WakaTime integration, covering user info, projects, multiple time-reporting views, and a session-tracking workflow with mark_consumed. Each tool has a distinct role, and the count fits comfortably in the ideal 3-15 range.

Completeness4/5

The tool set covers the major WakaTime API areas: user validation, project listing, summaries, durations, heartbeats, stats, and all-time totals. The session_duration/mark_consumed pair adds a practical workflow. Missing advanced endpoints like goals or leaderboards are non-core, so the surface is nearly complete.

Maintenance

ActivitySlowing
ResponsivenessNo issues