MCP server for RescueTime productivity data

v0.1.0
io.github.adelaidasofia/rescuetime-mcp Checked 1 day ago Published 6 months ago

MCP server for RescueTime productivity data

A lightweight MCP server that gives Claude access to your RescueTime productivity data. Built with FastMCP. All tools accept a day parameter: "today", "yesterday", or "YYYY-MM-DD". /plugin marketplace add adelaidasofia/rescuetime-mcp /plugin install rescuetime-mcp@rescuetime-mcp

Summary extracted from the README.

RescueTime MCP Server

A lightweight MCP server that gives Claude access to your RescueTime productivity data. Built with FastMCP.

Tools

Tool Description
get_daily_summary Productivity pulse, hours logged, productive vs. distracting time breakdown
get_top_activities Top apps/websites ranked by time spent
get_categories Time breakdown by category (Development, Communication, Social, etc.)
get_productivity_trend Productivity pulse trend over the past N days

All tools accept a day parameter: "today", "yesterday", or "YYYY-MM-DD".

Install

Open Claude Code, paste:

/plugin marketplace add adelaidasofia/rescuetime-mcp
/plugin install rescuetime-mcp@rescuetime-mcp

Then get a RescueTime API key at rescuetime.com/anapi/manage and set RESCUETIME_API_KEY in your environment.

1. Get your API key

Go to rescuetime.com/anapi/manage and create or copy an API key.

2. Download the server and install it

You need git and uv. If you don't have Python 3.11 or newer, uv downloads it for you.

git clone https://github.com/adelaidasofia/rescuetime-mcp.git "$HOME/rescuetime-mcp"
uv sync --directory "$HOME/rescuetime-mcp"

uv sync installs everything the server needs (FastMCP, httpx and mycelium-security, a URL safety check) at the versions pinned in uv.lock.

3. Add to Claude Code

claude mcp add rescuetime -s user \
  -e RESCUETIME_API_KEY=your_api_key_here \
  -- uv run --directory "$HOME/rescuetime-mcp" fastmcp run server.py

This works in every project. Or, for one project only, add this to that project's .mcp.json (Claude Code asks you to approve it the first time you start there), replacing /path/to/rescuetime-mcp with the full path of the folder from step 2:

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

4. Restart Claude Code

The RescueTime tools should appear in your session. Start Claude Code from your own project, not from inside the rescuetime-mcp folder: that folder has its own .mcp.json for the plugin, which clashes with this server.

Example Usage

Once connected, you can ask Claude things like:

  • "How productive was I today?"
  • "What apps did I spend the most time on yesterday?"
  • "Show me my productivity trend for the last 7 days"
  • "What categories did I spend time on this week?"

Requirements

  • Python 3.11+
  • FastMCP 3.x
  • A RescueTime account (free or premium)
  • RescueTime API key

How It Works

The server calls the RescueTime Analytic Data API using your API key and returns structured productivity data that Claude can reason about. No data is stored or sent anywhere except back to your Claude session.

Same author, same architecture pattern (FastMCP, draft+confirm on writes where applicable, vault auto-export, MIT):

Telemetry

This plugin sends a single anonymous install signal to myceliumai.co the first time it loads in a Claude Code session on a given machine.

What is sent:

  • Plugin name (e.g. slack-mcp)
  • Plugin version (e.g. 0.1.0)

What is NOT sent:

  • No user identifiers, names, emails, tokens, or API keys
  • No file paths, message content, or anything from your work
  • No IP address is stored after dedup processing

Why: Helps the maintainer know which plugins people actually install, so attention goes to the ones that get used.

Opt out: Set the environment variable MYCELIUM_NO_PING=1 before launching Claude Code. The hook will skip the network call entirely. Already-pinged installs leave a sentinel at ~/.mycelium/onboarded-<plugin> — delete it if you want to reset state.

License

MIT


Built by Mycelium AI. Full install or team version at diazroa.com.