MCP server Timebook
✓ VerificadoPermite que um cliente de IA acompanhe o tempo, gerencie timers e registre entradas diretamente na sua conta do Timebook.
Também conhecido como squidcode/timebook-cli, timebook-cli, @squidcode/timebook
- Stars
- 2
- Ferramentas
- 10
- Downloads, 30 dias
- —
- Versão mais recente
- 0.6.0
- Último commit
- 8 de jun. de 2026
- Licença
- MIT
O que é o MCP Timebook?
Timebook é um MCP server. Permite que um cliente de IA acompanhe o tempo, gerencie timers e registre entradas diretamente na sua conta do Timebook. Ele expõe 10 ferramentas, como whoami, list_projects, list_clients.
Resumo gerado a partir do README do projeto
Sobre o MCP server de Timebook
O Timebook oferece uma maneira de desenvolvedores conectarem suas contas de rastreamento de tempo a agentes de IA como Claude, Cursor ou Codex. Ao usar o Model Context Protocol, um cliente de IA pode interagir diretamente com seus dados do Timebook para gerenciar sua agenda e logs. Você pode configurar isso como um servidor local usando a linha de comando ou conectar via um endpoint HTTP remoto para clientes baseados na web, como o claude.ai.
Os usuários podem gerenciar seu fluxo de trabalho por meio de ferramentas específicas como start_timer, stop_timer e log_time. O servidor permite que a IA liste projetos e clientes, verifique o status de um timer ativo e visualize entradas recentes. Ele também suporta a modificação ou remoção de entradas, desde que o token autenticado tenha as permissões necessárias. Essa configuração garante que seu rastreamento de tempo permaneça integrado aos seus ambientes de codificação e planejamento.
Para começar, você deve se autenticar usando o comando login, que armazena um token localmente em sua máquina. Para conexões remotas, o sistema utiliza OAuth 2.0 para gerenciar permissões de forma segura. O servidor não coleta telemetria ou análises de uso, mantendo sua atividade privada em sua máquina local e em sua conta do Timebook.
O que você pode fazer com ele
- 1Gerenciamento automatizado de timersPeça ao seu assistente de IA para iniciar ou encerrar um timer em um projeto específico.
- 2Registro manual de tempoPeça para a IA registrar uma duração específica de trabalho para um cliente ou projeto.
- 3Revisão de histórico de trabalhoConsulte a IA para descobrir quanto tempo foi gasto em um projeto específico recentemente.
- 4Correção de registros de tempoInstrua a IA a corrigir erros em registros de tempo lançados anteriormente.
Escrito a partir do README do projeto. Cada caso de uso é verificado com uma citação dele.
Como instalar o MCP Timebook
Formatos verificados em 10 nov 2026Instalar o MCP Timebook no Claude Code
$ claude mcp add timebook-cli -- npx -y @squidcode/timebookInstalar o MCP Timebook no Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"timebook-cli": {
"command": "npx",
"args": [
"-y",
"@squidcode/timebook"
]
}
}
}Instalar o MCP Timebook no VS Code
.vscode/mcp.json
{
"servers": {
"timebook-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@squidcode/timebook"
]
}
}
}Instalar o MCP Timebook no Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"timebook-cli": {
"command": "npx",
"args": [
"-y",
"@squidcode/timebook"
]
}
}
}Instalar o MCP Timebook no Codex
~/.codex/config.toml
[mcp_servers.timebook-cli] command = "npx" args = ["-y", "@squidcode/timebook"]
Instalar o MCP Timebook no Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"timebook-cli": {
"command": "npx",
"args": [
"-y",
"@squidcode/timebook"
]
}
}
}Ferramentas do MCP Timebook 10
Detectadas a partir do READMEwhoamilist_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 | — |
Configuração
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.
| Nome | Descrição | Tipo |
|---|---|---|
| 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. |
Verificações automatizadas
Executado em 14 de nov. de 2026Relatório completo →Passou em nossas verificações automatizadas. Isso não é uma auditoria de segurança: leia o código e dê ao servidor o acesso mais restrito de que ele precisa. Como as verificações funcionam
- Repositório de origem vinculado e acessívelsquidcode/timebook-cli is public and reachablegithub.com/squidcode/timebook-cli ↗Passou
- O pacote cita este repositório como fonte@squidcode/timebook names squidcode/timebook-cli as sourcenpmjs.com/package/@squidcode/timebook ↗Passou
- Proveniência da build (atestação Sigstore)Sigstore attestation for @squidcode/timebooknpmjs.com/package/@squidcode/timebook/v/0.6.0#provenance ↗Passou
- Licença de código aberto (OSI)MITspdx.org/licenses/MIT.html ↗Passou
- Commit ou release no último anoLast commit or release 2026-06-08github.com/squidcode/timebook-cli ↗Passou
- OpenSSF ScorecardNão verificado
- Nome do pacote não é próximo a um pacote popularNo popular package one edit away from @squidcode/timebookPassou
- Nenhum alerta crítico no pacote ou nas dependências112 resolved dependencies checked; no critical advisoryosv.dev ↗Passou
- Sem instruções ocultas para o modelo10 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPassou
- Ferramentas destrutivas estão rotuladasNão verificado
- O endpoint remoto responde ao handshake MCPHTTPS endpoint answered 401 (sign-in required)Passou
README
Ver no GitHubTimebook 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.
Perguntas sobre o MCP Timebook
Como adiciono o MCP Timebook ao Claude Code?
Execute claude mcp add timebook-cli -- npx -y @squidcode/timebook no seu terminal. Adicione --scope user para torná-lo disponível em todos os projetos.
Como adiciono o MCP Timebook ao Cursor?
Abra ~/.cursor/mcp.json e adicione o servidor em mcpServers, usando a configuração do Cursor mostrada na seção de instalação acima.
Quais ferramentas o MCP Timebook oferece?
Ele expõe 10 ferramentas, incluindo whoami, list_projects, list_clients, get_active_timer, start_timer.
Como faço para autenticar o MCP server do Timebook?
Execute timebook login no seu terminal uma vez para autenticar via navegador; o MCP server passará a reutilizar o token salvo.
A IA pode excluir ou editar meus registros de tempo?
Sim, mas um token de API só pode modificar ou excluir entradas que ele mesmo criou; entradas faturadas ficam bloqueadas.