npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

triagons-clockify-mcp

v1.1.0

Published

MCP server wrapping the Clockify API — runs via npx or deploys as a Google Cloud Function

Readme

triagons-clockify-mcp

An MCP (Model Context Protocol) server that wraps the Clockify API, deployed as a Google Cloud Function with HTTP/SSE transport.

Tools

| Tool | Description | |------|-------------| | get_hours_by_project | Total hours, billable hours, and per-member breakdown for a project + date range | | get_unbilled_hours | All uninvoiced billable hours for a client, estimated value, last entry date | | get_team_utilization | Hours logged and capacity % per team member for the current month |

Note: get_team_utilization and get_unbilled_hours require workspace admin access in Clockify to return full team data.

Authentication

Each user passes their own Clockify API key in the Authorization header. The server stores no secrets — it simply forwards the key to Clockify on each request.

Claude Desktop ──Authorization: Bearer <clockify-api-key>──► Cloud Function ──X-Api-Key: <key>──► Clockify

Get your API key at https://app.clockify.me/user/settings → API section.

Local development

cp .env.example .env
# Set CLOCKIFY_API_KEY in .env for local testing

npm install
npm run dev        # starts on http://localhost:8080

Test with curl:

curl -X POST http://localhost:8080/mcp \
  -H "Authorization: Bearer YOUR_CLOCKIFY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1"}}}'

Deploy to Google Cloud Functions

Prerequisites

  • gcloud CLI installed and authenticated
  • A GCP project with Cloud Functions and Cloud Build APIs enabled
gcloud services enable cloudfunctions.googleapis.com cloudbuild.googleapis.com

Deploy (Gen 2 — recommended)

Gen 2 runs on Cloud Run and supports long-lived SSE connections.

gcloud functions deploy triagons-clockify-mcp \
  --gen2 \
  --runtime nodejs20 \
  --region us-central1 \
  --source . \
  --entry-point triagonsClockifyMcp \
  --trigger-http \
  --allow-unauthenticated \
  --timeout 3600s \
  --min-instances 0 \
  --max-instances 10

The command prints the function URL when it finishes. The MCP endpoint is at <FUNCTION_URL>/mcp.

Note on timeout: SSE connections are long-lived. Gen 2 supports up to 3600s. For longer sessions, deploy to Cloud Run directly.

Deploy (Gen 1)

Gen 1 has a hard 9-minute timeout — SSE sessions disconnect after that.

gcloud functions deploy triagons-clockify-mcp \
  --runtime nodejs20 \
  --region us-central1 \
  --source . \
  --entry-point triagonsClockifyMcp \
  --trigger-http \
  --allow-unauthenticated \
  --timeout 540s

Claude Desktop configuration

Add this to your claude_desktop_config.json. Each person uses their own Clockify API key:

{
  "mcpServers": {
    "clockify": {
      "url": "https://REGION-PROJECT_ID.cloudfunctions.net/triagons-clockify-mcp/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_CLOCKIFY_API_KEY"
      }
    }
  }
}

Or with a custom domain:

{
  "mcpServers": {
    "clockify": {
      "url": "https://mcp.triagons.ai/clockify/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_CLOCKIFY_API_KEY"
      }
    }
  }
}

Environment variables

| Variable | Required | Description | |----------|----------|-------------| | CLOCKIFY_API_KEY | Local dev only | API key for local npm run dev (not used in production) | | CLOCKIFY_WORKSPACE_ID | No | Skip auto-detection by pinning a workspace ID | | PORT | No | Local dev port (default: 8080) |

Notes on billing data

get_unbilled_hours returns estimated_value_usd: null when Clockify has no billing rates configured for the entries. Set hourly rates on projects or users in Clockify for this field to populate.