Skip to main content
Glama
Clockify MCP Server
by JorgeDiazz

Clockify MCP Server

A comprehensive MCP (Model Context Protocol) server for Clockify API integration, providing 83 tools for full CRUD operations across all major Clockify features. This server enables LLMs like Claude to manage your entire Clockify workspace — from time tracking and projects to invoices, scheduling, and reports.

Features

Workspace Management

  • listWorkspaces - List all accessible workspaces

  • getWorkspace - Get workspace details

  • updateWorkspace - Update workspace settings

Client Management

  • listClients - List clients with filtering (archived, name, pagination)

  • createClient - Create new client

  • updateClient - Update client details, archive/unarchive

  • deleteClient - Delete client

Project Management

  • listProjects - List projects with filtering (archived, name, client, pagination)

  • getProject - Get single project details

  • createProject - Create new project with client, color, billable settings

  • updateProject - Update project details, budget, time estimate

  • deleteProject - Delete/archive project

Task Management

  • listTasks - List tasks for a project (with pagination)

  • getTask - Get specific task details

  • createTask - Create task with name, estimate, assignments

  • updateTask - Update task status, estimate, assignments

  • deleteTask - Delete task

Tag Management

  • listTags - List tags in workspace (with pagination)

  • createTag - Create new tag

  • updateTag - Update tag name, archive/unarchive

  • deleteTag - Delete tag

Time Entry Management

  • listTimeEntries - List time entries with filtering (date range, project, task, tags, pagination)

  • getTimeEntry - Get specific time entry details

  • createTimeEntry - Create completed time entry

  • updateTimeEntry - Update existing time entry

  • deleteTimeEntry - Delete time entry

  • bulkUpdateTimeEntries - Update multiple time entries at once

  • bulkDeleteTimeEntries - Delete multiple time entries at once

Timer Operations

  • startTimer - Start a new running timer

  • stopTimer - Stop the currently running timer

  • getActiveTimer - Get current running timer (if any)

User Management

  • getCurrentUser - Get current authenticated user info

  • listWorkspaceUsers - List all users in a workspace (with pagination)

User Group Management

  • listUserGroups - List user groups (with pagination)

  • getUserGroup - Get specific user group

  • createUserGroup - Create new user group

  • updateUserGroup - Update user group

  • deleteUserGroup - Delete user group

  • addUserToGroup - Add a user to a group

  • removeUserFromGroup - Remove a user from a group

Reports

  • getSummaryReport - Generate summary report

  • getDetailedReport - Generate detailed report

  • getWeeklyReport - Generate weekly report

Shared Reports

  • listSharedReports - List shared reports (with pagination)

  • getSharedReport - Get specific shared report

  • createSharedReport - Create new shared report

  • updateSharedReport - Update shared report

  • deleteSharedReport - Delete shared report

Invoice Management (Paid Feature)

  • listInvoices - List invoices with status filter (with pagination)

  • getInvoice - Get specific invoice

  • createInvoice - Create new invoice

  • updateInvoice - Update invoice

  • deleteInvoice - Delete invoice

Expense Management (Paid Feature)

  • listExpenses - List expenses (with pagination)

  • listExpenseCategories - List expense categories (with pagination)

  • getExpense - Get specific expense

  • createExpense - Create new expense

  • updateExpense - Update expense

  • deleteExpense - Delete expense

Time Off Management (Paid Feature)

  • listTimeOffRequests - List time-off requests with status filter (with pagination)

  • listTimeOffPolicies - List time-off policies (with pagination)

  • getTimeOffRequest - Get specific time-off request

  • createTimeOffRequest - Create new time-off request

  • updateTimeOffRequest - Update time-off request

  • deleteTimeOffRequest - Delete time-off request

Approval Management (Paid Feature)

  • listApprovalRequests - List approval requests with status filter (with pagination)

  • submitForApproval - Submit time entries for approval

  • updateApprovalRequest - Approve/reject approval request

Scheduling (Paid Feature)

  • listAssignments - List scheduling assignments (with pagination)

  • getAssignment - Get specific assignment

  • createAssignment - Create new assignment

  • updateAssignment - Update assignment

  • deleteAssignment - Delete assignment

Custom Fields

  • listCustomFields - List custom fields (with pagination)

  • getCustomField - Get specific custom field

  • createCustomField - Create new custom field

  • updateCustomField - Update custom field

  • deleteCustomField - Delete custom field

