Skip to main content
Glama
RescueTime MCP Server

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"。

Related MCP server: RescueTime MCP Server

设置

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

Available Tools

5 tools
get_activity_dataA

Get top activities/applications by time spent.

Args: date_str: Date to query - 'today', 'yesterday', or 'YYYY-MM-DD' limit: Maximum number of activities to show (default: 10)

Shows which specific applications and websites you spent time on, ranked by duration. Includes productivity classification for each.

Inputs: date_str, limit. Returns: result

get_category_breakdownA

Get time spent by category.

Args: date_str: Date to query - 'today', 'yesterday', or 'YYYY-MM-DD'

Shows high-level categories like Software Development, Communication, Reference & Learning, etc. with time and productivity classification.

Inputs: date_str. Returns: result

get_hourly_productivityA

Get productivity breakdown by hour.

Args: date_str: Date to query - 'today', 'yesterday', or 'YYYY-MM-DD'

Shows when during the day you were most/least productive. Useful for identifying peak productivity hours and scheduling deep work.

Inputs: date_str. Returns: result

get_productivity_trendB

Get productivity pulse trend for the last N days.

Args: days: Number of days to look back (default: 7, max 14)

Shows the daily productivity pulse with visual bars and calculates averages. Useful for identifying patterns and trends over time.

Inputs: days. Returns: result

get_today_summaryA

Get today's complete RescueTime productivity summary.

This is the recommended daily check-in tool. Returns:

  • Productivity pulse (0-100 score)

  • Total time logged

  • Time breakdown by productivity level

  • Productive vs distracting percentages

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct focus: activity details, category aggregation, hourly productivity, trend over days, and a comprehensive daily summary. No overlap between tools.

    Naming Consistency5/5

    All tools follow a consistent 'get_<descriptive_noun>' pattern with snake_case, making it predictable for an agent to infer function from name.

    Tool Count5/5

    Five tools is well-scoped for a personal productivity monitoring server, covering key aspects without unnecessary complexity or missing essentials.

    Completeness4/5

    The tool set covers daily summary, detailed activities, categories, hourly breakdown, and trends. Minor gaps like historical data export or multi-day comparison are acceptable.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables comprehensive access to RescueTime productivity data and features through the Model Context Protocol. Supports analytics retrieval, focus session management, highlights creation, and offline time tracking through natural language interactions.
      12
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects your Whoop health data to Claude, enabling natural language queries about recovery, sleep, strain, and workouts.
      MIT