Skip to main content
Glama

UseHourly

The free, open-source time tracker your AI assistant can use. Connect Claude, ChatGPT, Cursor or any MCP assistant and say "log 3 hours on Acme, then make this week's timesheet for sign-off". Or log your day in seconds yourself: type 1.5, 1:30 or 90m, press Enter, done.

Live: https://usehourly.app · Free to use, no paywall, no ads.

https://github.com/Zontak-LLC/usehourly/raw/main/public/landing/assistant-demo.mp4

The weekly timesheet

What it does

  • Quick entry. Pick a project, type the time the way you would say it, add a note. Or press Start and let the timer count.

  • Weekly timesheet. Every project and every day in one editable grid. Fill several days at once, add more entries to a day, move an entry to another date.

  • Month calendar with per-project totals.

  • Invoices. Turn billable hours into a PDF invoice, track paid and unpaid, re-download any time.

  • Year summary. Hours, earnings, invoiced and received by quarter and month, ready for your accountant.

  • Export. Excel for any week, month or custom date range (for example March 3 to April 20), and one zip with everything: every client, all time.

  • Try it first. "Try it with sample data" on the home page opens a throwaway account filled with a month of work. No sign-up; keep it with one click if you like it.

  • Switching from Toggl or Clockify? Import their CSV export from the Account page. Clients and projects are created for you, and importing the same file twice adds nothing.

  • AI first: works with your assistant (MCP). Any MCP client (Claude, Cursor, VS Code, ChatGPT, your own agent) can log time, start timers, build a client's timesheet, create a private sign-off link and prepare invoices. See below.

  • Free calculator. Hours calculator: add up times and get decimal hours, no account needed.

  • Your data is yours. Per-user isolation; everything you log can be exported at any time.

Related MCP server: Timebook

Use it from any AI assistant (MCP server)

UseHourly runs a remote Model Context Protocol server at https://usehourly.app/api/mcp (Streamable HTTP). It has 31 tools for projects, clients, time entries, timers, timesheets, invoices and reports; each one runs as you, so it only sees your own data. Create a token on Account > AI assistants (read-only or read and write, with an expiry), then:

claude mcp add --transport http usehourly https://usehourly.app/api/mcp --header "Authorization: Bearer <your token>"

That example is for Claude Code. Other clients just need the URL and an Authorization: Bearer <token> header in their MCP settings.

Cursor (~/.cursor/mcp.json):

{ "mcpServers": { "usehourly": { "url": "https://usehourly.app/api/mcp", "headers": { "Authorization": "Bearer <your token>" } } } }

VS Code (.vscode/mcp.json):

{ "servers": { "usehourly": { "type": "http", "url": "https://usehourly.app/api/mcp", "headers": { "Authorization": "Bearer <your token>" } } } }

For clients that can only run local (stdio) servers, such as Claude Desktop, there is a small bridge published on npm (usehourly-mcp): set the command to npx with args ["-y", "usehourly-mcp"] and USEHOURLY_API_TOKEN to your token.

Then ask: "Log 2 hours on the Acme website for yesterday" or "Make an invoice for Acme for September."

Stack

Next.js 16 (App Router) · React 19 · Tailwind CSS v4 · shadcn/ui · NextAuth v5 (credentials) · tRPC v11 · Prisma 7 with Cloudflare D1 · Vitest · Biome · deployed to Cloudflare Workers with OpenNext.

Run it locally

You need Node 22+.

npm install                 # also runs `prisma generate`

cp wrangler.example.jsonc wrangler.jsonc   # then set account_id and database_id (see Deploy)

# .env.local and .dev.vars (keep the two in sync):
#   AUTH_SECRET=<a long random string, e.g. `openssl rand -base64 32`>
#   AUTH_URL=http://localhost:3028

npm run d1:migrate:local    # create the local D1 database
npm run dev                 # http://localhost:3028

Register an account on the sign-up page and you are in.

npm test                    # scenario tests (Vitest)
npx biome check             # lint and format
npx tsc --noEmit            # type check

Deploy

It runs on Cloudflare Workers with a D1 database:

  1. cp wrangler.example.jsonc wrangler.jsonc and fill in your Cloudflare account id and a D1 database (npx wrangler d1 create usehourly-db). wrangler.jsonc is git-ignored, so your ids stay out of the repo.

  2. Put your public address in .env.production.local: NEXT_PUBLIC_APP_URL=https://app.example.com (it is baked into the build) and set the same value as AUTH_URL in wrangler.jsonc.

  3. npm run d1:migrate:remote

  4. npx wrangler secret put AUTH_SECRET

  5. npm run deploy

Email (optional)

Password reset and email confirmation need an email service. UseHourly sends through Resend: verify your sending domain there, then set two values on the Worker:

npx wrangler secret put RESEND_API_KEY
npx wrangler secret put EMAIL_FROM        # for example: UseHourly <noreply@your-domain.com>

Without them the app works as before, and the forgot-password page says email isn't set up.

Deploy from GitHub Actions

