{
  "markdown": "# bosch-flow-mcp\n\n<!-- mcp-name: io.github.partymola/bosch-flow-mcp -->\n\n[![CI](https://github.com/partymola/bosch-flow-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/partymola/bosch-flow-mcp/actions/workflows/ci.yml)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](https://www.python.org/downloads/)\n[![PyPI](https://img.shields.io/pypi/v/bosch-flow-mcp)](https://pypi.org/project/bosch-flow-mcp/)\n[![Glama MCP Server](https://glama.ai/mcp/servers/partymola/bosch-flow-mcp/badges/score.svg)](https://glama.ai/mcp/servers/partymola/bosch-flow-mcp)\n\nMCP server for Bosch eBike Flow (Smart System / BES3). Tracks battery health, charge cycles,\ncomponent versions, service history, live state-of-charge, and per-ride activity data\n(distance, elevation, power, assist-mode, CO2).\n\n## Disclaimer\n\nThis is an **unofficial**, community-built project. It is **not affiliated with, authorised\nby, or endorsed by Robert Bosch GmbH, Bosch eBike Systems, or SingleKey ID**. \"Bosch\",\n\"eBike Flow\", and related marks belong to their owners and are used here only to describe\ninteroperability.\n\n- It signs in with **your own Bosch eBike Flow account** (via the standard SingleKey ID\n  login) and reads **only your own data**. It is **read-only** - it never modifies your\n  bike, battery, or account.\n- It uses the same **public** OAuth client (`one-bike-app`, PKCE) that the official Bosch\n  eBike Flow app uses. **No credentials, secrets, or protection measures are extracted,\n  bypassed, or circumvented** - every identifier here is already publicly documented.\n- When you supply your own EU Data Act API credentials, the official Data Act API is used.\n  Otherwise the same app API your phone already uses is queried with your own login.\n- This is an **undocumented, unofficial** interface that **may change or stop working at any\n  time** if Bosch alters their systems.\n- **You are responsible** for ensuring your use complies with Bosch's and SingleKey ID's\n  terms of service in your jurisdiction.\n- Provided **with no warranty** under GPLv3+ (see [LICENSE](https://github.com/partymola/bosch-flow-mcp/blob/main/LICENSE)). Use at your own risk.\n\n## Features\n\n- Battery state snapshots over time (charge cycles, energy delivered, degradation trends)\n- Components and firmware versions (drive unit, battery, ConnectModule, head unit, remote, ABS)\n- Service book history and software update log (EU Data Act client only)\n- Live state-of-charge from ConnectModule via mobile API\n- Battery capacity tester results (EU Data Act client only)\n- Per-ride activities: distance, elevation, speed, cadence, measured rider power, calories,\n  rider-vs-motor energy share, assist-mode split, CO2, ABS events, plus a per-point\n  GPS/speed/elevation/power track\n- Auto-sync on demand - tools fetch fresh data without a cron job\n\n## Requirements\n\n- Python 3.13+ (tested on 3.13 and 3.14, on Linux, macOS and Windows, in CI)\n- [uv](https://docs.astral.sh/uv/) (recommended) or pip\n- A Bosch eBike Flow account (free, register at the Bosch eBike Flow app)\n- A BES3 Smart System eBike registered in the app\n\n## Install\n\n```bash\npip install bosch-flow-mcp\n```\n\nOr run it without installing with `uvx bosch-flow-mcp`. For development from a clone:\n\n```bash\ngit clone https://github.com/partymola/bosch-flow-mcp\ncd bosch-flow-mcp\nuv venv --python 3.13 .venv\nuv pip install -e .\n```\n\n## Auth\n\n```bash\n.venv/bin/bosch-flow-mcp auth\n```\n\nOpens your browser to Bosch login. The auth flow uses the `one-bike-app` public client\nwith PKCE - no API keys or registration needed. Just your Bosch Flow account.\n\n**Important:** Open browser DevTools (F12) and switch to the Network tab **before** logging in.\nAfter login, the browser redirects to an iOS URI (`onebikeapp-ios://`) that desktop browsers\ncan't open. Copy the full redirect URL from DevTools (right-click > Copy URL on the\n`oauth2redirect` entry) and paste it at the prompt.\n\nTokens are saved to `config/bosch_tokens.json` and auto-refresh via `offline_access`.\n\n**EU Data Act users:** if you have registered your own `euda` client and placed its ID in\n`config/bosch_config.json`, `auth` uses that instead - it opens the browser and completes\nautomatically through a local `http://localhost:4200` callback, with no DevTools step.\n\n## Sync\n\n```bash\n.venv/bin/bosch-flow-mcp sync                     # all data types\n.venv/bin/bosch-flow-mcp sync --types bikes,batteries\n```\n\nData types: `bikes`, `batteries`, `components`, `service`, `software_updates`, `capacity`.\n\nFetches your data and stores it locally. The source depends on your sign-in:\n\n- A standard Bosch eBike Flow account (the default) reads bikes, batteries, components,\n  current firmware, and live state-of-charge from the **mobile app API** - works for any\n  account, including non-EU.\n- Service-book history, software-update history, and capacity-tester results come only\n  from the **EU Data Act API**, which requires registering your own `euda` client at the\n  [Bosch Data Act portal](https://portal.bosch-ebike.com/data-act). With a standard sign-in\n  those types report `unavailable` (with a note) rather than a silent empty result, and the\n  Data Act API returns nothing for accounts registered outside the EU.\n\nYou can also use the `bosch_sync` MCP tool, or rely on automatic sync (each `get_*` tool\ntriggers a sync if data is stale).\n\nRun `bosch-flow-mcp --version` to print the installed package version.\n\n## Register with Claude Code\n\n```bash\nclaude mcp add -s user bosch-flow -- /full/path/to/bosch-flow-mcp/.venv/bin/bosch-flow-mcp\n```\n\nThen ask Claude questions like:\n- \"What's my bike's battery health this year?\"\n- \"Show me charge cycle trends by month\"\n- \"What firmware version is my drive unit on?\"\n- \"Have there been any service records for my bike?\"\n- \"How far and how hard were my rides this week?\"\n\n## Available tools\n\n| Tool | Description |\n|------|-------------|\n| `bosch_sync` | Sync one or more data types (default: all) |\n| `bosch_get_bikes` | List registered bikes |\n| `bosch_get_bike` | Single bike with full details |\n| `bosch_get_batteries` | Battery snapshots - latest or historical range |\n| `bosch_get_soc` | Live state-of-charge from ConnectModule |\n| `bosch_get_capacity` | Battery capacity tester results (EU Data Act client only) |\n| `bosch_get_components` | Components with part numbers and firmware versions |\n| `bosch_get_service_records` | Service book entries (EU Data Act client only) |\n| `bosch_get_software_updates` | Software update history (EU Data Act client only) |\n| `bosch_battery_trends` | Charge cycle and energy trends by period |\n| `bosch_get_activities` | Per-ride summaries (distance, elevation, power, mode, CO2) over a date range |\n| `bosch_get_activity_detail` | Per-point track for one ride (GPS/speed/elevation/cadence/power) |\n\n## API credits\n\nThis server uses the **Bosch Mobile API** (`obc-rider-profile.prod.connected-biking.cloud`)\nas the primary data source, the **rider-activity API**\n(`obc-rider-activity.prod.connected-biking.cloud`) for per-ride data, and optional\n**Data Act API** (`api.bosch-ebike.com`) support for additional endpoints.\n\nAuthentication uses the `one-bike-app` public client (the same OAuth client as the Bosch\neBike Flow mobile app). The auth approach was documented by the\n[marq24/ha-bosch-ebike-flow](https://github.com/marq24/ha-bosch-ebike-flow) Home Assistant\nintegration and the [open-ebike/open-ebike-backend](https://github.com/open-ebike/open-ebike-backend)\nproject.\n\n## Configuration\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `BOSCH_FLOW_MCP_DB_PATH` | `bosch_flow.db` in the package root | SQLite database path |\n| `BOSCH_FLOW_MCP_CONFIG_DIR` | `config/` in the package root | Directory for tokens and client config |\n\n## Data safety\n\n- OAuth tokens are created at `0600` on POSIX - Windows ignores the mode and governs access by inherited ACLs; the token files and `bosch_flow.db` are gitignored.\n- A pre-commit hook (`scripts/check-no-data.sh`) blocks committing databases, token files, and secrets. Install it after cloning:\n\n  ```bash\n  ln -sf ../../scripts/check-no-data.sh .git/hooks/pre-commit\n  ```\n\n- Tests use temporary SQLite databases and fictional identifiers - no real bike or account data ever enters the repo.\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://github.com/partymola/bosch-flow-mcp/blob/main/CONTRIBUTING.md) for development setup, the test workflow, and the pre-commit hook. Changes are tracked in [CHANGELOG.md](https://github.com/partymola/bosch-flow-mcp/blob/main/CHANGELOG.md).\n\n## License\n\nGPLv3+. See [LICENSE](https://github.com/partymola/bosch-flow-mcp/blob/main/LICENSE).\n",
  "bytes": 8776,
  "sha": "ef3e5d5b37cc858554bb5f295440e98a02da65165d252a0348e9c2f34de6da9a",
  "repo_slug": "partymola/bosch-flow-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_partymola_bosch_flow_mcp_1c1d08ed/readme"
}