Clockify MCP Server
Provides tools for interacting with Clockify's API to manage workspaces, projects, time entries, tags, clients, tasks, users, and reports, including starting/stopping timers and generating time tracking reports.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Clockify MCP Server
A Model Context Protocol (MCP) server for Clockify time tracking integration. This server enables AI assistants to interact with Clockify's API to manage time entries, projects, tags, clients, tasks, and more.
Features
Workspaces: Retrieve workspace information
Projects: Create, read, update, and delete projects
Time Entries: Track time with full CRUD operations
Tags: Organize time entries with tags
Clients: Manage client information
Tasks: Create and manage tasks within projects
Users: Retrieve user information
Reports: Generate time tracking reports
Related MCP server: Clockify MCP Server
Run with Docker
You can run the MCP server in a Docker container:
docker build -t clockify-mcp-server .
docker run --env CLOCKIFY_API_KEY=your_api_key_here -p 3000:3000 clockify-mcp-serverYou can also pass other environment variables as needed (see Configuration section).
Prerequisites
Node.js 18.0.0 or higher
A Clockify account with API access
Clockify API key
Installation
Clone or download this repository
Install dependencies:
### Running Tests
To run the test suite:
```bash
npm testnpm install
3. Set up your environment variables (see Configuration below)
This project is licensed under the terms of the MIT license. See the [LICENSE](./LICENSE) file for details.
## Configuration
1. Log in to Clockify
2. Go to Settings → Advanced → Manage API keys
3. Copy your API key
### Environment Variables
Set the following environment variables:
```bash
CLOCKIFY_API_KEY=your_api_key_here
CLOCKIFY_API_BASE_URL=https://api.clockify.me/api/v1 # Optional, defaults to this valueRegional URLs (if you're using a regional instance):
EU:
https://euc1.clockify.me/api/v1US:
https://use2.clockify.me/api/v1UK:
https://euw2.clockify.me/api/v1AU:
https://apse2.clockify.me/api/v1
Development
Project Structure
mcp/
├── src/
│ ├── server.js # Main MCP server implementation
│ └── clockify-api.js # Clockify API client wrapper
├── test/
│ └── clockify-api.test.js # Basic tests for Clockify API client
├── package.json # Project dependencies and scripts
├── clockify-mcp-spec.json # API specification
├── .env.example # Example environment variables
├── .github/
│ └── workflows/
│ └── build.yml # CI workflow
├── eslint.config.js # ESLint configuration
└── README.md # This fileUsage
Running the Server
npm startFor development with auto-reload:
npm run devUsing with Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"clockify": {
"command": "node",
"args": ["<path-to-your-server.js>"],
"env": {
"CLOCKIFY_API_KEY": "your_api_key_here"
}
}
}
}Using with Other MCP Clients
The server communicates over stdio and follows the Model Context Protocol specification. Configure your MCP client to run:
node server.jswith the appropriate environment variables set.
Available Tools
Workspace Tools
get_workspaces- Get all accessible workspacesget_workspace- Get details of a specific workspace
Project Tools
get_projects- List projects in a workspaceget_project- Get project detailscreate_project- Create a new projectupdate_project- Update project detailsdelete_project- Delete a project
Time Entry Tools
get_time_entries- List time entriescreate_time_entry- Create a new time entryupdate_time_entry- Update a time entrydelete_time_entry- Delete a time entrystart_time_entry- Start a running timerstop_time_entry- Stop the current timerget_running_time_entry- Get currently running time entry
Tag Tools
get_tags- List tags in a workspacecreate_tag- Create a new tag
Client Tools
get_clients- List clients in a workspacecreate_client- Create a new client
Task Tools
get_tasks- List tasks in a projectcreate_task- Create a new task
User Tools
get_current_user- Get authenticated user detailsget_users- List users in a workspace
Reporting Tools
get_reports- Generate time tracking reports
Example Usage
Starting a Timer
{
"tool": "start_time_entry",
"arguments": {
"workspaceId": "your_workspace_id",
"description": "Working on documentation",
"projectId": "your_project_id",
"tagIds": ["tag_id_1", "tag_id_2"],
"billable": true
}
}Creating a Project
{
"tool": "create_project",
"arguments": {
"workspaceId": "your_workspace_id",
"name": "New Project",
"clientId": "client_id",
"color": "#FF5733",
"billable": true
}
}Getting Time Entries
{
"tool": "get_time_entries",
"arguments": {
"workspaceId": "your_workspace_id",
"start": "2025-01-01T00:00:00Z",
"end": "2025-01-31T23:59:59Z",
"projectId": "your_project_id"
}
}API Rate Limits
Clockify API has a rate limit of 50 requests per second per add-on on one workspace. The server does not currently implement rate limiting, so be mindful of this when making requests.
Resources
The server exposes the following resources:
clockify://workspaces- List of all workspaces
Error Handling
The server handles errors from the Clockify API and returns them in a structured format. Common errors include:
Missing or invalid API key
Invalid workspace/project/tag IDs
Rate limit exceeded
Insufficient permissions
Development
Project Structure
mcp/
├── server.js # Main MCP server implementation
├── clockify-api.js # Clockify API client wrapper
├── package.json # Project dependencies
├── clockify-mcp-spec.json # API specification
└── README.md # This fileAdding New Tools
Add the tool definition in the
ListToolsRequestSchemahandlerImplement the API method in
clockify-api.jsif neededAdd the tool handler case in the
CallToolRequestSchemahandler
Troubleshooting
"CLOCKIFY_API_KEY environment variable is required"
Make sure you've set the
CLOCKIFY_API_KEYenvironment variableCheck that your MCP client configuration includes the env variables
API errors
Verify your API key is valid in Clockify settings
Check that you're using the correct workspace/project IDs
Ensure you have the necessary permissions in Clockify
Connection issues
Verify you're using the correct regional API URL if applicable
Check your internet connection
Ensure Clockify services are operational
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
License
MIT
Related Links
Support
For issues related to:
This MCP server: Open an issue in this repository
Clockify API: Contact Clockify support
MCP protocol: Check the MCP documentation
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Track time in Clockify: time entries, projects, clients, tags and reports; start, stop and log time.
Connects AI assistants to TrackingTime for querying time entries, projects, tasks, customers, and team data using natural language.
Read your tracked time and projects, pause tracking or add a note, from Claude or ChatGPT.
Time tracking you talk to: log, check and fix your work hours from your AI assistant.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegrates with Clockify time tracking API to retrieve user information, manage projects, and log time entries with flexible time specifications across workspaces.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Clockify time tracking API to manage time entries, projects, tasks, and workspaces through natural language commands.81 npm5ISC
- AlicenseBqualityDmaintenanceEnables time tracking and project management through the Clockify API. Supports starting/stopping timers, logging time entries, managing projects and tasks, and generating reports with natural language commands.2123 npmMIT
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with the Clockify API for managing time entries, timers, and team management tasks. It provides tools for searching time records, tracking project hours, and performing high-level analysis like overtime detection and weekly summaries.9MIT