.github/workflows/ci.yml runs the checks and the browser tests on every pull request and push. On a push to main, when both pass, it applies the D1 migrations, deploys and smoke-tests the live site. The deploy reads its settings from a GitHub Environment named production (Settings > Environments), with deployment branches limited to main, so pull requests and other branches never see the token.

Environment secret

Value

CLOUDFLARE_API_TOKEN

a token with Workers Scripts: Edit and D1: Edit

Environment variable

Value

CLOUDFLARE_ACCOUNT_ID

your Cloudflare account id

D1_DATABASE_ID

the id of your D1 database

APP_URL

your public address, for example https://app.example.com

Optional variables: WORKER_NAME, D1_DATABASE_NAME, CUSTOM_DOMAIN, and SMOKE_ROLLBACK=1 (roll back automatically when the smoke test fails). AUTH_SECRET stays a Worker secret (npx wrangler secret put AUTH_SECRET, once); CI never sees it. scripts/ci-wrangler-config.mjs writes wrangler.jsonc from these variables, so no account ids live in the repository.

Support

UseHourly is free. If it saves you time you can sponsor it on GitHub.

Supporters

Thank you to everyone who helps keep UseHourly free:

Be the first: sponsor UseHourly on GitHub.

Credits and license

Built on the excellent next-shadcn-admin-dashboard template by Mohammed Arham Khan.

Released under the MIT License. The code is open; the name "UseHourly" and its logo are not part of the license.

Available Tools

30 tools
annual_reportYear summary for taxesA
Read-onlyIdempotent
Inspect

One calendar year: hours and earnings by quarter, month, client and project, plus invoices issued and paid (cash and accrual views).

Inputs: year (required). Returns: year, months, totals, clients, +5 more

archive_clientArchive a clientA
Idempotent
Inspect

Hide a client from the lists. Its time and invoices are kept.

Inputs: client (required). Returns: ok, archived

archive_projectArchive a projectA
Idempotent
Inspect

Hide a project from the lists. Its time and invoices are kept.

Inputs: project (required). Returns: ok, archived

create_clientCreate a clientCInspect

Add a client. Names are unique per account.

Inputs: name (required), color. Returns: client

create_invoiceCreate an invoiceAInspect

Issue an invoice for a client from billable time between two dates. Totals are computed on the server from the logged entries (one line per project). The number defaults to the next INV--NNN. This creates a permanent record; confirm the client, period and dates with the user first.

Inputs: to (required), from (required), client (required), issue_date (required), +5 more. Returns: id, hours, lines, total, +3 more

create_projectCreate a projectBInspect

Add a project under a client, with an hourly rate in dollars and whether it is billable.

Inputs: name (required), client (required), billable, hourly_rate. Returns: project

delete_entryDelete an entryA
Destructive
Inspect

Permanently delete one time entry. Confirm with the user before calling this.

Inputs: id (required). Returns: ok

delete_invoiceDelete an invoiceA
Destructive
Inspect

Permanently delete an invoice record. The time entries stay. Confirm with the user before calling this.

Inputs: invoice (required). Returns: ok

get_clientGet client billing detailsA
Read-onlyIdempotent
Inspect

One client's billing details: full legal name and address as printed on invoices.

Inputs: client (required). Returns: id, name, address, has_logo, +1 more

get_invoiceGet an invoiceA
Read-onlyIdempotent
Inspect

The frozen invoice as issued: seller, client, lines per project and totals. Set include_detail for the per-entry breakdown. Logos are left out.

Inputs: invoice (required), include_detail. Returns: id, snapshot

get_running_timerRunning timerA
Read-onlyIdempotent
Inspect

The timer that is running now, with elapsed minutes, or null when none is running.

Inputs: no named parameters. Returns: running

list_clientsList clientsA
Read-onlyIdempotent
Inspect

Active clients, each with its active projects.

Inputs: no named parameters. Returns: clients

list_entriesList time entriesA
Read-onlyIdempotent
Inspect

Time entries between two dates (inclusive), newest first, with totals per project and per day. Optionally limited to one project. Use this for 'what did I log last week' and to check a day before adding time.

Inputs: to (required), from (required), project. Returns: to, from, entries, summary, +1 more

list_invoicesList invoicesA
Read-onlyIdempotent
Inspect

Invoice history (newest 200 at most). Filter by text, client, paid status or issue-date range.

Inputs: sort, query, client, status, +2 more. Returns: count, invoices, unpaid_total

list_projectsList projectsA
Read-onlyIdempotent
Inspect

Every active project with its client and hourly rate. Use the "label" ("Client / Project") or the id wherever a project is asked for. Set include_archived to also see archived ones.

Inputs: include_archived. Returns: archived, projects

log_timeLog timeAInspect

Add one time entry: a project, a date, how long, and what was done. Give minutes or a duration text. This adds a new entry; it never merges with an existing one. Check list_entries first if the day may already be logged.

Inputs: date (required), project (required), note, minutes, +1 more. Returns: logged

log_time_on_daysLog the same time on several daysAInspect

