open source · v0.1.1
Fitbit CLI
Your Fitbit data, for you and your agents.
One small Rust binary to read your own Fitbit account. Pull steps, sleep, heart rate, and more in the terminal, or connect an AI agent through its built-in MCP server.
What it does
Read your own data
Use shortcuts for activity, sleep, heart rate, weight, and other Fitbit data. Choose a date or save a response as JSON.
Connect your agents
Run
fitbit-cli mcpto expose thepull,list_pulls, andstatustools over stdio.Approve in your browser
Sign in once through browser authorization. Credentials are stored locally and tokens refresh automatically. No Google Cloud project or client secret is required.
Get started
- Install
Download a binary from the release page, or build from source.
cargo install --git https://github.com/raitoxlol/fitbit-cli - Authorize
Follow the browser approval, then paste the full localhost redirect URL back into the terminal, as the README explains.
fitbit-cli auth - Read data
Today’s activity, or last night’s sleep.
fitbit-cli pull todayfitbit-cli pull sleep - For agents
Add
fitbit-cliwith the argumentmcpas a stdio MCP server in your agent’s configuration.
An unofficial tool
Fitbit CLI is not affiliated with Fitbit or Google. It uses an unofficial API that may change. It reads your own account and shares the Fitbit app’s request quota.