Skip to content
Busy Meter

For developers

Build on your meter

Control your Busy Meter from your own code or an AI assistant. Everything goes through the Busy Meter app on your PC, so your camera, Teams and calendar keep working and you approve every program.

Local plugin API

  • Runs on your PC. The Busy Meter app for Windows hosts it on 127.0.0.1 only: HTTP and a WebSocket under /v1/. Nothing on other devices or the internet can reach it, and web pages in a browser are refused.
  • Off until you turn it on: Settings › Sources › External connections.
  • You approve each plugin. A program registers once and you click Allow in the Busy Meter tray. It can ask, never approve.
  • Levels are star counts 0–6 (0 = the lip only) and "flash" (red/blue). Each one lasts up to 600 seconds; refresh it to keep it. The app runs it through your level map, and the busiest source still wins.
  • Port: in %LOCALAPPDATA%\BusyMeter\plugin-api.json while the API listens (default 47820).
PUT /v1/signals HTTP/1.1
Host: 127.0.0.1:47820
Authorization: Bearer <token>
Content-Type: application/json

{"level": 4, "ttlSeconds": 600}

Show 4 stars for up to 10 minutes. The token comes from POST /v1/register once you click Allow. No Origin header, no query strings, JSON bodies only.

AI assistants (MCP)

Claude Desktop and Claude Code can read and set your level through the MCP server that comes with the app. No Python needed: open Settings › Sources › External connections › AI assistants and click Set up.

  • Tools: get_status, register_plugin, set_signals, set_level, clear.
  • Other MCP clients: add a stdio server named busymeter whose command is %LOCALAPPDATA%\BusyMeter\current\bm-mcp.exe, written out in full.

Go through the app. While the Busy Meter app runs, don't send commands to the meter's USB port or Wi-Fi address. The app keeps such a level as your manual level, which overrides your camera, Teams and calendar and skips the Allow step. A busy USB port is expected: the app is using it.

Python

The free busymeter package: a client (standard library only, Python 3.10+), the busymeter command and busymeter-mcp, a Python MCP server that can also start and configure recipes.

pip install --user busymeter          # client + command
pip install --user "busymeter[mcp]"   # also busymeter-mcp
from busymeter import BusyMeter

meter = BusyMeter("com.example.mytool")
meter.connect(name="My tool")        # first time: waits for Allow
meter.set_level(4, ttl_seconds=600)  # 0-6 stars or "flash"
meter.clear()

Or from a terminal: busymeter level 5 --for 10m, busymeter clear, busymeter status.

Recipes are small ready-to-run plugins built on the client:

For AI tools

A plain-text summary of the API, the MCP tools and the rules for agents, written for AI assistants to read. Point yours at it.

License

The plugin API spec, the Python client, busymeter-mcp and the recipes are MIT licensed. The Busy Meter app itself is not open source.