
Bosch Flow Mcp
io.github.partymola由 GitHub 账号 partymola 发布v0.10.0更新于 Nov 7, 2026
MCP server for Bosch eBike Flow (BES3): battery health, charge cycles, components, and ride data.
概览
非官方 MCP 服务器,读取你自己的 Bosch eBike Flow 账户,报告电池健康、部件、保养记录与骑行数据。
- 可以做什么
- 按需同步骑行数据,或让每次读取自动触发刷新
- 列出车辆并查看单辆车的完整详情
- 读取电池快照、实时电量、容量测试结果以及充电循环与能量趋势
- 读取部件编号与固件版本,以及保养记录和软件更新历史
- 读取单次骑行摘要(距离、爬升、功率、助力模式、CO2)与逐点 GPS/速度轨迹
- 适用场景
- 当你想让助手查询自己的 BES3 智能系统电动自行车时适用:电池衰减、充电循环、固件版本、保养记录,或某段时间的骑行距离与强度。
- 运行要求
- 本机运行的 Python 3.13+ 进程,从 PyPI 安装(uv 或 pip)。需要一个免费的 Bosch eBike Flow 账户,以及在应用中注册的 BES3 智能系统电动自行车。登录会打开浏览器 OAuth 流程,除非自行注册 EU Data Act 客户端,否则需手动复制重定向 URL。可选变量 BOSCH_FLOW_MCP_DB_PATH 与 BOSCH_FLOW_MCP_CONFIG_DIR 用于指定 SQLite 路径和配置目录。
安装
在 SourceWeft 中
- 打开 控制台中的 Bosch Flow Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
bosch-flow-mcp
[CI] [License: GPL v3] [Python 3.13+] [PyPI] [Glama MCP Server]
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).
Disclaimer
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.
- It signs in with your own Bosch eBike Flow account (via the standard SingleKey ID login) and reads only your own data. It is read-only - it never modifies your bike, battery, or account.
- It uses the same public OAuth client (
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. - When you supply your own EU Data Act API credentials, the official Data Act API is used. Otherwise the same app API your phone already uses is queried with your own login.
- This is an undocumented, unofficial interface that may change or stop working at any time if Bosch alters their systems.
- You are responsible for ensuring your use complies with Bosch's and SingleKey ID's terms of service in your jurisdiction.
- Provided with no warranty under GPLv3+ (see LICENSE). Use at your own risk.
Features
- Battery state snapshots over time (charge cycles, energy delivered, degradation trends)
- Components and firmware versions (drive unit, battery, ConnectModule, head unit, remote, ABS)
- Service book history and software update log (EU Data Act client only)
- Live state-of-charge from ConnectModule via mobile API
- Battery capacity tester results (EU Data Act client only)
- Per-ride activities: distance, elevation, speed, cadence, measured rider power, calories, rider-vs-motor energy share, assist-mode split, CO2, ABS events, plus a per-point GPS/speed/elevation/power track
- Auto-sync on demand - tools fetch fresh data without a cron job
Requirements
- Python 3.13+ (tested on 3.13, 3.14 and 3.15, on Linux, macOS and Windows, in CI)
- uv (recommended) or pip
- A Bosch eBike Flow account (free, register at the Bosch eBike Flow app)
- A BES3 Smart System eBike registered in the app
Install
Or run it without installing with uvx bosch-flow-mcp. For development from a clone:
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.
Sync
Data types: bikes, batteries, components, service, software_updates, capacity.
Fetches your data and stores it locally. The source depends on your sign-in:
- A standard Bosch eBike Flow account (the default) reads bikes, batteries, components, current firmware, and live state-of-charge from the mobile app API - works for any account, including non-EU.
- Service-book history, software-update history, and capacity-tester results come only
from the EU Data Act API, which requires registering your own
eudaclient at the Bosch Data Act portal. With a standard sign-in those types reportunavailable(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.
Register with Claude Code
Then ask Claude questions like:
- "What's my bike's battery health this year?"
- "Show me charge cycle trends by month"
- "What firmware version is my drive unit on?"
- "Have there been any service records for my bike?"
- "How far and how hard were my rides this week?"
Available tools
API credits
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.
Configuration
Data safety
-
OAuth tokens are created at
0600on POSIX - Windows ignores the mode and governs access by inherited ACLs; the token files andbosch_flow.dbare gitignored. -
A pre-commit hook (
scripts/check-no-data.sh) blocks committing database files, files underconfig/, and large files. It does not read file contents. Install it after cloning: -
Tests use temporary SQLite databases and fictional identifiers - no real bike or account data ever enters the repo.
Contributing
See CONTRIBUTING.md for development setup, the test workflow, and the pre-commit hook. Changes are tracked in CHANGELOG.md.
License
GPLv3+. See LICENSE.
来源:README.md,提交 63e1d6e
工具
0版本历史
6- v0.10.0最新Nov 7, 2026
- v0.9.2Nov 6, 2026
- v0.9.1Nov 5, 2026
- v0.9.0Nov 4, 2026
- v0.8.0Nov 3, 2026
- v0.7.0Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分