
8bitgentleman/activitywatch-mcp-server 是从 https://github.com/8bitgentleman/activitywatch-mcp-server. 导入的 MCP 服务器候选
概览
8bitgentleman/activitywatch-mcp-server 是从 https://github.com/8bitgentleman/activitywatch-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一个连接 ActivityWatch,允许像Claude这样的大型语言模型 与你的时间追踪数据互动。
特色
- 列表桶:查看所有可用的ActivityWatch桶
- 运行查询:执行强大的AQL(ActivityWatch查询语言)查询
- 获取原始事件:直接从任意桶检索事件
- 获取设置:访问ActivityWatch配置设置
安装
你可以从 npm 安装 ActivityWatch MCP 服务器,也可以自己搭建。
从npm安装(即将上线)
源头建筑
-
克隆此仓库:
-
安装依赖:
-
建设项目:
先修条件
- 已安装并运行的ActivityWatch
- Node.js(v14或更高)
- Claude桌面版(或其他MCP客户端)
用途
桌面版使用 Claude
- 打开你的Claude for Desktop配置文件:
- 窗口:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- 添加MCP服务器配置:
如果你是从源代码构建的,请使用:
-
重启Claude for Desktop
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
ActivityWatch MCP Server
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
-
Clone this repository:
git clone https://github.com/8bitgentleman/activitywatch-mcp-server.git cd activitywatch-mcp-server -
Install dependencies:
npm install -
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
-
Open your Claude for Desktop configuration file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
-
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/activitywatch-mcp-server/dist/index.js"] } } } -
Restart Claude for Desktop
-
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:
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.
{
"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
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"activitywatch": {
"command": "activitywatch-mcp-server",
"args": []
}
}
}