Bluetooth Low Energy (BLE) MCP Server

Mac OS X command line BLE tool and MCP server

Local serverstdio

What is the Bluetooth Low Energy (BLE) MCP Server?

Mac OS X command line BLE tool and MCP server

What the server does

Stop fumbling with GUI apps to debug Bluetooth Low Energy devices. blew gives you full BLE control from the macOS command line: scan the airwaves, drill into any device's GATT tree, read and write characteristics, stream live notifications, and even spin up a virtual peripheral that other devices can connect to.

  • One tool, zero ceremony. — Scan, connect, inspect, read, write, subscribe -- each is a single command. Auto-connect means you never have to manually pair before doing real work
  • Interactive when you want it. — Launch the REPL for an exploratory session with tab completion, persistent history, and background subscriptions that print while you keep typing
  • Scriptable when you need it. — Chain commands with exec, pipe machine-readable kv output into awk or a log file, and use deterministic exit codes in CI or monitoring scripts
  • Full GATT visibility. — Print the service/characteristic tree of any device in one shot. Read all values inline. Look up any Bluetooth SIG characteristic's field-level spec without even connecting
  • Peripheral mode. — Turn your Mac into a virtual BLE device. Define a GATT server from a JSON config, or clone a real device's entire service tree and replay it
  • Human-readable by default. — Standard Bluetooth SIG UUIDs are resolved to their names everywhere -- scan results, GATT trees, notifications -- sourced from the official Bluetooth SIG database

Credentials and setup notes

  • macOS 14 (Sonoma) or later - Xcode 16 or later (Swift 6.0+ toolchain) The MCP server (the blew mcp subcommand) depends on the MCP swift-sdk, which requires the Swift 6.1 toolchain (Xcode 16.3+). To keep blew building on older toolchains, MCP support is compiled in conditionally: when built with Swift 6.1 or newer the mcp subcommand is available; when built with Swift 6.0.x (Xcode 16.0–16.2)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
disconnectDisconnect
statusShow connection status
helpShow available commands

Configuration

  • macOS 14 (Sonoma) or later - Xcode 16 or later (Swift 6.0+ toolchain) The MCP server (the blew mcp subcommand) depends on the MCP swift-sdk, which requires the Swift 6.1 toolchain (Xcode 16.3+). To keep blew building on older toolchains, MCP support is compiled in conditionally: when built with Swift 6.1 or newer the mcp subcommand is available; when built with Swift 6.0.x (Xcode 16.0–16.2)

Example prompts to try

  • “Use Bluetooth Low Energy (BLE) to disconnect.”
  • “Use Bluetooth Low Energy (BLE) to status.”
  • “Use Bluetooth Low Energy (BLE) to help.”

Frequently asked questions

Mac OS X command line BLE tool and MCP server Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.