# squidcode/timebook-cli [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/squidcode/timebook-cli  
**GitHub Stars:** 2  
**npm Downloads (last month):** 387  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/squidcode-timebook-cli

## Description
Official MCP server for Timebook — time tracking, invoicing, and bookkeeping for freelancers and solo LLCs. Manage clients and projects, start/stop timers, and log, update, and delete time entries. Runs locally via the @squidcode/timebook npm CLI or as a hosted OAuth endpoint at https://usetimebook.com/mcp. Published in the MCP registry as io.github.squidcode/timebook.

## Tools
Capabilities this server exposes over MCP:

- **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.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "timebook-cli": {
    "command": "npx",
    "args": ["-y","@squidcode/timebook"],
    "env": {
      "TIMEBOOK_API_URL": "",
      "TIMEBOOK_WEB_URL": ""
    }
  }
}
```

**Requires environment variables:** `TIMEBOOK_API_URL`, `TIMEBOOK_WEB_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What squidcode/timebook-cli does

squidcode/timebook-cli exposes Timebook account operations to MCP-compatible AI clients. It covers both live timers and manually recorded work, allowing an agent to inspect the authenticated user, discover available clients and projects, check the current timer, and manage time entries.

The server is intended for freelancers and solo LLC users who keep project-based time records in Timebook. Read operations include identity, project, client, active-timer, and entry queries. Write operations can start or stop a timer, create a manual entry, modify an existing entry, or delete one.

## How it works

The package is both a command-line client and an MCP server. Run `timebook mcp` to expose the tools over stdio to a local MCP host. The server reads the token saved by the CLI after browser-based authentication. A login scope controls which clients and projects the token can access.

A hosted option is available at `https://usetimebook.com/mcp`. It supports Streamable HTTP and OAuth 2.0, including dynamic client registration, PKCE, and refresh-token rotation. Clients that prefer a pasted credential can send an existing `tbk_*` API token as a bearer token.

## Setup and configuration

Install with `npx @squidcode/timebook login` for a one-off use, or install `@squidcode/timebook` globally with npm. Node.js 18.17 or newer is required. Run `timebook login` once, complete the browser consent flow, and then configure the MCP host to invoke `npx -y @squidcode/timebook mcp` or the globally installed `timebook mcp` command.

The credential is stored locally with restrictive file permissions. macOS, Linux, and Windows use different standard configuration paths. API and web hosts can be overridden with `TIMEBOOK_API_URL` and `TIMEBOOK_WEB_URL`, or with corresponding options during login. These settings support self-hosted or local development environments.

## Tools and capabilities

The squidcode/timebook-cli MCP server provides:

- `whoami`, `list_projects`, and `list_clients` for account and scope discovery.
- `get_active_timer` to return the running timer or `null`.
- `start_timer` and `stop_timer` for live tracking.
- `log_time` for entries defined by a duration or by start and end timestamps.
- `list_entries` with project and date filters; it returns 50 entries by default and accepts up to 500.
- `update_entry` for description, duration, timestamps, project, or rate changes.
- `delete_entry` for removing an entry.

## Limitations and notes

Update and delete operations require the token to own the target entry. Web-session JWTs and admin tokens bypass that restriction, while ordinary tokens do not. Invoiced entries are locked through the API. A denied modification returns a 403 response.

The CLI and local MCP process report no telemetry. Tool data passes through the selected MCP host and its normal model-context pipeline. Tokens can be revoked from Timebook’s API-token settings.

_Full upstream README: https://allmcps.com/mcp/squidcode-timebook-cli/readme_

