8
8bitgentleman/activitywatch-mcp-server
Read ActivityWatch time-tracking data
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
2026-11-14 实测:注册表里没有这个包(E404),照原样敲会失败。
安装与配置
- 复制上面的命令
- 粘成
claude_desktop_config.json里mcpServers的一项(本地服务器用 command + args,示例见 客户端接法) - 重启客户端
取自该仓库的安装命令
npm install -g activitywatch-mcp-server
解析自我们于 2026-11-07 抓取的该仓库 README;我们未执行过。
这条是仓库自己写的安装方式,不是 MCP 客户端配置,所以不生成 JSON。
配置项的键名以你的客户端为准:客户端与 CLI
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
- 安装
npm install -g activitywatch-mcp-server
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是
npm install -g activitywatch-mcp-server。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# ActivityWatch MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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)
bash
# Global installation
npm install -g activitywatch-mcp-server
# Or install locally
npm install activitywatch-mcp-server
### Building from Source
1. Clone this repository:
bash
git clone https://github.com/8bitgentleman/activitywatch-mcp-server.git
cd activitywatch-mcp-server
2. Install dependencies:
bash
npm install
3. Build the project:
bash
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:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
1. Add the MCP server configuration:
json
"mcpServers": {
"activitywatch": {
"command": "activitywatch-mcp-server",
"args": []
If you built from source, use:
json
"mcpServers": {
"activitywatch": {
"command": "node",
"args": ["/path/to/activitywatch-mcp-server/dist/index.js"]
1. Restart Claude for Desktop
1. Look for the MCP icon in Claude's interface to confirm it's working
### Using a rootless podman container on Linux with Gemini CLI
Make sure to build the image first with:
sh
version=$(npm pkg get version | tr -d '"')
podman build . -t activitywatch-mcp-server:${version}
This example uses the override for Activity Watch not being available on
127.0.0.1 (see next section). If not required, you may omit the AW_API_BASE
environment variable.
json
"mcpServers": {
"activitywatch-mcp-server": {
"command": "/usr/bin/podman",
"args": [
"run",
"--rm",
"--interactive",
"--userns=keep-id",
"-e",
"AW_API_BASE",
"localhost/activitywatch-mcp-server:1.2.1"
],
"env": {
"AW_API_BASE": "http://mydesktop.local:5600/api/0"
### Override ActivityWatch server host/port
If you want to run this MCP server from inside Windows Subsystem for Linux,
for instance within a container, the AW server running in Windows will not be
available at 127.0.0.1. To override the standard localhost connection, use the
environment variable AW_API_BASE or the --aw-api-base flag, as below:
sh
# Using environment variable
export AW_API_BASE=http://mydesktop.local:5600/api/0
node dist/index.js
# Or using command-line flag
node dist/index.js --aw-api-base=http://mydesktop.local:5600/api/0
NOTE: The AW server may be fussy about the name used to connect to it, but it
will accept a name that matches the computer name where it is running with a
.local suffix.
### Example Queries
Here are some example queries you can try in Claude:
List all your buckets: "What ActivityWatch buckets do I have?"
Get application usage summary: "Can you show me which applications I've
used the most today?"
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)
bash
# Global installation
npm install -g activitywatch-mcp-server
# Or install locally
npm install activitywatch-mcp-server
### Building from Source
1. Clone this repository:
bash
git clone https://github.com/8bitgentleman/activitywatch-mcp-server.git
cd activitywatch-mcp-server
2. Install dependencies:
bash
npm install
3. Build the project:
bash
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:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
1. Add the MCP server configuration:
json
"mcpServers": {
"activitywatch": {
"command": "activitywatch-mcp-server",
"args": []
If you built from source, use:
json
"mcpServers": {
"activitywatch": {
"command": "node",
"args": ["/path/to/activitywatch-mcp-server/dist/index.js"]
1. Restart Claude for Desktop
1. Look for the MCP icon in Claude's interface to confirm it's working
### Using a rootless podman container on Linux with Gemini CLI
Make sure to build the image first with:
sh
version=$(npm pkg get version | tr -d '"')
podman build . -t activitywatch-mcp-server:${version}
This example uses the override for Activity Watch not being available on
127.0.0.1 (see next section). If not required, you may omit the AW_API_BASE
environment variable.
json
"mcpServers": {
"activitywatch-mcp-server": {
"command": "/usr/bin/podman",
"args": [
"run",
"--rm",
"--interactive",
"--userns=keep-id",
"-e",
"AW_API_BASE",
"localhost/activitywatch-mcp-server:1.2.1"
],
"env": {
"AW_API_BASE": "http://mydesktop.local:5600/api/0"
### Override ActivityWatch server host/port
If you want to run this MCP server from inside Windows Subsystem for Linux,
for instance within a container, the AW server running in Windows will not be
available at 127.0.0.1. To override the standard localhost connection, use the
environment variable AW_API_BASE or the --aw-api-base flag, as below:
sh
# Using environment variable
export AW_API_BASE=http://mydesktop.local:5600/api/0
node dist/index.js
# Or using command-line flag
node dist/index.js --aw-api-base=http://mydesktop.local:5600/api/0
NOTE: The AW server may be fussy about the name used to connect to it, but it
will accept a name that matches the computer name where it is running with a
.local suffix.
### Example Queries
Here are some example queries you can try in Claude:
List all your buckets: "What ActivityWatch buckets do I have?"
Get application usage summary: "Can you show me which applications I've
used the most today?"
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/8bitgentleman-activitywatch-mcp-server/)
- 来源
- awesome · https://github.com/8bitgentleman/activitywatch-mcp-server
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。