Webhooks

  • listWebhooks - List webhooks (with pagination)

  • getWebhook - Get specific webhook

  • createWebhook - Create new webhook

  • updateWebhook - Update webhook

  • deleteWebhook - Delete webhook

Total: 83 tools across 18 API modules with full pagination support.

Related MCP server: Clockify MCP Server

Quick Start

Prerequisites

Installation

  1. Clone this repository:

git clone https://github.com/JorgeDiazz/clockify-mcp.git
cd clockify-mcp
  1. Install dependencies:

npm install
  1. Build the project:

npm run build

Configuration

For Claude Desktop

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "clockify": {
      "command": "node",
      "args": ["/absolute/path/to/clockify-mcp/build/index.js"],
      "env": {
        "CLOCKIFY_API_KEY": "your-api-key-here"
      }
    }
  }
}

For VSCode with MCP Extension

Add to your VSCode MCP settings:

{
  "mcpServers": {
    "clockify": {
      "command": "node",
      "args": ["/absolute/path/to/clockify-mcp/build/index.js"],
      "env": {
        "CLOCKIFY_API_KEY": "your-api-key-here"
      }
    }
  }
}

Via NPX (no clone needed)

{
  "mcpServers": {
    "clockify": {
      "command": "npx",
      "args": ["@jeremyvyska/clockify-mcp"],
      "env": {
        "CLOCKIFY_API_KEY": "your-api-key-here"
      }
    }
  }
}

Testing with MCP Inspector

Test the server before integrating with Claude:

npm run inspector

This launches the MCP Inspector UI where you can test all tools interactively.

How to Obtain a Clockify API Key

  1. Log in to your Clockify account

  2. Click on your profile icon (top right) → Profile settings

  3. Scroll to the API section

  4. Click Generate to create a new API key, or copy your existing key

Usage Examples

Once configured, you can ask Claude things like:

Workspace Setup:

  • "List all my Clockify workspaces"

  • "Create a new client called 'Acme Corp' with address '123 Main St'"

  • "Create a project 'Website Redesign' for client Acme Corp"

Task Management:

  • "Add a task 'Design homepage mockup' to the Website Redesign project"

  • "List all active tasks for the Website Redesign project"

  • "Mark the homepage mockup task as done"

Time Tracking:

  • "Start a timer for the Website Redesign project"

  • "What's my active timer?"

  • "Stop my timer"

  • "Show my time entries for today"

  • "Create a 2-hour time entry for yesterday on the Website Redesign project"

Bulk Operations:

  • "Change all my time entries from last week to the Website Redesign project"

  • "Delete all my time entries from December 1st"

Reports:

  • "Generate a summary report for last week"

  • "Show me a detailed report for the Website Redesign project"

Pagination:

  • "List the second page of clients with 10 per page"

  • "Show me invoices with status PAID, page 3"

Development

Scripts

  • npm run build - Compile TypeScript to JavaScript

  • npm run watch - Watch mode for development

  • npm test - Run Vitest test suite

  • npm run lint - Lint the codebase

  • npm run lint:fix - Auto-fix linting issues

  • npm run inspector - Test with MCP Inspector

  • npm run test:create - Create test resources in Clockify (needs CLOCKIFY_API_KEY)

  • npm run test:cleanup - Delete test resources created above

Project Structure

clockify-mcp/
├── src/
│   ├── index.ts              # MCP server setup (STDIO transport)
│   ├── handlers.ts           # Tool schemas + handler routing (83 tools)
│   ├── handlers.test.ts      # Handler tests
│   ├── api/
│   │   ├── client.ts         # Clockify API client wrapper (clockifyFetch)
│   │   ├── workspaces.ts     # Workspace operations
│   │   ├── clients.ts        # Client CRUD
│   │   ├── projects.ts       # Project CRUD
│   │   ├── tasks.ts          # Task CRUD
│   │   ├── tags.ts           # Tag CRUD
│   │   ├── timeEntries.ts    # Time entry operations
│   │   ├── timer.ts          # Timer start/stop
│   │   ├── users.ts          # User operations
│   │   ├── userGroups.ts     # User group CRUD
│   │   ├── reports.ts        # Summary/detailed/weekly reports
│   │   ├── sharedReports.ts  # Shared report CRUD
│   │   ├── invoices.ts       # Invoice CRUD
│   │   ├── expenses.ts       # Expense + category CRUD
│   │   ├── timeOff.ts        # Time-off requests + policies
│   │   ├── approvals.ts      # Approval request operations
│   │   ├── scheduling.ts     # Assignment CRUD
│   │   ├── customFields.ts   # Custom field CRUD
│   │   └── webhooks.ts       # Webhook CRUD
│   └── types/
│       └── clockify.ts       # TypeScript interfaces for API models
├── build/                    # Compiled JavaScript (generated)
├── vitest.config.ts          # Test configuration
├── eslint.config.js          # ESLint + Prettier configuration
├── tsconfig.json
├── CLAUDE.md                 # AI assistant instructions
└── README.md

