Provides tools for interacting with the Clockify API to manage time entries, start and stop timers, and perform team management tasks like analyzing weekly summaries and identifying overtime or undertime users.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Clockify MCP ServerShow me all time logged to the 'Website Redesign' project this week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WARNING
⚠️ THIS HAS MOSTLY BEEN CODED VIA AI - PROCEED AT YOUR OWN RISK⚠️
Clockify MCP Server
A Model Context Protocol (MCP) server that provides seamless integration with the Clockify time tracking API. This server enables AI assistants to interact with Clockify for time tracking, reporting, and team management tasks.
Features
Core Functionality
🔍 Find time entries by user, project, or search phrase
⏱️ Start and stop timers with project association
➕ Add time entries for any user with flexible parameters
📊 High-level analysis tools for team management
📈 Weekly summaries and overtime detection
High-Level Tools
Find overtime users: Identify team members working >40 hours/week
Find undertime users: Identify team members logging <20 hours/week
Weekly summaries: Get detailed breakdowns of hours by week
Project analytics: See who's working on what and for how long
Installation
Prerequisites
Python 3.10 or higher
Clockify API key (Get one here)
Quick Install with uvx
The easiest way to use this server is with uvx (bundled with uv):
Manual Installation
Configuration
Environment Variables
Set your Clockify API key as an environment variable:
You can get your API key from Clockify User Settings under "API" section.
MCP Client Configuration
Add this to your MCP client configuration file:
For Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
For Opencode
Available Tools
1. find_user_time_entries
Find all time entries for a specific user.
Parameters:
user_name(required): Name of the user (partial match, case-insensitive)start_date(optional): Start date in YYYY-MM-DD format (default: 30 days ago)end_date(optional): End date in YYYY-MM-DD format (default: today)limit(optional): Maximum entries to display (default: 50, use 0 for unlimited)workspace_id(optional): Workspace ID (default: user's default workspace)
Example:
2. find_project_time_entries
Find all time entries for a specific project.
Parameters:
project_name(required): Name of the project (partial match, case-insensitive)start_date(optional): Start date in YYYY-MM-DD format (default: 30 days ago)end_date(optional): End date in YYYY-MM-DD format (default: today)limit(optional): Maximum entries to display (default: 30, use 0 for unlimited)workspace_id(optional): Workspace ID
Example:
3. search_time_entries
Search time entries by description phrase.
Parameters:
search_phrase(required): Phrase to search for in descriptionsuser_name(optional): Limit search to specific userstart_date(optional): Start date in YYYY-MM-DD format (default: 30 days ago)end_date(optional): End date in YYYY-MM-DD format (default: today)limit(optional): Maximum entries to display (default: 50, use 0 for unlimited)workspace_id(optional): Workspace ID
Example:
4. add_time_entry
Add a time entry for a specific user.
Parameters:
user_name(required): Name of the userdescription(required): Description of the workstart_time(required): Start time in ISO format (e.g., 2024-01-29T09:00:00)end_time(required): End time in ISO format (e.g., 2024-01-29T17:00:00)project_name(optional): Project to associate withtask_name(optional): Task within the project (requires project_name)billable(optional): Whether time is billable (default: true)workspace_id(optional): Workspace ID
Example:
5. start_timer
Start a timer for the current user.
Parameters:
description(required): What you're working onproject_name(optional): Project to associate withtask_name(optional): Task within the project (requires project_name)workspace_id(optional): Workspace ID
Example:
6. stop_timer
Stop the currently running timer.
Parameters:
workspace_id(optional): Workspace ID
Example:
7. find_overtime_users
Find users working more than specified hours per week.
Parameters:
hours_threshold(optional): Hours per week threshold (default: 40)weeks(optional): Number of weeks to analyze (default: 4)workspace_id(optional): Workspace ID
Example:
8. find_undertime_users
Find users who didn't log minimum hours per week.
Parameters:
hours_threshold(optional): Minimum hours threshold (default: 20)weeks(optional): Number of weeks to analyze (default: 1)workspace_id(optional): Workspace ID
Example:
9. get_user_weekly_summary
Get a weekly breakdown of hours for a user.
Parameters:
user_name(required): Name of the userweeks(optional): Number of weeks to analyze (default: 4)workspace_id(optional): Workspace ID
Example:
Usage Examples
With Claude Desktop
Once configured, you can ask Claude natural language questions:
Programmatic Usage
Development
Setup Development Environment
Running Tests
Code Formatting
Project Structure
API Documentation
Complete API documentation is available in the docs/ directory:
00_INDEX.md - Overview and quick reference
01_USER_API.md - User management endpoints
02_WORKSPACE_API.md - Workspace configuration
03_TIME_ENTRY_API.md - Time tracking operations
04_PROJECT_API.md - Project management
05_REPORTS_API.md - Reporting and analytics
06_WEBHOOKS_API.md - Webhook configuration (not implemented in MCP server)
07_QUICK_REFERENCE.md - Code snippets and examples
Limitations
User-specific operations: Some operations (like adding time entries for other users) may require workspace admin permissions
Rate limiting: The server respects Clockify's rate limits (50 requests/second for addon tokens)
Workspace selection: Defaults to user's default workspace if not specified
Webhooks: Not implemented (not needed for MCP use case)
Troubleshooting
"CLOCKIFY_API_KEY environment variable is required"
Make sure you've set the API key in your environment or MCP configuration:
"User not found"
User names are matched using partial, case-insensitive search. Try:
Using just the first or last name
Checking spelling
Using the email address instead
"No workspaces found"
Ensure your API key is valid and you have access to at least one workspace in Clockify.
Connection Issues
If you're having connection issues:
Check your internet connection
Verify your API key is correct
Ensure you're not behind a proxy that blocks API requests
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
License
MIT License - see LICENSE file for details
Acknowledgments
Built on the Model Context Protocol
Integrates with Clockify time tracking
Documentation derived from official Clockify API docs
Support
Issues: GitHub Issues
Discussions: GitHub Discussions
Clockify API: docs.clockify.me
Changelog
v0.1.0 (Initial Release)
Core time entry operations
User and project search
Timer start/stop functionality
High-level analysis tools
Overtime/undertime detection
Weekly summaries