Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Ble MCP Server

by es617version 0.3.0i★ 19iRuns on your computer
Registry nameio.github.es617/ble-mcp-server

How to install

What it does

Let AI agents interact with real BLE hardware — scan, connect, read, write, and subscribe.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Other

Install

Pick the AI app you use, then copy the settings.

Passed 2/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Ble MCP Server for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "ble": { "command": "uvx", "args": [ "ble-mcp-server" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Ble MCP Server tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "ble": {
          "command": "uvx",
          "args": [
            "ble-mcp-server"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Ble MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Ble MCP Server or shows a Ble MCP Server tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • BLE_MCP_ALLOW_WRITES Enable BLE characteristic writes (off by default for safety)
  • BLE_MCP_WRITE_ALLOWLIST Comma-separated UUID allowlist for writable characteristics
  • BLE_MCP_PLUGINS Plugin policy: 'all' or comma-separated plugin names. Unset = disabled.
  • BLE_MCP_TOOL_SEPARATOR Tool name separator character (default '_'). Set to '.' if your client supports dots.

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Ble MCP Server yet

Ble MCP Server runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Ble MCP Server

  • Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)

B · Others in Other that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Ble MCP Server for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user ble -- uvx ble-mcp-server 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Ble MCP Server tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user ble -- uvx ble-mcp-server
  4. Type /mcp in Claude Code

    You should see Ble MCP Server listed as connected

  5. Try it

    Use Ble MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Ble MCP Server or shows a Ble MCP Server tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • BLE_MCP_ALLOW_WRITES Enable BLE characteristic writes (off by default for safety)
  • BLE_MCP_WRITE_ALLOWLIST Comma-separated UUID allowlist for writable characteristics
  • BLE_MCP_PLUGINS Plugin policy: 'all' or comma-separated plugin names. Unset = disabled.
  • BLE_MCP_TOOL_SEPARATOR Tool name separator character (default '_'). Set to '.' if your client supports dots.

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Ble MCP Server for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "ble": { "command": "uvx", "args": [ "ble-mcp-server" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Ble MCP Server tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Ble MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Ble MCP Server or shows a Ble MCP Server tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • BLE_MCP_ALLOW_WRITES Enable BLE characteristic writes (off by default for safety)
  • BLE_MCP_WRITE_ALLOWLIST Comma-separated UUID allowlist for writable characteristics
  • BLE_MCP_PLUGINS Plugin policy: 'all' or comma-separated plugin names. Unset = disabled.
  • BLE_MCP_TOOL_SEPARATOR Tool name separator character (default '_'). Set to '.' if your client supports dots.

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Ble MCP Server for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "ble": { "type": "stdio", "command": "uvx", "args": [ "ble-mcp-server" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Ble MCP Server tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Ble MCP Server and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Ble MCP Server or shows a Ble MCP Server tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • BLE_MCP_ALLOW_WRITES Enable BLE characteristic writes (off by default for safety)
  • BLE_MCP_WRITE_ALLOWLIST Comma-separated UUID allowlist for writable characteristics
  • BLE_MCP_PLUGINS Plugin policy: 'all' or comma-separated plugin names. Unset = disabled.
  • BLE_MCP_TOOL_SEPARATOR Tool name separator character (default '_'). Set to '.' if your client supports dots.

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Ble MCP Server💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user ble -- uvx ble-mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "ble": {
      "command": "uvx",
      "args": [
        "ble-mcp-server"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "ble": {
      "command": "uvx",
      "args": [
        "ble-mcp-server"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "ble": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ble-mcp-server"
      ]
    }
  }
}

Values you fill in

  • BLE_MCP_ALLOW_WRITES env
    Enable BLE characteristic writes (off by default for safety)
  • BLE_MCP_WRITE_ALLOWLIST env
    Comma-separated UUID allowlist for writable characteristics
  • BLE_MCP_PLUGINS env
    Plugin policy: 'all' or comma-separated plugin names. Unset = disabled.
  • BLE_MCP_TOOL_SEPARATOR env
    Tool name separator character (default '_'). Set to '.' if your client supports dots.

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
62/wk
Connection
Runs on your computer
Transport
stdio, streamable-http, sse
Latest versioni
0.3.0
Categoryi
Other
Published to registryi
Mar 30, 2026
Code last changedi
Mar 30, 2026
Maker
es617
Packages
pypi: ble-mcp-server
pypi: ble-mcp-server
pypi: ble-mcp-server
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 15, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account es617, which owns the repo

  • ! Caution

    Still maintained

    Code last changed 8 months ago, more than 6 months ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

Not checked yet

What we check → · JSON

Makers: ask for a re-check or report wrong info

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in with Google to post

User reviews

No reviews yet

Sign in with Google to write a review

Compared with others in Otheri

  • More stars than 97% of the other 19826 servers in this category
  • Published to the registry more recently than 3% of the other 19826 servers in this category
  • Basic checks equal to or better than 45% of the other 19826 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Ble MCP Server safe?

It passed 2 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 8 months ago, and the latest version (0.3.0) reached the registry 8 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 97 tools.

by koala73Widely used★ 90.6KUpdated yesterday

Runs in the cloud✓ service owner · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

by openstatusHQWidely used★ 9.3KUpdated 2 months ago

Runs in the cloud✓ service owner · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

by JanDeDobbeleerWidely used★ 23.8K Stars for the whole repoUpdated 26 days ago

Runs in the cloud✓ service owner · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

by Klavis-AIGrowing★ 5.8KUpdated 14 months ago

Runs in the cloudRepo archived✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

by jitsucomWidely used★ 5.1KUpdated 4 months ago

Runs in the cloud✓ service owner · jitsu.com
  • World Monitor — Runs in the cloud, nothing to install · No key needed
  • openstatus — Runs in the cloud, nothing to install · No key needed
  • Oh My Posh Validator — Runs in the cloud, nothing to install · No key needed
  • Strata — Runs in the cloud, nothing to install · No key needed
  • Jitsu — Runs in the cloud, nothing to install · No key needed

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

BLE MCP Server

A stateful Bluetooth Low Energy (BLE) Model Context Protocol (MCP) server for developer tooling and AI agents. Works out of the box with Claude Code, VS Code with Copilot, and any MCP-compatible runtime. Defaults to stdio (no HTTP, no open ports), with optional SSE and Streamable HTTP transports for remote access and multi-session use. Uses bleak for cross-platform BLE on macOS, Windows, and Linux.

Example: Let Claude Code scan for nearby BLE devices, connect to one, read characteristics, and stream notifications from real hardware.

Demo

7-minute video walkthrough — scanning a real BLE device, discovering services, reading values, and promoting flows into plugins.


Why this exists

You have a BLE device. You want an AI agent to talk to it — scan, connect, read sensors, send commands, stream data. This server makes that possible.

It gives any MCP-compatible agent a full set of BLE tools: scanning, connecting, reading, writing, subscribing to notifications — plus protocol specs and device plugins, so the agent can reason about higher-level device behavior instead of just raw UUIDs and bytes.

The agent calls these tools, gets structured JSON back, and reasons about what to do next — no human in the loop for each BLE operation.

What agents can do with it:

  • Develop and debug — connect to your device, explore its services, read characteristics, test commands, and diagnose issues conversationally. "Why is this sensor returning zeros?" becomes a question you can ask.
  • Iterate on new hardware — building a BLE device? Attach a protocol spec so the agent understands your commands and data formats as you evolve them.
  • Automate testing — write device-specific plugins that expose high-level actions (e.g., device.start_stream, device.run_self_test), then let the agent run test sequences: enable a sensor, collect samples, validate values, report results.
  • Explore — point the agent at a device you’ve never seen. It discovers services, probes characteristics, and builds up protocol documentation from scratch.
  • Build BLE automation — agents controlling real hardware for real tasks: reading environmental sensors on a schedule, managing a fleet of BLE beacons, triggering actuators based on conditions.

Who is this for?

  • Embedded engineers — faster iteration on BLE protocols, conversational debugging, automated test sequences
  • Hobbyists and makers — explore BLE devices without writing boilerplate; let the agent help reverse-engineer simple protocols
  • QA and test engineers — build repeatable BLE test suites with plugin tools, run them from CI or agent sessions
  • Support and field engineers — diagnose BLE device issues interactively without specialized tooling
  • Researchers — automate data collection from BLE sensors, explore device capabilities systematically

Quickstart (Claude Code)

pip install ble-mcp-server

Register the MCP server with Claude Code (read-only by default)

claude mcp add ble -- ble_mcp

Then in Claude Code, try:

"Scan for nearby BLE devices and connect to the one whose name starts with Arduino."

The server is read-only by default. Writes and plugins can control real hardware and execute code, and are opt-in via environment variables. See Safety for details.


What the agent can do

Once connected, the agent has full BLE capabilities:

  • Scan for nearby devices, with optional name or service UUID filters
  • Connect to a device and discover its services and characteristics
  • Read and write characteristic values (writes require BLE_MCP_ALLOW_WRITES)
  • Subscribe to notifications and collect streaming data — single events, polling, or batch draining
  • Attach protocol specs to understand device-specific commands and data formats
  • Use plugins for high-level device operations (e.g., sensortag.read_temp) instead of raw reads/writes
  • Create specs and plugins for new devices, building up reusable knowledge across sessions

The agent handles multi-step flows automatically. For example, "read the temperature from my SensorTag" might involve scanning, connecting, discovering services, attaching a spec, enabling the sensor, and reading the value — without you specifying each step.

At a high level:

Raw BLE → Protocol Spec → Plugin

You can start with raw BLE tools, then move up the stack as your device protocol becomes understood and repeatable. See Concepts for how the pieces fit together.


Install (development)

# Editable install from repo root

pip install -e .

Or with uv

uv pip install -e .

MCP is a protocol — this server works with any MCP-compatible client. Below are setup instructions for the most common ones.

Add to Claude Code

# Minimal (read-only)

claude mcp add ble -- ble_mcp

Or run as a module

claude mcp add ble -- python -m ble_mcp_server

Enable writes

claude mcp add ble -e BLE_MCP_ALLOW_WRITES=true -- ble_mcp

Enable writes with an allowlist of characteristic UUIDs

claude mcp add ble \ -e BLE_MCP_ALLOW_WRITES=true \ -e BLE_MCP_WRITE_ALLOWLIST="2a00,12345678-1234-1234-1234-123456789abc" \ -- ble_mcp

Enable all plugins

claude mcp add ble -e BLE_MCP_PLUGINS=all -- ble_mcp

Enable specific plugins only

claude mcp add ble -e BLE_MCP_PLUGINS=sensortag,hello -- ble_mcp

Debug logging

claude mcp add ble -e BLE_MCP_LOG_LEVEL=DEBUG -- ble_mcp

Add to VS Code / Copilot

Add to your project's .vscode/mcp.json (or create it):

{

"servers": { "ble": { "type": "stdio", "command": "ble_mcp", "args": [], "env": { "BLE_MCP_ALLOW_WRITES": "true", "BLE_MCP_PLUGINS": "all" } } } }

Adjust env to match your needs — remove BLE_MCP_ALLOW_WRITES for read-only mode, or set BLE_MCP_PLUGINS to specific plugin names.

Add to Cursor

Add to your project's .cursor/mcp.json (or create it):

{

"mcpServers": { "ble": { "command": "ble_mcp", "args": [], "env": { "BLE_MCP_ALLOW_WRITES": "true", "BLE_MCP_PLUGINS": "all" } } } }

Environment variables

VariableDefaultDescription
BLE_MCP_ALLOW_WRITESdisabledSet to true, 1, or yes to enable ble.write.
BLE_MCP_WRITE_ALLOWLISTemptyComma-separated UUID allowlist for writable characteristics (checked only when writes are enabled).
BLE_MCP_PLUGINSdisabledPlugin policy: all to allow all, or name1,name2 to allow specific plugins. Unset = disabled.
BLE_MCP_LOG_LEVELWARNINGPython log level (DEBUG, INFO, WARNING, ERROR). Logs go to stderr.
BLE_MCP_TRACEenabledJSONL tracing of every tool call. Set to 0, false, or no to disable.
BLE_MCP_TRACE_PAYLOADSdisabledInclude value_b64/value_hex in traced args (stripped by default).
BLE_MCP_TRACE_MAX_BYTES16384Max payload chars before truncation (only applies when TRACE_PAYLOADS is on).
BLE_MCP_TOOL_SEPARATOR_Character used to separate tool name segments. Set to . if your client supports dots in tool names. Default changed to _ because most clients (Cursor, Claude Desktop) reject dots.
BLE_MCP_MAX_SESSIONS1Maximum concurrent MCP sessions (only meaningful for SSE and Streamable HTTP transports).
BLE_MCP_MAX_CONNECTIONS3Maximum active BLE connections per session.
BLE_MCP_MAX_SCANS5Maximum active scans per session.
BLE_MCP_MAX_SUBSCRIPTIONS_PER_CONN10Maximum notification subscriptions per connection.
BLE_MCP_AUTH_TOKENunsetPassword for OAuth approval page on HTTP transports. Required unless --no-auth is used. Ignored for stdio.

Tools

See Concepts for how everything fits together, and the Tools Reference for detailed input/output schemas.

CategoryTools
BLE Coreble_scan_start, ble_scan_get_results, ble_scan_stop, ble_connect, ble_disconnect, ble_connection_status, ble_discover, ble_mtu, ble_read, ble_write, ble_read_descriptor, ble_write_descriptor, ble_subscribe, ble_unsubscribe, ble_wait_notification, ble_poll_notifications, ble_drain_notifications
Introspectionble_connections_list, ble_subscriptions_list, ble_scans_list, ble_tasks_list, ble_tasks_cancel
Protocol Specsble_spec_template, ble_spec_register, ble_spec_list, ble_spec_attach, ble_spec_get, ble_spec_read, ble_spec_search
Tracingble_trace_status, ble_trace_tail
Pluginsble_plugin_template, ble_plugin_list, ble_plugin_reload, ble_plugin_load

Protocol Specs

Specs are markdown files that describe a BLE device's protocol — services, characteristics, commands, and data formats. They live in .ble_mcp/specs/ and teach the agent what a device can do beyond raw UUIDs and bytes.

Without a spec, the agent can still discover services and read characteristics. With a spec, it knows what the values mean and what commands to send.

You can create specs by telling the agent about your device — paste a datasheet, describe the protocol, or just let it explore and document what it finds. The agent generates the spec file, registers it, and references it in future sessions. You can also write specs by hand.

See Concepts for details on spec format and how the agent uses them.


Plugins

Plugins add device-specific shortcut tools to the server. Instead of the agent composing raw read/write sequences, a plugin provides high-level operations like sensortag.read_temp or ota.upload_firmware.

The agent can also create plugins (with your approval). It explores a device, writes a plugin based on what it learns, and future sessions get shortcut tools — no manual coding required.

To enable plugins:

# Enable all plugins

claude mcp add ble -e BLE_MCP_PLUGINS=all -- ble_mcp

Enable specific plugins only

claude mcp add ble -e BLE_MCP_PLUGINS=sensortag,ota -- ble_mcp

Editing an already-loaded plugin only requires ble_plugin_reload — no restart needed.

Background tasks

Plugins can start background asyncio tasks for continuous monitoring — periodic scans, data collection loops, etc. The plugin template includes commented examples for this pattern.

Background tasks are registered with the server via state.register_task(name, task), making them visible to the agent:

  • ble_tasks_list — shows all running background tasks with status
  • ble_tasks_cancel — stops a task by ID (safety net for runaway tasks)
Plugin notifications

Plugins can send MCP log notifications to the client via state.on_log_cb(level, message). This allows plugins

Only the beginning is shown; read the rest in the repo