Atlas / MCP servers / 8bitgentleman / ActivityWatch

ActivityWatchCAUTION

mcp/8bitgentleman/activitywatch

Model Context Protocol server for ActivityWatch time tracking data

Verdict
CAUTION
Grade
B
Trust score
89 /100
Exposed tools
10 6r · 3w · 1d
Transport
stdio
License
MIT
Stars
73
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A Model Context Protocol (MCP) server that connects to ActivityWatch, allowing LLMs like Claude to interact with your time tracking data.

Features

  • List Buckets: View all available ActivityWatch buckets
  • Run Queries: Execute powerful AQL (ActivityWatch Query Language) queries
  • Get Raw Events: Retrieve events directly from any bucket
  • Get Settings: Access ActivityWatch configuration settings

Installation

You can install the ActivityWatch MCP server either from npm or by building it yourself.

Installing from npm (coming soon)

# Global installation
npm install -g activitywatch-mcp-server

# Or install locally
npm install activitywatch-mcp-server

Building from Source

  1. Clone this repository:
git clone https://github.com/8bitgentleman/activitywatch-mcp-server.git
cd activitywatch-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Prerequisites

  • ActivityWatch installed and running
  • Node.js (v14 or higher)
  • Claude for Desktop (or any other MCP client)

Usage

Using with Claude for Desktop

  1. Open your Claude for Desktop configuration file:
  2. Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  1. Add the MCP server configuration:
{
"mcpServers": {
"activitywatch": {
"command": "activitywatch-mcp-server",
"args": []
}
}
}

If you built from source, use:

{
"mcpServers": {
"activitywatch": {
"command": "node",
"args": ["/path/to/activitywatc
Read from source at commit 2f744a42f846OBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add activitywatch-mcp-server -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "activitywatch-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (10)

6 read · 3 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
activitywatch_add_categorywriteAdd a new category to ActivityWatch. The category will be appended to the existing list.
activitywatch_delete_categorydestructiveDelete an ActivityWatch category by its name path.
activitywatch_get_categoriesreadGet all ActivityWatch categories (classification rules). Returns the list of categories with their regex rules used to classify window events.
activitywatch_get_eventsreadGet raw events from an ActivityWatch bucket
activitywatch_get_settingsreadGet ActivityWatch settings. Can retrieve all settings or a specific key if provided.
activitywatch_get_uncategorized_eventsreadFetch window events that have NOT been matched by any category rule, grouped and sorted by total duration.
activitywatch_list_bucketsreadList all ActivityWatch buckets with optional type filtering
activitywatch_query_examplesreadGet examples of properly formatted queries for the ActivityWatch MCP server
activitywatch_run_querywriteRun a query in ActivityWatch
activitywatch_update_categorywriteUpdate an existing ActivityWatch category by its name path. Replaces the matching category with new values.
04

Trust audit

CAUTIONgrade B · trust 89/100 Install with care. The audit found things worth knowing before you trust its output.

LayerWhat it checksResult
L0Provenance & inventoryWARN
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (5 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (6)

MEDIUMInventory / provenance · inv.binary · CWE-1104
.DS_Store
.DS_Store
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
activitywatch_delete_category
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
.DS_Store
.DS_Store
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, axios, zod, @jest/globals, @types/jest, @types/node, cross-env, jest
Why it matters. 10 dependency range(s) float
Fix. pin exact versions or ship a lockfile
INFOPrompt injection · prompt.credential_read · CWE-94, CWE-1427
Docs/mcp-llms-full.txt:3297
load_dotenv()  # load environment variables from .env
Why it matters. asks the agent to read credentials
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
Docs/mcp-llms-full.txt:3881
curl -LsSf https://astral.sh/uv/install.sh | sh

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha 2f744a42f846full audit observations/trust-audit/mcp-server/8bitgentleman__activitywatch.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-072f744a42f846CAUTIONB89first audit
06

Questions

What is the ActivityWatch MCP server?

Model Context Protocol server for ActivityWatch time tracking data

What tools does ActivityWatch expose?

10 in total: 6 read-only, 3 that write, and 1 that can delete or overwrite (activitywatch_delete_category). Every one is listed on this page with its risk.

Is ActivityWatch safe to connect to an agent?

With care. The audit graded it B (89/100) and found 6 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does ActivityWatch need?

No credential environment variables were found in its source, so it appears to need none.

How does ActivityWatch run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as activitywatch-mcp-server at 1.2.1.

How current is this page?

The grade is for one exact copy of the source (2f744a42f846), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement