About Ble MCP Server
Ble MCP Server is an MCP server published by es617 in the Developer Tools category: bluetooth Low Energy (BLE) MCP server for Claude Code and other MCP-compatible agents. Conduid read 35 tools from its source: ble.connect, ble.connection_status, ble.connections.list, ble.disconnect, ble.discover, ble.drain_notifications and 29 more. No package is published for it, so it installs from a source checkout.
The repository has 20 stars and 2 forks, is licensed MIT, and its last commit was on 30 Mar 2026. The latest release is v0.3.0 (30 Mar 2026). It follows v0.2.0 (20 Mar 2026), and the 5 most recent releases go back to v0.1.3 (26 Feb 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include devtools.
Install
git clone https://github.com/es617/ble-mcp-serverTools (35)
ble.connectConnect to a BLE peripheral by address. Returns a connection_id, device identity (device_name, service_uuids from scan cache), and spec status (null if none attached). After connecting: 1) Use ble.spec.list to check for a matching protocol spec by device name or service UUIDs. If a match is found, attach it with ble.spec.attach. If no match, ask the user if they have a protocol spec for this device. 2) Use ble.plugin.list to check for a plugin whose name matches the device. If a matching plugin is loaded, its tools are available to use directly.ble.connection_statusCheck whether a connection is still alive. Returns connected (bool), address, and disconnect_ts if the device disconnected unexpectedly. Use this to verify a connection before a sequence of operations.ble.connections.listList all tracked connections with their status, address, name, timestamps, and subscription count. Useful for recovering connection IDs after context loss.ble.disconnectDisconnect a BLE peripheral by connection_id.ble.discoverDiscover services and characteristics on a connected device. Results are cached per connection.ble.drain_notificationsBatch-collect notifications: waits up to timeout_s for the first notification, then keeps collecting until idle_timeout_s passes with no new data, max_items is reached, or the total timeout_s expires. Ideal for bursty flows like downloading a log file or dataset over BLE notifications.ble.mtuReturn the negotiated MTU (Maximum Transmission Unit) for a connection. The effective max write payload per packet is mtu - 3 bytes (ATT header). Useful for determining chunk sizes for large writes.ble.plugin.listList loaded plugins with their tool names and metadata. Each plugin may include a 'meta' dict with matching hints like service_uuids, device_name_contains, or description — use these to determine which plugin fits the connected device. Also returns whether plugins are enabled and the current policy. Plugins require BLE_MCP_PLUGINS env var — set to 'all' for all or 'name1,name2' to allow specific plugins. If disabled, tell the user to set this variable when adding the MCP server.ble.plugin.loadLoad a new plugin from a file or directory path. Requires BLE_MCP_PLUGINS env var to be set.ble.plugin.reloadHot-reload a plugin by name. Re-imports the module and refreshes tools. Requires BLE_MCP_PLUGINS env var to be set.ble.plugin.templateReturn a Python plugin template. Use this when creating a new plugin. Optionally pre-fill with a device name. Save the result to .ble_mcp/plugins/<name>.py, fill in the tools and handlers, then load with ble.plugin.load.ble.poll_notificationsNon-blocking: return up to max_items buffered notifications immediately. Returns an empty list if the queue is empty. Also returns a dropped counter showing how many notifications were lost to queue overflow since subscription start.ble.readRead the value of a GATT characteristic.ble.read_descriptorRead a GATT descriptor by handle. Use ble.discover to find descriptor handles. Descriptors provide metadata about characteristics (e.g. CCCD, user description).ble.scan_get_resultsNon-blocking: return the devices discovered so far by a running (or finished) scan. Also returns whether the scan is still active. Call this to check progress or to decide whether to stop early.ble.scan_startStart a background BLE scan. Returns a scan_id immediately. The scan runs in the background for up to timeout_s seconds. Use ble.scan_get_results to check discovered devices and ble.scan_stop to end the scan early.ble.scan_stopStop a running scan early and return the final list of discovered devices. Safe to call on an already-finished scan.ble.scans.listList all tracked scans with their status, filters, timestamps, and device count. Useful for recovering scan IDs after context loss.ble.spec.attachAttach a registered spec to a connection session (in-memory only). The spec will be available via ble.spec.get for the duration of this connection. After attaching, check ble.plugin.list for a matching plugin, then present the user with their options: interact with the device using the spec (read/write characteristics, execute flows), use plugin shortcut tools if a plugin is loaded, extend an existing plugin with new tools, or create a new plugin using ble.plugin.template.ble.spec.getGet the attached spec for a connection (returns null if none attached).ble.spec.listList all registered specs with their metadata and matching hints.ble.spec.readRead full spec content, file path, and metadata by spec_id.ble.spec.registerRegister a spec file in the index. Validates YAML front-matter (requires kind: ble-protocol and name). The file path can be absolute or relative to CWD.ble.spec.searchFull-text search over a spec's content. Returns matching snippets with line numbers and surrounding context.ble.spec.templateReturn a markdown template for a new BLE protocol spec. Optionally pre-fill with a device name.ble.subscribeSubscribe to notifications/indications on a characteristic.ble.subscriptions.listList all active subscriptions with their status, queue depth, and dropped count. Optionally filter by connection_id. Useful for recovering subscription IDs.ble.tasks.cancelCancel a running background task by task_id.ble.tasks.listList all registered background tasks (from plugins) with their status. Shows task_id, name, running/stopped, start time, and any error.ble.trace.statusReturn tracing config and event count.ble.trace.tailReturn last N trace events (default 50).ble.unsubscribeUnsubscribe from a previously created subscription.ble.wait_notificationBlock until the next single notification arrives on a subscription, or timeout. For bursty / bulk flows (e.g. downloading a dataset or log file) prefer ble.drain_notifications instead.ble.writeWrite a value to a GATT characteristic. Requires BLE_MCP_ALLOW_WRITES=true at server startup. Provide value as base64 (value_b64) or hex (value_hex).ble.write_descriptorWrite to a GATT descriptor by handle. Requires BLE_MCP_ALLOW_WRITES=true. Rarely needed directly — bleak handles CCCD for notify/indicate automatically.Security checks
Static checks derived from the repository a month ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionScanned 16 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
Releases
README
The repository's README runs to about 3.0K words, fetched a month ago. The original in the repository is authoritative.
Read full README