Provides comprehensive access to RescueTime's productivity tracking APIs, enabling retrieval of analytic data, daily summaries, alerts management, highlights creation, focus session control, and offline time logging for productivity monitoring and management.
RescueTime MCP Server
A comprehensive FastMCP server for integrating with the RescueTime API, providing tools to access productivity data, manage focus sessions, and interact with all RescueTime features through the Model Context Protocol (MCP).
Table of Contents
Features
- Complete RescueTime API Coverage: Access all major RescueTime APIs including analytic data, daily summaries, alerts, highlights, focus sessions, and offline time tracking
- FastMCP Integration: Built on the FastMCP framework for robust MCP server functionality
- Async Support: Full asynchronous support for high-performance operations
- Type Safety: Comprehensive type hints and Pydantic models for data validation
- Error Handling: Robust error handling with custom exceptions and logging
- Comprehensive Testing: Full test suite including unit tests, integration tests, and performance tests
Supported RescueTime APIs
1. Analytic Data API
- Get detailed productivity analytics with customizable time ranges and filters
- Support for different perspectives (rank, interval, member) and resolutions
2. Daily Summary Feed API
- Access daily productivity summaries and pulse scores
- Filter by date ranges
3. Alerts Feed API
- Retrieve and manage productivity alerts
- Dismiss unwanted alerts
4. Highlights Feed/POST API
- View existing highlights
- Create new productivity highlights
5. FocusTime APIs
- Start and end focus sessions
- Monitor current focus session status
- Set custom focus duration
6. Offline Time POST API
- Log offline work time
- Add descriptions for offline activities
Installation
Prerequisites
- Python 3.9 or higher
- RescueTime account with API access
- RescueTime API key
Install from Source
Configuration
Environment Variables
Set your RescueTime API key as an environment variable:
Alternatively, create a .env
file in the project root:
Getting Your API Key
- Log in to your RescueTime account
- Go to https://www.rescuetime.com/anapi/manage
- Generate or copy your existing API key
Usage
Running the MCP Server
Available MCP Tools
get_analytic_data
- Get detailed productivity analytics with filtersget_daily_summary_feed
- Access daily productivity summariesget_alerts_feed
- Retrieve productivity alertsdismiss_alert
- Dismiss specific alertsget_highlights_feed
- View productivity highlightspost_highlight
- Create new highlightsstart_focus_session
- Start FocusTime sessionsend_focus_session
- End current focus sessionget_focus_session_status
- Check focus session statuspost_offline_time
- Log offline work timehealth_check
- Verify API connection
Development
Running Tests
Code Quality
Project Structure
Contributing
See CONTRIBUTING.md for development setup, code standards, and contribution guidelines.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright © 2025 Eric Bowman
Acknowledgments
- Built with FastMCP framework
- Uses RescueTime API
- Powered by Pydantic for data validation
- HTTP client powered by httpx
Special thanks to the FastMCP community and RescueTime for providing robust APIs.
Support
Getting Help
- Documentation: This README and inline code documentation
- Bug Reports: Use GitHub Issues
- Feature Requests: Create an issue with detailed use cases
- Questions: Use GitHub Discussions
- Security: Email ebowman@boboco.ie for security-related issues
Project Status
This project is actively maintained. We aim to respond to issues and pull requests promptly.
- Latest Version: v0.1.0
- Python Support: 3.9+
- Status: Beta Release
Changelog
See CHANGELOG.md for detailed version history and changes.
Made with ❤️ by Eric Bowman
If this project helps you, please consider giving it a ⭐ on GitHub!
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
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.
Related MCP Servers
- AsecurityAlicenseAqualityAn interface that allows large language models like Claude to interact with ActivityWatch time tracking data through the Model Context Protocol, enabling queries about application usage, browsing history, and productivity patterns.Last updated -524TypeScriptMIT License
- -securityAlicense-qualityProvides advanced analytical, research, and natural language processing capabilities through a Model Context Protocol server, enabling dataset analysis, decision analysis, and enhanced NLP features like entity recognition and fact extraction.Last updated -2TypeScriptMIT License
TimeCamp MCP Serverofficial
-securityFlicense-qualityA Model Context Protocol server that provides time tracking integration with TimeCamp, allowing AI assistants to create, retrieve, update, and delete time entries through natural language commands.Last updated -TypeScript- AsecurityFlicenseAqualityProvides real-time system metrics and information through a Model Context Protocol interface, enabling access to CPU usage, memory statistics, disk information, network status, and running processes.Last updated -72Python