ble-toy-mcp-starter
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ble-toy-mcp-starterCheck the status of my BLE toy"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BLE Toy MCP Starter
一套面向普通用户与 AI 编程助手的开源教程和安全代码骨架:从本人持有的 iPhone BLE 玩具出发,用官方 App 产生样本、在 Mac 上分析与短时回放,再封装成 MCP,并通过 OpenAI Secure MCP Tunnel 连接到 ChatGPT。
它不内置任何厂商协议,不使用品牌 Logo,也不自动扫描或控制附近设备。每个研究者都 必须从自己的合法设备与自己的抓包重新确认广播名、GATT 字段、最低档测试帧和停止帧。
架构
iPhone 官方 App ──产生单变量样本──> PacketLogger / Mac
↓ 独立分析
iPhone / ChatGPT <──Secure MCP Tunnel── Mac stdio MCP ──BLE──> 自有设备iPhone 不直接运行 Python MCP。最终控制由 Mac 负责蓝牙;iPhone/ChatGPT 通过官方 隧道间接调用。LightBlue 适合枚举 GATT 和低风险手动回放,PacketLogger 才负责观察 官方 App 实际写入。
Related MCP server: opencode-chatgpt-bridge
阅读顺序
本仓库不会列出或链接任何设备专属研究,也不会把某一品牌的帧当作通用标准。
安装与 dry-run
python3 --version # 必须是 3.10 或更新版本
python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'
.venv/bin/pytest
BLE_DRY_RUN=1 .venv/bin/ble-toy-mcpmacOS 自带的 python3 可能仍是 3.9;版本不足时,先用 Python.org、Homebrew 或你信任
的 Python 管理器安装 3.10+。
真实设备登记
先设置自己观察到的广播名,再由设备所有者在电脑前选择单台设备:
export BLE_DEVICE_NAME='<NAME_OBSERVED_ON_YOUR_DEVICE>'
.venv/bin/ble-toy-enroll登记命令只显示本机 CoreBluetooth identifier,不自动保存。把它与本人独立抓到的
BLE_WRITE_UUID、BLE_TEST_FRAME、BLE_STOP_FRAMES 放入本地私密环境,绝不能
提交到 GitHub。格式见 .env.example。
MCP 默认只暴露:
ble_status:查找用户登记的那台设备,不改变状态。ble_short_test:运行本地配置的最低档测试帧,硬上限 5 秒,随后重复停止。ble_stop:重复发送所有本地配置的停止帧。
没有批量控制、按名称自动选择第一台设备或无限时长动作。
公开资料
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- AlicenseAqualityCmaintenanceA stateful Bluetooth Low Energy (BLE) MCP server that enables AI agents to scan, connect, read/write characteristics, and subscribe to notifications on BLE devices.3518MIT
- AlicenseNot gradedqualityFmaintenanceA local MCP bridge that lets ChatGPT control opencode sessions for code modification, file reading, and repository management on your own computer.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables cloud LLM agents to discover and invoke physical hardware on edge and IoT devices through standard MCP tools, bridging constrained device channels like UART, BLE, and Wi-Fi.3MIT
- AlicenseNot gradedqualityDmaintenanceA self-hosted MCP server that gives ChatGPT a secure connection to your local machine, enabling it to read, edit, search, and run code in your projects.1,283 npmMIT