Local and hosted MCP server for managing freelance time tracking, invoicing, and bookkeeping via CLI or OAuth.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Timebook Cli.
whoamiCurrent authenticated user (read-only)
list_projectsAll projects in scope (read-only)
list_clientsAll clients in scope (read-only)
get_active_timerThe running timer, or `null` (read-only)
start_timerStart a timer on a project
stop_timerStop the running timer
Command-line client and MCP server for Timebook β track time, manage timers, and expose your Timebook account to AI agents (Claude, Codex, Cursor, β¦) over the Model Context Protocol.
Requires Node.js 18.17+.
timebook login opens your browser, you log into Timebook (or use an existing session) and pick a scope (which clients/projects this token can touch). The browser delivers the token back to a short-lived loopback HTTP listener, which the CLI then writes to a config file with 0600 permissions.
The token is stored at:
~/Library/Preferences/timebook/config.json~/.config/timebook/config.json%APPDATA%\timebook\Config\config.jsonThe token never leaves your machine after login. To revoke it server-side, visit https://usetimebook.com/settings/api-tokens.
Duration formats accepted: 1h, 45m, 1h30m, 1.5h, 1:30, or a bare number (interpreted as minutes β e.g. 90 β 1h 30m).
Edit / delete authorization: an API token can only modify entries it created itself. JWT sessions (the web UI) and admin tokens bypass this rule. Invoiced entries are locked for everyone via the API. A 403 with a friendly message is returned on a denied attempt β fix the entry from the web UI or with the token that created it.
The same binary speaks MCP over stdio when invoked with timebook mcp. Drop it into any MCP-aware host (Claude Code, Claude Desktop, Codex, Cursor, β¦):
Or, if installed globally:
The MCP server reuses the token saved by timebook login β run timebook login once in a terminal before starting the agent.
Timebook also runs as a hosted Streamable-HTTP MCP server at https://usetimebook.com/mcp with full OAuth 2.0 (Dynamic Client Registration + PKCE + refresh-token rotation). No CLI install required β Claude.ai discovers it via the standard well-known endpoints:
https://usetimebook.com/.well-known/oauth-authorization-serverhttps://usetimebook.com/.well-known/oauth-protected-resource/mcpConnect from Claude.ai β Settings β Connectors β Add β paste https://usetimebook.com/mcp. You'll be redirected to Timebook's consent page once, then Claude can use all the same tools listed below. Same OAuth-style permissions you'd see for any first-class connector.
The HTTP endpoint also accepts Authorization: Bearer tbk_* (your existing API token) for any client that prefers token-paste over OAuth β including server-to-server use.
| Tool | What it does |
|---|---|
whoami | Current authenticated user (read-only) |
list_projects | All projects in scope (read-only) |
list_clients | All clients in scope (read-only) |
get_active_timer | The running timer, or null (read-only) |
start_timer | Start a timer on a project |
stop_timer | Stop the running timer |
log_time | Log a manual entry (duration OR startTime+endTime) |
list_entries | Recent entries (default 50, max 500), project + date filters |
update_entry | Edit one or more fields on an entry (description, duration, startTime, endTime, project, rate). Token must own the entry. |
delete_entry | Delete an entry. Token must own it. Invoiced entries are locked. |
Once the MCP server is connected, ask the model in plain English:
get_active_timer.list_entries then update_entry.delete_entry. Will 403 if the entry was created by a different token (web UI, another agent) β say so to the model so it doesn't keep retrying.The model picks the right tool, asks list_projects first if it needs to disambiguate a name, and writes through start_timer / log_time / stop_timer.
Timebook CLI runs on your machine and only talks to your Timebook account.
timebook login mints a personal API token via Timebook's OAuth-style consent screen. The token is stored locally with 0600 permissions (~/Library/Preferences/timebook/config.json on macOS, ~/.config/timebook/config.json on Linux, %APPDATA%\timebook\Config\config.json on Windows). It is never transmitted anywhere except https://usetimebook.com (or your override) on outgoing API calls.timebook mcp from inside Claude / Cursor / etc., the MCP host (not Timebook) controls what the model sees. Tool inputs and outputs flow through the host's normal model-context pipeline.For Timebook's product-level privacy policy, see https://usetimebook.com/privacy.
Override the API/web hosts (useful for self-hosted Timebook or local dev):
You can also pass --api-url and --web-url to timebook login once; subsequent commands re-use the saved values.
If timebook login errors with State mismatch or you want to see exactly which requests reach the loopback callback, run with --debug:
Pre-commit hooks (ESLint + Prettier via lint-staged) are wired up by husky on npm install.
prepublishOnly runs lint + typecheck + tests + build, then:
MIT Β© Squidcode LLC. See LICENSE.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/squidcode-timebook-cli)<a href="https://allmcps.com/mcp/squidcode-timebook-cli"><img src="https://allmcps.com/api/badge/squidcode-timebook-cli?style=directory" alt="Timebook Cli on AllMCPs" /></a>