@iflow-mcp/ratheesh-aot_clockify-mcp-server
v1.0.0
Published
Model Context Protocol server for Clockify time tracking integration. Enables Claude AI to directly manage time entries, projects, tasks, and generate reports through Clockify's API.
Readme
Clockify MCP Server
A Model Context Protocol (MCP) server that provides comprehensive integration with the Clockify time tracking API. This server enables automated time entry management, project organization, task tracking, and reporting through a standardized interface.
Want to read as a story Linkedin Post
Quick Installation (Recommended)
Install via NPM
npm install -g @ratheesh-aot/clockify-mcp-serverConfigure Claude Desktop or any MCP client
Add this to your MCP client configuration:
{
"mcpServers": {
"clockify": {
"command": "clockify-mcp-server",
"env": {
"CLOCKIFY_API_KEY": "your_clockify_api_key"
}
}
}
}Get Your Clockify API Key
- Log in to Clockify
- Go to Profile Settings → API
- Generate or copy your API key
- Replace
your_clockify_api_keyin the configuration above
Start Using
Restart your MCP client (Claude Desktop) and start asking:
- "Show me my Clockify workspaces"
- "Create a time entry for 2 hours on Project Marketing"
- "Get this week's time entries"
Features
Core Functionality
- Time Entry Management: Create, read, update, delete, and stop time entries
- Project Management: Full CRUD operations for projects with client associations
- Task Management: Create and manage tasks within projects
- Client Management: Organize work by clients
- Tag Management: Categorize time entries with tags
- User & Workspace Management: Access user information and workspace details
- Advanced Reporting: Generate detailed and summary reports with filtering
Key Capabilities
- Real-time Time Tracking: Start, stop, and manage ongoing time entries
- Comprehensive Filtering: Filter time entries by projects, tasks, clients, tags, and date ranges
- Pagination Support: Handle large datasets efficiently with proper pagination
- Flexible Reporting: Generate reports in multiple formats (JSON, PDF, CSV, XLSX)
- Production-Ready: Error handling, validation, and robust API interactions
Alternative Installation (Development)
If you prefer to build from source or contribute to development:
Prerequisites
- Node.js 18 or higher
- Clockify account with API access
- Clockify API key
Manual Installation
- Clone the repository:
git clone https://github.com/ratheesh-aot/clockify-mcp.git
cd clockify-mcp- Install dependencies:
npm install- Build the TypeScript code:
npm run build- Configure with full path:
{
"mcpServers": {
"clockify": {
"command": "node",
"args": ["/full/path/to/clockify-mcp/dist/index.js"],
"env": {
"CLOCKIFY_API_KEY": "your_api_key_here"
}
}
}
}Available Tools
User & Workspace Management
get_current_user: Get current user informationget_workspaces: List all accessible workspacesget_workspace_users: Get all users in a workspace
Time Entry Management
create_time_entry: Create new time entries with optional project/task associationsget_time_entries: Retrieve time entries with comprehensive filtering optionsupdate_time_entry: Modify existing time entriesdelete_time_entry: Remove time entriesstop_time_entry: Stop currently running time entries
Project Management
create_project: Create new projects with client associationsget_projects: List projects with filtering and paginationget_project: Get detailed project informationupdate_project: Modify project detailsdelete_project: Remove projects
Task Management
create_task: Create tasks within projectsget_tasks: List tasks with filtering optionsget_task: Get detailed task informationupdate_task: Modify task detailsdelete_task: Remove tasks
Client Management
create_client: Create new clientsget_clients: List clients with filteringupdate_client: Modify client informationdelete_client: Remove clients
Tag Management
create_tag: Create new tags for categorizationget_tags: List available tagsupdate_tag: Modify tag detailsdelete_tag: Remove tags
Reporting
get_detailed_report: Generate comprehensive time tracking reportsget_summary_report: Generate summarized reports with grouping options
Usage Examples
Create a Time Entry
{
"tool": "create_time_entry",
"arguments": {
"workspaceId": "workspace_id",
"description": "Working on feature implementation",
"start": "2024-01-15T09:00:00Z",
"end": "2024-01-15T17:00:00Z",
"projectId": "project_id",
"billable": true
}
}Get Time Entries with Filtering
{
"tool": "get_time_entries",
"arguments": {
"workspaceId": "workspace_id",
"start": "2024-01-01T00:00:00Z",
"end": "2024-01-31T23:59:59Z",
"project": "project_id",
"page": 1,
"pageSize": 100
}
}Create a Project
{
"tool": "create_project",
"arguments": {
"workspaceId": "workspace_id",
"name": "Website Redesign",
"clientId": "client_id",
"billable": true,
"isPublic": false,
"color": "#FF5722"
}
}Troubleshooting
Common Issues
"Command not found" error:
# Check if installed correctly
npm list -g @ratheesh-aot/clockify-mcp-server
# Reinstall if needed
npm uninstall -g @ratheesh-aot/clockify-mcp-server
npm install -g @ratheesh-aot/clockify-mcp-server"Invalid API key" error:
- Verify your Clockify API key is correct
- Ensure the API key has proper permissions
- Check for extra spaces or characters
MCP connection issues:
- Restart your MCP client (Claude Desktop)
- Verify the JSON configuration is valid
- Check that Node.js is installed and accessible
Getting Help
- Issues: GitHub Issues
- Documentation: Clockify API Docs
- MCP Protocol: Model Context Protocol
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see LICENSE file for details.
Author
Created by Ratheesh Kumar
