Are you the author? Sign in to claim
MCP server for the Bosch eBike Flow API with OAuth, local cache, and battery trend analysis.
MCP server for Bosch eBike Flow (Smart System / BES3). Tracks battery health, charge cycles, component versions, service history, live state-of-charge, and per-ride activity data (distance, elevation, power, assist-mode, CO2).
This is an unofficial, community-built project. It is not affiliated with, authorised by, or endorsed by Robert Bosch GmbH, Bosch eBike Systems, or SingleKey ID. "Bosch", "eBike Flow", and related marks belong to their owners and are used here only to describe interoperability.
one-bike-app, PKCE) that the official Bosch
eBike Flow app uses. No credentials, secrets, or protection measures are extracted,
bypassed, or circumvented - every identifier here is already publicly documented.pip install bosch-flow-mcp
Or run it without installing with uvx bosch-flow-mcp. For development from a clone:
git clone https://github.com/partymola/bosch-flow-mcp
cd bosch-flow-mcp
uv venv --python 3.13 .venv
uv pip install -e .
.venv/bin/bosch-flow-mcp auth
Opens your browser to Bosch login. The auth flow uses the one-bike-app public client
with PKCE - no API keys or registration needed. Just your Bosch Flow account.
Important: Open browser DevTools (F12) and switch to the Network tab before logging in.
After login, the browser redirects to an iOS URI (onebikeapp-ios://) that desktop browsers
can't open. Copy the full redirect URL from DevTools (right-click > Copy URL on the
oauth2redirect entry) and paste it at the prompt.
Tokens are saved to config/bosch_tokens.json and auto-refresh via offline_access.
EU Data Act users: if you have registered your own euda client and placed its ID in
config/bosch_config.json, auth uses that instead - it opens the browser and completes
automatically through a local http://localhost:4200 callback, with no DevTools step.
.venv/bin/bosch-flow-mcp sync # all data types
.venv/bin/bosch-flow-mcp sync --types bikes,batteries
Data types: bikes, batteries, components, service, software_updates, capacity.
Fetches your data and stores it locally. The source depends on your sign-in:
euda client at the
Bosch Data Act portal. With a standard sign-in
those types report unavailable (with a note) rather than a silent empty result, and the
Data Act API returns nothing for accounts registered outside the EU.You can also use the bosch_sync MCP tool, or rely on automatic sync (each get_* tool
triggers a sync if data is stale).
Run bosch-flow-mcp --version to print the installed package version.
claude mcp add -s user bosch-flow -- /full/path/to/bosch-flow-mcp/.venv/bin/bosch-flow-mcp
Then ask Claude questions like:
| Tool | Description |
|---|---|
bosch_sync | Sync one or more data types (default: all) |
bosch_get_bikes | List registered bikes |
bosch_get_bike | Single bike with full details |
bosch_get_batteries | Battery snapshots - latest or historical range |
bosch_get_soc | Live state-of-charge from ConnectModule |
bosch_get_capacity | Battery capacity tester results (EU Data Act client only) |
bosch_get_components | Components with part numbers and firmware versions |
bosch_get_service_records | Service book entries (EU Data Act client only) |
bosch_get_software_updates | Software update history (EU Data Act client only) |
bosch_battery_trends | Charge cycle and energy trends by period |
bosch_get_activities | Per-ride summaries (distance, elevation, power, mode, CO2) over a date range |
bosch_get_activity_detail | Per-point track for one ride (GPS/speed/elevation/cadence/power) |
This server uses the Bosch Mobile API (obc-rider-profile.prod.connected-biking.cloud)
as the primary data source, the rider-activity API
(obc-rider-activity.prod.connected-biking.cloud) for per-ride data, and optional
Data Act API (api.bosch-ebike.com) support for additional endpoints.
Authentication uses the one-bike-app public client (the same OAuth client as the Bosch
eBike Flow mobile app). The auth approach was documented by the
marq24/ha-bosch-ebike-flow Home Assistant
integration and the open-ebike/open-ebike-backend
project.
| Variable | Default | Description |
|---|---|---|
BOSCH_FLOW_MCP_DB_PATH | bosch_flow.db in the package root | SQLite database path |
BOSCH_FLOW_MCP_CONFIG_DIR | config/ in the package root | Directory for tokens and client config |
OAuth tokens are saved with 0600 permissions; the token files and bosch_flow.db are gitignored.
A pre-commit hook (scripts/check-no-data.sh) blocks committing databases, token files, and secrets. Install it after cloning:
ln -sf ../../scripts/check-no-data.sh .git/hooks/pre-commit
Tests use temporary SQLite databases and fictional identifiers - no real bike or account data ever enters the repo.
See CONTRIBUTING.md for development setup, the test workflow, and the pre-commit hook. Changes are tracked in CHANGELOG.md.
GPLv3+. See LICENSE.
Run analytics queries on ClickHouse — explore schemas, execute SQL, fetch results
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases