connectors
Controls Android TVs, projectors, streaming boxes, and phones over ADB, exposing device state and actions for power, volume, media, navigation, apps, text, URL/search, screenshots, and guarded raw shell commands.
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., "@connectors pause the projector"
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.
connector-hub
One small local process that lets an AI agent control the devices in your home.
The agent talks to the hub over MCP (stdio) and sees six tools, no matter how many kinds of device you add. The hub finds devices on your network, keeps them connected, remembers them by hardware identity, and refuses to touch anything you have not approved. Support for a new kind of device is a drop-in folder (writing a driver).
Included driver: android_adb for Android TVs, projectors and streaming boxes with
network debugging enabled.
agent ──MCP──▶ hub ──▶ driver: android_adb ──▶ projector, TV box, ...
│──▶ driver: (yours) ──▶ ...
└── ~/.connectors/devices.json (identity, names, approval)Quick start
Requires Python 3.12+, uv, and for android_adb the Android
platform-tools (adb). On the device, enable Developer options → Network/wireless debugging.
git clone <this repo> && cd connectors
uv sync
uv run connectors scan # find devices on your network
uv run connectors approve android-0a1b2c3d4e5f --name projector
uv run connectors listThen register the hub with your MCP client (below) and ask your agent to "pause the projector".
Related MCP server: Android MCP
Registering with an MCP client
The server command is connectors serve (stdio). For the Claude Code CLI:
scripts/install.sh # runs: claude mcp add --scope user connectors -- <repo>/.venv/bin/connectors serve
scripts/install.sh --dry-run # only print the commandsFor any other client, add an entry equivalent to:
{ "mcpServers": { "connectors": { "command": "/path/to/connectors/.venv/bin/connectors", "args": ["serve"] } } }The hub lives as long as the client keeps it running; discovery and health checks run in the
background for that whole time. stdout carries only MCP; logs go to stderr and
~/.connectors/hub.log.
Tools
Tool | What it does |
| Every known device: id, friendly name, driver, reachable, approved, capabilities and their actions. |
| Awake/asleep, foreground app, now playing (title, playing/paused), volume. |
| Control the device using the shared vocabulary below. |
| Screenshot, returned as a downscaled JPEG image. |
| Raw escape hatch ( |
| Run discovery now. |
device is an id or a friendly name; matching is case-insensitive and forgiving
("the Projector", "proj").
Capability vocabulary
The same words mean the same thing on every device. A device supports a subset, listed by
devices().
Capability | Actions | Arguments |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Examples: act("projector", "media", "pause"),
act("projector", "volume", "set", {"level": 30}),
act("projector", "open", "search", {"query": "lofi beats", "app": "youtube"}).
Connections are the hub's job
The agent never connects, pairs or handles addresses.
Discovery runs in the background per driver.
android_adbre-probes remembered devices, then sweeps the local /24 for TCP 5555 (override withCONNECTORS_SUBNETS=10.0.0.0/24,...).Identity is a stable hardware id (the device's MAC address), not its IP. When DHCP moves a device, the hub finds it again and keeps its name and approval.
Health checks run every ~25 s, reconnecting with exponential back-off.
Every tool call first makes sure the device is connected, re-discovering it if needed. If that fails the agent gets a plain reason: "projector is not reachable on the network — it may be powered off, asleep or disconnected."
Safety
Approval. A newly discovered device is listed but unusable (
state,act,observeandrunall refuse) until you approve it from a terminal:connectors approve <id> --name <name>. The agent has no tool that can approve a device.Guarded
run. Commands matching a denylist of destructive patterns (factory reset / wipe, recursive delete, uninstalling or disabling apps, reboot,dd/mkfs, turning debugging or networking off, ...) are refused unless called withconfirm=true, and the tool description instructs the agent to get your spoken yes first. The list is insafety.py. It is a seat belt against mistakes, not a sandbox: treat an approved device as fully controllable by the agent.Risky actions. A driver can mark vocabulary actions as risky in its manifest;
actrefuses those withoutargs.confirm=true.Local only. The hub opens no listening ports. State lives in
~/.connectors/(override withCONNECTORS_HOME).
Network adb has no authentication beyond the device's own "Allow debugging?" prompt, so only enable it on a network you trust.
CLI
connectors serve run the MCP server on stdio
connectors scan discover devices now
connectors list show known devices
connectors approve <id> --name NAME allow the agent to use a device
connectors add <host:port> register a device discovery cannot see (a paired phone)
connectors forget <id> remove a deviceandroid_adb notes
adbis located onPATH, then$ANDROID_HOME/platform-tools, then common install paths.power.offandpower.sleepboth put the device in standby, so it can be woken again.media.seeksends fast-forward / rewind key presses; how far each one jumps is up to the app.open.searchuses deep links for apps that have one (YouTube, Netflix); with noappit tries the system search, then a web search.text.typehandles single-line ASCII.observeshows black where an app plays protected video.A device that shows "unauthorized" needs its on-screen debugging prompt accepted once.
Phones and tablets
A phone is one more android_adb device. Pair it once, then add it by address:
On the phone: Developer options → Wireless debugging → Pair device with pairing code.
On this computer:
adb pair <pairing address>and type the code.connectors add <IP address & port shown under Wireless debugging>, thenconnectors approve <id> --name phone.
Differences from a TV or projector:
Its port changes whenever Wireless debugging is switched back on. The hub follows it: it looks the phone up by hardware address and sweeps for the new port. After a phone reboot you still have to turn Wireless debugging on again yourself.
It gets the
touchcapability (tap, long press, swipe). Coordinates are fractions of the screen (0–1), so they match whatobservereturns at any size.It is
strict. Every rawruncommand needs the user's yes, not only destructive ones, and the agent is told to get a yes before anything that sends, calls, pays, deletes or installs. Taps cannot be classified mechanically, so that last rule relies on the agent and on your MCP client's own confirmation gate. Toggle withconnectors approve <device> --strict/--no-strict.
Pairing keys live in ~/.android, and the device registry in ~/.connectors (owner-only).
Neither belongs in this repository.
Adding a driver
Create a folder with a manifest.toml and a driver.py in ~/.connectors/drivers/ (or in
src/connector_hub/drivers/ to contribute it). See
docs/WRITING_A_DRIVER.md.
Development
uv run pytest # no device needed: a fake driver and a scripted adb
uv run ruff check . && uv run ruff format --check .
uv run mypyLicense
MIT
Available Tools
6 toolsactA
Control a device using the shared capability vocabulary.
device is a friendly name or id. capability and action come from this vocabulary (a
device supports the subset listed by devices); args is an object with the named arguments:
power: on (turn the device on); off (turn the device off); sleep (put the device into standby); wake (wake the device from standby)
volume: set (set volume; args: level (0-100)); up (volume up; args: steps (default 1)); down (volume down; args: steps (default 1)); mute (toggle mute)
media: play (resume playback); pause (pause playback); toggle (toggle play/pause); seek (seek relative; args: seconds (negative = back; approximate)); next (next item); previous (previous item); stop (stop playback)
navigate: up (d-pad up; args: times (default 1)); down (d-pad down; args: times); left (d-pad left; args: times); right (d-pad right; args: times); ok (select / enter); back (go back; args: times); home (go to the home screen); menu (open the menu)
apps: list (list launchable apps); open (open an app; args: app (name or package)); close (close an app; args: app (default: the foreground app))
text: type (type text into the focused field; args: text, enter (bool, default false))
touch: tap (tap the screen; args: x, y as fractions of the screen (0-1, top-left is 0,0)); long_press (press and hold; args: x, y (fractions), ms (default 800)); swipe (swipe; args: x1, y1, x2, y2 (fractions), ms (default 300))
open: url (open a URL; args: url, app (optional)); search (search for something; args: query, app (optional))
Actions listed under a device's risky_actions are refused unless the user has clearly said
yes and you pass args.confirm=true.
A device with strict: true is personal (a phone or tablet). On it, never complete anything
that sends a message, makes a call or payment, deletes data or installs an app without first
telling the user exactly what will happen and hearing their yes. touch coordinates are
fractions of the screen, so they match what observe shows whatever its size.
Examples: act("projector", "media", "pause"); act("projector", "volume", "set", {"level": 30});
act("projector", "apps", "open", {"app": "netflix"});
act("projector", "open", "search", {"query": "lofi beats", "app": "youtube"}).
Inputs: action (required), device (required), capability (required), args. Returns: object
devicesA
List every known device: id, friendly name, driver, whether it is reachable and approved, and its capabilities with their actions. Start here.
Inputs: no named parameters. Returns: result
observeA
Take a screenshot of the device's screen and return it as an image. Use it to see menus or check that an action worked. Protected video may appear black.
Inputs: device (required).
rescanA
Search the network for devices right now and return the updated device list. Use it when a device the user mentions is missing or shows as unreachable.
Inputs: no named parameters. Returns: object
runA
Escape hatch: run a raw command on the device and return stdout, stderr and exit code.
For android_adb devices the command runs as adb shell <command>. Use this only when act
cannot do the job. Commands that look destructive (factory reset / wipe, recursive delete,
uninstalling or disabling apps, reboot, dd / mkfs, turning debugging or the network off, ...)
are refused. Never pass confirm=true on your own initiative: first tell the user exactly what
the command will do, get their spoken "yes", and only then repeat the call with confirm=true.
On a device with strict: true every command needs that confirmation, not only destructive ones.
timeout is in seconds (max 120); long output is truncated.
Inputs: device (required), command (required), confirm, timeout. Returns: object
stateB
What a device is doing now: awake or asleep, foreground app, what is playing (title, playing/paused) and the volume, where the device can report them.
Inputs: device (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct facet: discovery (devices/rescan), structured state, action control, visual observation, and a raw escape hatch. Minor overlap exists between devices and rescan (both return device lists) and between state and observe (both inspect current device status), but the descriptions clarify when to use each.
All names are single lowercase words, but the set mixes nouns (devices, state) with verbs (act, observe, rescan, run), so there is no single predictable convention. It remains readable and intuitive, but not a consistent verb_noun pattern.
Six tools is well-scoped for a device-control server: discovery, rescan, state inspection, action, screenshot, and an escape hatch. Each tool has a clear, non-redundant role and earns its place.
The surface covers discovery, state, control (via a rich capability vocabulary), visual verification, and raw command fallback, which handles most workflows. Minor gaps remain around managing device approval/pairing and removing or forgetting devices, which the tools reference but do not expose.
Maintenance
Related MCP Connectors
MCP tool marketplace for AI agents: web, OSINT, security and research tools through one key.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control and monitor Home Assistant smart home devices through natural language interactions. Supports device control, entity state monitoring, history access, and automation generation with both MCP protocol and standalone HTTP REST API modes.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables full Android control from any AI agent via 7 MCP tools, including screen capture, touch interaction, app management, and system control.35 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control Home Assistant smart home devices via MCP, with zero external dependencies. Supports calling services, getting states, and looking up service parameters.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control Apple Home devices, scenes, and automations through MCP.38MIT