Skip to main content
Glama
adelaidasofia

RescueTime MCP Server

RescueTime MCP 服务器

一个轻量级的 MCP 服务器,让 Claude 可以访问您的 RescueTime 生产力数据。基于 FastMCP 构建。

工具

工具

描述

get_daily_summary

生产力脉搏、记录的小时数、生产力与干扰时间细分

get_top_activities

按花费时间排名的热门应用/网站

get_categories

按类别划分的时间细分(开发、沟通、社交等)

get_productivity_trend

过去 N 天的生产力脉搏趋势

所有工具都接受一个 day 参数:"today"(今天)、"yesterday"(昨天)或 "YYYY-MM-DD"

设置

1. 获取您的 API 密钥

前往 rescuetime.com/anapi/manage 创建或复制一个 API 密钥。

2. 安装 FastMCP

pipx install fastmcp

或者使用 uv

uv tool install fastmcp

3. 添加到 Claude Code

claude mcp add rescuetime \
  -e RESCUETIME_API_KEY=your_api_key_here \
  -- fastmcp run /path/to/server.py

或者手动添加到您的 .mcp.json 文件中:

{
  "mcpServers": {
    "rescuetime": {
      "command": "fastmcp",
      "args": ["run", "/path/to/server.py"],
      "env": {
        "RESCUETIME_API_KEY": "your_api_key_here"
      }
    }
  }
}

4. 重启 Claude Code

RescueTime 工具应该会出现在您的会话中。

使用示例

连接后,您可以询问 Claude 诸如:

  • "我今天的工作效率如何?"

  • "昨天我在哪些应用上花费的时间最多?"

  • "向我展示过去 7 天的生产力趋势"

  • "我这周在哪些类别上花费了时间?"

要求

  • Python 3.11+

  • FastMCP 3.x

  • RescueTime 账户(免费或高级版)

  • RescueTime API 密钥

工作原理

该服务器使用您的 API 密钥调用 RescueTime 分析数据 API,并返回 Claude 可以进行推理的结构化生产力数据。除了返回给您的 Claude 会话外,数据不会被存储或发送到任何地方。

许可证

MIT

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - A tier

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adelaidasofia/rescuetime-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server