Architecture

  • Transport: STDIO (for Claude Desktop & VSCode integration)

  • Runtime: Node.js 20+ with TypeScript

  • MCP SDK: @modelcontextprotocol/sdk ^1.26.0

  • Authentication: API key via CLOCKIFY_API_KEY environment variable

  • API: Clockify REST API v1 (https://api.clockify.me/api/v1)

  • Pagination: All list endpoints support page (1-indexed) and pageSize (default 50) parameters

API Rate Limits

Clockify API has a rate limit of 50 requests per second. The bulk operations in this server help you stay under this limit when performing mass updates.

Troubleshooting

Server not appearing in Claude Desktop:

  1. Check that the path in your config is absolute, not relative

  2. Verify the CLOCKIFY_API_KEY environment variable is set

  3. Restart Claude Desktop completely

  4. Check Claude Desktop logs for errors

"Unknown tool" errors:

  • Run npm run build to ensure latest code is compiled

  • Verify you're using the correct workspace ID (use listWorkspaces first)

Authentication errors:

Contributing

Contributions welcome! Please:

  1. Fork the repository

  2. Create a feature branch

  3. Make your changes with tests

  4. Submit a pull request

License

MIT License - see LICENSE file for details

Acknowledgments

Thank you to @inakianduaga for the original clockify-mcp implementation and to @JeremyVyska for the feature-rich edition that expanded it to full CRUD operations. This fork builds upon both, adding pagination support across all list endpoints, additional API modules, and a comprehensive test suite.

Available Tools

83 tools
addUserToGroupC

Add a user to a user group

Inputs: userId (required), userGroupId (required), workspaceId (required).

bulkDeleteTimeEntriesB

Delete multiple time entries at once

Inputs: workspaceId (required), timeEntryIds (required).

bulkUpdateTimeEntriesC

Update multiple time entries at once

Inputs: workspaceId (required), timeEntryIds (required), end, start, +5 more.

createAssignmentC

Create a new scheduling assignment (paid feature)

Inputs: userId (required), endDate (required), startDate (required), workspaceId (required), +4 more.

createClientC

Create a new client in a workspace

Inputs: name (required), workspaceId (required), note, address.

createCustomFieldC

Create a new custom field in a workspace

Inputs: name (required), type (required), workspaceId (required), required, +4 more.

createExpenseB

Create a new expense in a workspace (paid feature)

Inputs: date (required), amount (required), workspaceId (required), notes, +3 more.

createInvoiceC

Create a new invoice in a workspace (paid feature)

Inputs: clientId (required), workspaceId (required), note, items, +4 more.

createProjectC

Create a new project in a workspace

Inputs: name (required), workspaceId (required), note, color, +3 more.

createSharedReportC

Create a new shared report in a workspace

Inputs: name (required), filter (required), reportType (required), workspaceId (required), +1 more.

createTagC

Create a new tag in a workspace

Inputs: name (required), workspaceId (required).

createTaskC

Create a new task in a project

Inputs: name (required), projectId (required), workspaceId (required), status, +3 more.

createTimeEntryC

Create a new time entry (finished time entry, not a timer)

Inputs: start (required), workspaceId (required), end, tagIds, +4 more.

createTimeOffRequestC

Create a new time-off request (paid feature)

Inputs: endDate (required), policyId (required), startDate (required), workspaceId (required), +1 more.

createUserGroupB

Create a new user group in a workspace

Inputs: name (required), workspaceId (required).

createWebhookC

Create a new webhook in a workspace

Inputs: url (required), name (required), workspaceId (required), triggerSource (required), +2 more.

deleteAssignmentC

Delete a scheduling assignment (paid feature)

Inputs: workspaceId (required), assignmentId (required).

deleteClientC

Delete a client from a workspace

Inputs: clientId (required), workspaceId (required).

deleteCustomFieldC

Delete a custom field from a workspace

Inputs: workspaceId (required), customFieldId (required).

deleteExpenseB

Delete an expense from a workspace (paid feature)

Inputs: expenseId (required), workspaceId (required).

deleteInvoiceC

Delete an invoice from a workspace (paid feature)

Inputs: invoiceId (required), workspaceId (required).

deleteProjectC

Delete a project from a workspace

Inputs: projectId (required), workspaceId (required).

deleteSharedReportB

Delete a shared report from a workspace

Inputs: workspaceId (required), sharedReportId (required).

deleteTagB

Delete a tag from a workspace

Inputs: tagId (required), workspaceId (required).

deleteTaskC

Delete a task from a project

Inputs: taskId (required), projectId (required), workspaceId (required).

deleteTimeEntryC

Delete a time entry

Inputs: timeEntryId (required), workspaceId (required).

deleteTimeOffRequestC

Delete a time-off request (paid feature)

Inputs: requestId (required), workspaceId (required).

deleteUserGroupC

Delete a user group from a workspace

Inputs: userGroupId (required), workspaceId (required).

deleteWebhookC

Delete a webhook from a workspace

Inputs: webhookId (required), workspaceId (required).

getActiveTimerB

Get the currently running timer (if any)

Inputs: userId (required), workspaceId (required).

getAssignmentB

Get details for a specific scheduling assignment (paid feature)

Inputs: workspaceId (required), assignmentId (required).

getCurrentUserB

Get the currently authenticated user's information

Inputs: no named parameters.

getCustomFieldC

Get details for a specific custom field

Inputs: workspaceId (required), customFieldId (required).

getDetailedReportC

Get a detailed report with individual time entries for a workspace

Inputs: workspaceId (required), dateRangeEnd (required), dateRangeStart (required), userIds, +2 more.

getExpenseB

Get details for a specific expense (paid feature)

Inputs: expenseId (required), workspaceId (required).

getInvoiceC

Get details for a specific invoice (paid feature)

Inputs: invoiceId (required), workspaceId (required).

getProjectC

Get details for a specific project

Inputs: projectId (required), workspaceId (required).

getSharedReportC

Get details for a specific shared report

Inputs: workspaceId (required), sharedReportId (required).

getSummaryReportC

Get a summary report for a workspace with time grouped by projects, users, etc.

Inputs: workspaceId (required), dateRangeEnd (required), dateRangeStart (required), userIds, +2 more.

getTaskC

Get details for a specific task by ID

Inputs: taskId (required), projectId (required), workspaceId (required).

getTimeEntryB

Get details for a specific time entry

Inputs: timeEntryId (required), workspaceId (required).

getTimeOffRequestC

Get details for a specific time-off request (paid feature)

Inputs: requestId (required), workspaceId (required).

getUserGroupC

Get details for a specific user group

Inputs: userGroupId (required), workspaceId (required).

getWebhookC

Get details for a specific webhook

Inputs: webhookId (required), workspaceId (required).

getWeeklyReportC

Get a weekly report for a workspace

Inputs: workspaceId (required), dateRangeEnd (required), dateRangeStart (required), userIds, +2 more.

getWorkspaceC

Get details for a specific workspace

Inputs: workspaceId (required).

listApprovalRequestsB

List all approval requests in a workspace (paid feature)

Inputs: workspaceId (required), page, status, pageSize.

listAssignmentsB

List all scheduling assignments in a workspace (paid feature)

Inputs: workspaceId (required), page, pageSize.

listClientsC

List all clients in a workspace with optional filtering

Inputs: workspaceId (required), name, page, archived, +1 more.

listCustomFieldsC

List all custom fields in a workspace

Inputs: workspaceId (required), page, pageSize.

listExpenseCategoriesB

List all expense categories in a workspace (paid feature)

Inputs: workspaceId (required), page, pageSize.

listExpensesB

List all expenses in a workspace (paid feature)

Inputs: workspaceId (required), page, pageSize.

listInvoicesB

List all invoices in a workspace (paid feature)

Inputs: workspaceId (required), page, status, pageSize.

listProjectsC

List all projects in a workspace with optional filtering

Inputs: workspaceId (required), name, page, archived, +2 more.

listSharedReportsB

List all shared reports in a workspace

Inputs: workspaceId (required), page, pageSize.

listTagsB

List all tags in a workspace with optional filtering

Inputs: workspaceId (required), name, page, archived, +1 more.

listTasksC

List all tasks for a project with optional filtering

Inputs: projectId (required), workspaceId (required), name, page, +2 more.

listTimeEntriesB

List time entries for a user with optional filtering by date range, project, task, tags

Inputs: userId (required), workspaceId (required), end, page, +6 more.

listTimeOffPoliciesA

List all time-off policies in a workspace (paid feature)

Inputs: workspaceId (required), page, pageSize.

listTimeOffRequestsC

List all time-off requests in a workspace (paid feature)

Inputs: workspaceId (required), page, status, pageSize.

listUserGroupsB

List all user groups in a workspace

Inputs: workspaceId (required), page, pageSize.

listWebhooksB

List all webhooks in a workspace

Inputs: workspaceId (required), page, pageSize.

listWorkspacesA

List all workspaces the user has access to

Inputs: no named parameters.

listWorkspaceUsersC

List all users in a workspace with optional filtering

Inputs: workspaceId (required), name, page, email, +3 more.

removeUserFromGroupC

Remove a user from a user group

Inputs: userId (required), userGroupId (required), workspaceId (required).

startTimerC

Start a new timer (running time entry)

Inputs: workspaceId (required), tagIds, taskId, billable, +2 more.

stopTimerB

Stop the currently running timer

Inputs: userId (required), workspaceId (required).

submitForApprovalC

Submit time entries for approval (paid feature)

Inputs: workspaceId (required), dateRangeEnd (required), dateRangeStart (required).

updateApprovalRequestC

Update an approval request status (approve/reject) (paid feature)

Inputs: status (required), workspaceId (required), approvalRequestId (required).

updateAssignmentC

Update a scheduling assignment (paid feature)

Inputs: workspaceId (required), assignmentId (required), note, taskId, +4 more.

updateClientC

Update an existing client

Inputs: clientId (required), workspaceId (required), name, note, +2 more.

updateCustomFieldD

Update a custom field

Inputs: workspaceId (required), customFieldId (required), name, status, +5 more.

updateExpenseC

Update an existing expense (paid feature)

Inputs: expenseId (required), workspaceId (required), date, notes, +4 more.

updateInvoiceC

Update an existing invoice (paid feature)

Inputs: invoiceId (required), workspaceId (required), note, items, +6 more.

updateProjectC

Update an existing project

Inputs: projectId (required), workspaceId (required), name, note, +5 more.

updateSharedReportC

Update a shared report

Inputs: workspaceId (required), sharedReportId (required), name, filter, +1 more.

updateTagC

Update an existing tag

Inputs: tagId (required), workspaceId (required), name, archived.

updateTaskC

Update an existing task

Inputs: taskId (required), projectId (required), workspaceId (required), name, +4 more.

updateTimeEntryC

Update an existing time entry

Inputs: timeEntryId (required), workspaceId (required), end, start, +5 more.

updateTimeOffRequestC

Update a time-off request (paid feature)

Inputs: requestId (required), workspaceId (required), note, status, +2 more.

updateUserGroupD

Update a user group

Inputs: userGroupId (required), workspaceId (required), name.

updateWebhookD

Update a webhook

Inputs: webhookId (required), workspaceId (required), url, name, +3 more.

updateWorkspaceC

Update workspace settings (name, time tracking preferences)

Inputs: workspaceId (required), name, settings.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 83 tools

    Disambiguation4/5

    Most tools map cleanly to a resource plus action, with clear distinctions between time entries, timers, reports, invoices, expenses, assignments, and administrative resources. A few areas could still be confused, such as time-off requests versus approval requests versus scheduling assignments, but the descriptions generally disambiguate them.

    Naming Consistency5/5

    The set consistently uses camelCase verb_noun naming: list/get/create/update/delete followed by the resource, with predictable exceptions like startTimer, stopTimer, and bulkUpdateTimeEntries. The pattern is stable across all 83 tools.

    Tool Count1/5

    83 tools is far beyond a well-scoped MCP surface and creates a very large selection space for an agent, even though the underlying Clockify API is broad. The count reflects exhaustive endpoint coverage rather than a focused, manageable toolset.

    Completeness4/5

    Coverage is strong across core resources: clients, projects, tasks, tags, time entries, timers, invoices, expenses, assignments, custom fields, webhooks, user groups, and shared reports all have substantial CRUD support. Minor gaps remain, such as time-off policy CRUD, approval request detail/deletion, and workspace user management beyond listing.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers