ActivityWatch MCP 服务器

ActivityWatch MCP 服务器

用于 ActivityWatch 时间跟踪数据的模型上下文协议 (MCP) 服务器。

快速入门

安装

  1. 克隆仓库: git clone https://github.com/8bitgentleman/activitywatch-mcp-server.git cd activitywatch-mcp-server
  2. 安装依赖: npm install
  3. 构建项目: npm run build

使用

  1. 确保已安装并运行 ActivityWatch
  2. 配置 Claude for Desktop:编辑配置文件,添加以下内容: { "mcpServers": { "activitywatch": { "command": "node", "args": ["/path/to/activitywatch-mcp-server/dist/index.js"] } } }
  3. 重启应用并查看 MCP 图标确认连接成功。

示例查询

  • 查询所有桶:"我的 ActivityWatch 桶有哪些?"
  • 获取应用使用情况:"今天我最常用哪些应用?"