Timebook MCPサーバー
✓ 検証済みAIクライアントからTimebookアカウントへ直接、時間の追跡、タイマー管理、およびログの記録を行えるようにします。
別名 squidcode/timebook-cli, timebook-cli, @squidcode/timebook
- スター
- 2
- ツール
- 10
- ダウンロード数(30日間)
- —
- 最新バージョン
- 0.6.0
- 最終コミット
- 2026年6月8日
- ライセンス
- MIT
Timebook MCPとは
TimebookはMCPサーバーです。 AIクライアントからTimebookアカウントへ直接、時間の追跡、タイマー管理、およびログの記録を行えるようにします。. 10個のツールを提供しており、whoami, list_projects, list_clientsなどがあります。
プロジェクトのREADMEから生成された概要
Timebook MCP server について
Timebookは、開発者が自身のタイムトラッキングアカウントをClaude、Cursor、CodexなどのAIエージェントと連携させる手段を提供します。Model Context Protocolを使用することで、AIクライアントがTimebookのデータと直接やり取りし、スケジュールやログを管理できるようになります。コマンドラインを使用してローカルサーバーとしてセットアップするか、Claude.aiのようなウェブベースのクライアント向けにリモートHTTPエンドポイント経由で接続することが可能です。
ユーザーは、start_timer、stop_timer、log_timeといった特定のツールを通じてワークフローを管理できます。このサーバーにより、AIはプロジェクトやクライアントの一覧表示、実行中のタイマーの状態確認、最近のエントリーの閲覧が可能になります。また、認証されたトークンに必要な権限がある場合に限り、エントリーの修正や削除もサポートしています。この構成により、タイムトラッキングをコーディングやプランニングの環境と統合したまま維持できます。
開始するには、まずloginコマンドを使用して認証を行い、トークンをローカルマシンに保存する必要があります。リモート接続の場合、システムはOAuth 2.0を使用して権限を安全に処理します。サーバーはテレメトリや使用状況の分析データを収集しないため、アクティビティはローカルマシンとTimebookアカウント内のみに限定され、プライバシーが保たれます。
できること
- 1タイマー管理の自動化AIアシスタントに対して、特定のプロジェクトのタイマーを開始または停止するよう指示します。
- 2手動での時間記録AIに、クライアントまたはプロジェクトに対して特定の作業時間を記録させます。
- 3作業履歴の確認最近、特定のプロジェクトにどれくらいの時間を費やしたかをAIに問い合わせます。
- 4タイムエントリーの修正以前に記録したタイムエントリーの間違いを修正するようAIに指示します。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
Timebook MCPのインストール方法
フォーマット検証日 2026年11月10日Claude CodeにTimebook MCPをインストール
$ claude mcp add timebook-cli -- npx -y @squidcode/timebookCursorにTimebook MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"timebook-cli": {
"command": "npx",
"args": [
"-y",
"@squidcode/timebook"
]
}
}
}VS CodeにTimebook MCPをインストール
.vscode/mcp.json
{
"servers": {
"timebook-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@squidcode/timebook"
]
}
}
}Claude DesktopにTimebook MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"timebook-cli": {
"command": "npx",
"args": [
"-y",
"@squidcode/timebook"
]
}
}
}CodexにTimebook MCPをインストール
~/.codex/config.toml
[mcp_servers.timebook-cli] command = "npx" args = ["-y", "@squidcode/timebook"]
Gemini CLIにTimebook MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"timebook-cli": {
"command": "npx",
"args": [
"-y",
"@squidcode/timebook"
]
}
}
}Timebook MCPツール 10
READMEから検出whoamilist_projectslist_clientsget_active_timerstart_timerstop_timerlog_timelist_entriesupdate_entrydelete_entry
| whoami | — | |
| list_projects | — | |
| list_clients | — | |
| get_active_timer | — | |
| start_timer | — | |
| stop_timer | — | |
| log_time | — | |
| list_entries | — | |
| update_entry | — | |
| delete_entry | — |
設定
TIMEBOOK_API_URLOverride the Timebook API base URL. Defaults to https://usetimebook.com.
TIMEBOOK_WEB_URLOverride the Timebook web URL used during `timebook login`. Defaults to https://usetimebook.com.
| 名前 | 説明 | 種類 |
|---|---|---|
| TIMEBOOK_API_URL | Override the Timebook API base URL. Defaults to https://usetimebook.com. | |
| TIMEBOOK_WEB_URL | Override the Timebook web URL used during `timebook login`. Defaults to https://usetimebook.com. |
自動チェック
実行日 2026年11月14日詳細レポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能squidcode/timebook-cli is public and reachablegithub.com/squidcode/timebook-cli ↗合格
- パッケージがこのリポジトリをソースとして示している@squidcode/timebook names squidcode/timebook-cli as sourcenpmjs.com/package/@squidcode/timebook ↗合格
- ビルドの来歴(Sigstore 証明)Sigstore attestation for @squidcode/timebooknpmjs.com/package/@squidcode/timebook/v/0.6.0#provenance ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-06-08github.com/squidcode/timebook-cli ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from @squidcode/timebook合格
- パッケージと依存関係に重大なアドバイザリがない112 resolved dependencies checked; no critical advisoryosv.dev ↗合格
- モデルへの隠れた指示がない10 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモート endpoint が MCP ハンドシェイクに応答するHTTPS endpoint answered 401 (sign-in required)合格
README
GitHubで見るTimebook CLI
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.
Install
# one-off
npx @squidcode/timebook login
# globally
npm install -g @squidcode/timebook
timebook --help
Requires Node.js 18.17+.
Authenticate
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.
timebook login
The token is stored at:
- macOS:
~/Library/Preferences/timebook/config.json - Linux:
~/.config/timebook/config.json - Windows:
%APPDATA%\timebook\Config\config.json
The token never leaves your machine after login. To revoke it server-side, visit https://usetimebook.com/settings/api-tokens.
Use it as a CLI
timebook whoami
timebook projects # list projects
timebook clients # list clients
timebook start -p "Acme website" -d "Wireframes"
timebook status # show running timer
timebook stop
# manual entries
timebook log -p "Acme website" -t 1h30m -d "Code review"
timebook log -p PROJ_ID --start 2026-05-04T09:00 --end 2026-05-04T10:30
timebook entries --project "Acme website" -n 10
# edit / delete (any combination of fields; unset ones stay as-is)
timebook entries edit ENTRY_ID -t 2h -d "code review + tests"
timebook entries edit ENTRY_ID --start 2026-05-04T09:00 --end 2026-05-04T11:00
timebook entries edit ENTRY_ID -d "" # clear description
timebook entries delete ENTRY_ID
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.
Use it as an MCP server
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, …):
Claude Code / Claude Desktop
{
"mcpServers": {
"timebook": {
"command": "npx",
"args": ["-y", "@squidcode/timebook", "mcp"]
}
}
}
Or, if installed globally:
{
"mcpServers": {
"timebook": {
"command": "timebook",
"args": ["mcp"]
}
}
}
The MCP server reuses the token saved by timebook login — run timebook login once in a terminal before starting the agent.
Use it as a remote MCP (Claude.ai web)
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:
- Auth-server metadata:
https://usetimebook.com/.well-known/oauth-authorization-server - Resource metadata:
https://usetimebook.com/.well-known/oauth-protected-resource/mcp
Connect 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.
Tools exposed to the model
| 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. |
Try it with prompts
Once the MCP server is connected, ask the model in plain English:
- "Start a timer on my Acme website project for landing-page wireframes."
- "How much time did I log on the Recycler project last week?"
- "Log 1 hour 30 minutes against ChatNexus from 9am this morning at the Software Development rate, with description 'code review of the auth refactor'."
- "What am I currently working on?" — invokes
get_active_timer. - "Stop my timer."
- "My last entry on Recycler should be 2 hours, not 1h45m. Fix it." — invokes
list_entriesthenupdate_entry. - "Delete the entry I just made by mistake." — invokes
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.
Privacy
Timebook CLI runs on your machine and only talks to your Timebook account.
- Authentication:
timebook loginmints a personal API token via Timebook's OAuth-style consent screen. The token is stored locally with0600permissions (~/Library/Preferences/timebook/config.jsonon macOS,~/.config/timebook/config.jsonon Linux,%APPDATA%\timebook\Config\config.jsonon Windows). It is never transmitted anywhere excepthttps://usetimebook.com(or your override) on outgoing API calls. - Telemetry: none. Neither the CLI nor the MCP server reports usage, errors, or analytics anywhere.
- MCP host data: when you use
timebook mcpfrom 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. - Revoking access: visit https://usetimebook.com/settings/api-tokens to revoke the token at any time.
For Timebook's product-level privacy policy, see https://usetimebook.com/privacy.
Configuration
Override the API/web hosts (useful for self-hosted Timebook or local dev):
TIMEBOOK_API_URL=https://api.example.com \
TIMEBOOK_WEB_URL=https://example.com \
timebook login
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:
timebook login --debug
Develop
git clone https://github.com/squidcode/timebook-cli
cd timebook-cli
npm install
npm run dev -- --help # tsx-powered hot-loop
npm run build # emits dist/
npm run lint && npm run typecheck && npm run test
Pre-commit hooks (ESLint + Prettier via lint-staged) are wired up by husky on npm install.
Release
prepublishOnly runs lint + typecheck + tests + build, then:
npm publish --access public
License
MIT © Squidcode LLC. See LICENSE.
Timebook MCPのよくある質問
Timebook MCPをClaude Codeに追加するには
ターミナルでclaude mcp add timebook-cli -- npx -y @squidcode/timebookを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
Timebook MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
Timebook MCPが提供するツールは
10個のツールを提供しており、whoami, list_projects, list_clients, get_active_timer, start_timerなどがあります。
Timebook MCP serverの認証方法を教えてください。
ターミナルで一度 timebook login を実行してブラウザ経由で認証を行ってください。その後、MCP serverは保存されたトークンを再利用します。
AIは私のタイムエントリーを削除したり編集したりできますか?
はい。ただし、APIトークンは自身が作成したエントリーのみを修正または削除できます。請求済みのエントリーはロックされます。