bodybridge

bodybridge

Connects embodied devices (like StackChan, Raspberry Pi, ESP32) to AI via MCP protocol, enabling motion control with zero API cost, no PC required, and fully self-hosted.

Category
访问服务器

README

bodybridge

Connect embodied devices to cloud AI via MCP. 具身 × 云端 MCP 桥

Zero API cost · No PC required · Fully self-hosted

One wide bridge, not many narrow ones.


What is this

bodybridge is an open-source cloud bridge that connects embodied devices (StackChan, Raspberry Pi, ESP32, and more) to AI through claude.ai custom connectors.

Built on the open MCP protocol — any MCP-compatible AI client can connect.

Instead of writing a separate bridge for every device, bodybridge gives you one bridge with a standard slot: implement three methods, and your device is in.

Why bodybridge:

  • Zero API cost — Runs on your existing Claude subscription. No extra token billing for the brain (LLM inference).
  • No PC required — Cloud-hosted. No need to keep a machine running at home.
  • Fully self-hosted — Your data and keys stay with you.

Architecture

Four layers, each with one job:

Layer Responsibility
MCP Server Exposes tools over streamable-http; receives tool calls from the AI
Auth OAuth 2.1 authorization-code flow with PKCE; stateless JWT verification on every request. Client identity via Dynamic Client Registration (default) or CIMD, switchable. Secrets live in environment variables, never in code
Device Adapter Slot Standard interface: send_command / get_status / list_capabilities. Swap devices by implementing the same interface — the bridge itself stays untouched
Reflex (optional) Device-local instant reactions, independent of the AI

Design philosophy: flexible at the top, solid in the middle, rule-based at the bottom.

A puppy that doesn't understand you tilts its head — it doesn't run wild. 小狗听不懂你说话,会歪头看你,而不是乱跑。

When the AI can't understand, or the device can't comply, the bridge says so honestly instead of guessing. That refusal is the safety mechanism.


Which version should I use?

V1 (current) V2 (planned)
What it does Motion control (turn, light up, move…) Everything in V1 + streaming interaction (voice first)
Interaction Request-response Request-response + streaming
Required config 2 items (token + password), +1 for public deployment (public URL) Several (token + storage + voice service credentials)
External dependencies None Likely additional services

Choose V1 if you just want the AI to control device actions — minimal, readable, stable, zero dependencies. Wait for V2 if you need real-time voice conversation, or other streaming scenarios (video, sensor feeds).

Each version is a complete, standalone release. More features isn't always better — for those who don't need them, they're just weight.


Quick Start

Coming soon — pending real-device validation.


Deployment

Upgrading an existing deployment? Authentication changed from a static token to OAuth 2.1 in this version. See MIGRATION.md for what's different and what you need to do.

⚠️ Public HTTPS address required

claude.ai's custom connectors require a trusted SSL certificate — self-signed certs don't work — and the CIMD discovery flow needs Anthropic's servers to reach this bridge from the outside. So before connecting to claude.ai, you need a real, publicly reachable HTTPS address for the bridge.

Set BODYBRIDGE_PUBLIC_URL to that address: scheme + host (+ port), no trailing slash, no /mcp path (the code appends that itself). Example: BODYBRIDGE_PUBLIC_URL=https://bridge.example.com.

This value must match, character for character, the URL you type into claude.ai when adding the connector — scheme, host, port, path, and trailing slash all included. A mismatch fails resource validation and the connection is rejected.

If unset, the bridge still starts (it falls back to a local address and prints a warning) — but CIMD discovery can't work, so it runs while being unreachable from claude.ai. Starting successfully is not the same as being configured correctly.

On one-click deploy platforms, the domain is usually only assigned after deployment finishes — so the order is: deploy first, get the domain, then set BODYBRIDGE_PUBLIC_URL and restart.

Port and network binding

The bridge listens on all interfaces (0.0.0.0) by default, and picks up most cloud platforms' injected PORT variable automatically (falling back to BODYBRIDGE_PORT, then 8000 if neither is set) — on most platforms you don't need to set BODYBRIDGE_HOST or a port variable yourself.

⚠️ Choosing a deployment region

The bridge must be deployed somewhere that satisfies both:

  1. Can reach claude.ai — otherwise the bridge can't connect to the AI
  2. Can be reached by your device — otherwise your device can't connect to the bridge

Please choose a region appropriate for your network environment.

Network quality

  • V1 (motion control) — Latency-tolerant. Most networks are fine.
  • V2 (voice, planned) — Real-time voice is latency-sensitive. Network quality directly affects the experience.

Bring your own device

Adapter guide coming soon.

Implement three methods of DeviceAdapter, and your device plugs into bodybridge:

  • send_command(command, params) — send one explicit command
  • get_status() — query current state
  • list_capabilities() — report what the device can do

Tech stack

  • Python 3.10+
  • MCP official SDK (FastMCP)
  • Transport: streamable-http, stateless by default

Architecturally a thin core with a plugin slot — the microkernel pattern.


License

MIT

Author

alice-jin-dev

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选