Add the same entry (project, minutes, note) on up to 31 dates. Days that already have time for this project are skipped and reported unless skip_existing is false.

Inputs: dates (required), project (required), note, minutes, +2 more. Returns: created, minutes, project, skipped

mark_invoice_paidMark an invoice paid or unpaidA
Idempotent
Inspect

Record the date an invoice was paid (this matters for cash-basis taxes), or pass null to mark it unpaid again.

Inputs: invoice (required), paid_date (required). Returns: ok, paidDate

merge_entriesMerge entriesA
Destructive
Inspect

Fold several entries (same project, same day) into the first one: minutes are added and notes joined. The others are removed.

Inputs: ids (required). Returns: id, merged, minutes

next_invoice_numberNext invoice numberB
Read-onlyIdempotent
Inspect

The suggested next invoice number for a year, such as INV-2026-004.

Inputs: year (required). Returns: number

parse_durationParse a durationA
Read-onlyIdempotent
Inspect

Turn text like "1h30", "1:30" or "2.5" into whole minutes, the way UseHourly reads it.

Inputs: text (required). Returns: error, hours, minutes

project_totalsHours per projectB
Read-onlyIdempotent
Inspect

Logged hours per project: all time and within a date range (for example this month).

Inputs: to (required), from (required). Returns: to, from, projects

set_day_totalsSet a project's total for daysA
Idempotent
Inspect

Set one project's total minutes for up to 31 days: more than 0 creates or updates that day's single entry, 0 clears it. Days that hold several entries or a running timer are skipped and reported, never merged. A note, when given, is applied to every day written.

Inputs: cells (required), project (required), note. Returns: created, deleted, project, skipped, +1 more

start_timerStart the timerAInspect

Start a timer on a project. A timer that is already running is stopped first, so only one runs at a time.

Inputs: date (required), project (required), note. Returns: started

stop_timerStop the timerAInspect

Stop the running timer. Elapsed time is rounded up to the next minute (at least 1).

Inputs: no named parameters. Returns: stopped

unarchive_projectRestore a projectA
Idempotent
Inspect

Bring an archived project (and its client, if archived) back.

Inputs: project (required). Returns: ok, restored

update_clientEdit a clientA
Idempotent
Inspect

Rename a client or change the legal name and address printed on its invoices. Only the fields you pass change; the logo is kept.

Inputs: client (required), name, address, legal_name. Returns: ok, client

update_entryEdit an entryA
Idempotent
Inspect

Change an entry's project, date, minutes or note. Only the fields you pass change.

Inputs: id (required), date, note, minutes, +2 more. Returns: updated

update_projectEdit a projectA
Idempotent
Inspect

Rename a project, move it to another client, or change its rate or billable flag. Only the fields you pass change.

Inputs: project (required), name, client, billable, +1 more. Returns: project

whoamiWho am IA
Read-onlyIdempotent
Inspect

The signed-in account (name, email, business details printed on invoices) and what this token may do (read or write). Call this first to confirm the connection.

Inputs: no named parameters. Returns: id, name, email, business, +2 more

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 30 tools

    Disambiguation4/5

    Most tools target distinct resources and actions, but the time-entry trio (log_time, log_time_on_days, set_day_totals) overlaps enough that an agent must read carefully to pick correctly, and list_entries/project_totals/annual_report cover similar ground at different scopes. Descriptions do resolve most ambiguity, so boundaries are workable.

    Naming Consistency4/5

    Predominantly consistent snake_case verb_noun (list_projects, create_invoice, update_entry, archive_client). A handful of noun-only names (whoami, project_totals, annual_report, next_invoice_number) deviate but remain readable and predictable in intent.

    Tool Count3/5

    30 tools is on the heavy side for the stated scope and crosses the point where the set starts to feel large. The domain (clients, projects, entries, invoices, timers, reports) does justify many of them, but a few entry-writing tools could plausibly be consolidated.

    Completeness5/5

    Covers the full lifecycle: CRUD-ish for clients, projects, entries and invoices plus timers, batch logging, merging, and multiple reporting views. Archive/unarchive, invoice numbering, duration parsing, and paid-tracking round out the surface with no obvious dead ends.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      A production-ready, fully anonymized Model Context Protocol (MCP) server for TimeIQ time tracking. It allows LLM agents to view and manage time entries, projects, clients, reports, invoices, expenses, services, and timesheets via a secure stdio transport.
      100
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Official MCP server for Timebook (usetimebook.com) — time tracking, invoicing, and bookkeeping for freelancers and solo LLCs. Manage clients and projects, start/stop timers, and log, update, and delete time entries. Stdio via the @squidcode/timebook npm CLI; a hosted OAuth endpoint also exists at https://usetimebook.com/mcp.
      12
      116 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for time tracking and billing that allows freelancers to control timers, manage projects, and export invoices via natural language in any MCP-compatible AI assistant.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A local, UI-less timesheet application served via MCP, letting AI assistants log hours, correct entries, generate monthly reports, and compute Finnish-holiday-aware working-time math for invoicing.
      AGPL 3.0