Gesher
Tools for controlling Shelly Gen2+ relays, plugs and lights over local HTTP RPC: listing configured devices and their roles, reading live status (on/off, watts, voltage, energy), and switching them on/off with an automatic hardware off-timer and enforced maximum runtime for boiler/heavy loads.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Gesher · גשר
English | עברית
The bridge between AI and your devices.
▶ Try it in a virtual home, no devices or install needed · npx gesher setup for your real home · Build it with us
Who it's for today: people comfortable with a terminal. Setup takes about 15 minutes with Node.js; Switcher devices also need Docker (see the table). Not yet a one-click app for everyone: the virtual home is the way to look around without installing anything.

In plain words: today every device has its own app: one for the water heater, one for the AC, one for the solar panels. With Gesher you tell an AI assistant what you want, in your own words, and it takes care of the devices for you, always within safety limits you set.
Think of a good maintenance team in a building. You say "make sure there's hot water tonight, but don't waste electricity," and they handle the rest. Gesher gives the AI that job, and it asks you before it does anything that matters.
For developers: an open source Model Context Protocol server that connects AI assistants (Claude, ChatGPT, Cursor, any MCP client) to the devices actually installed in homes, offices and workplaces: the water heater relay, the AC controller, the solar inverter on the roof, and more. It starts with the brands common in Israel, many of which are sold worldwide.
"When the solar panels produce more than the house uses, heat the boiler for 45 minutes." "It's 28° in the living room — cool it to 24 before I get home." "How much did the roof produce today?"
Every vendor has its own app. None of them talk to each other, and none of them talk to AI. This project is the one layer in between: one connector per vendor, one safety model for all of them, in English and Hebrew.
Supported devices
Category | Vendor | What you need | Status |
Boiler / heavy loads | Switcher (Touch, V2/V4, Mini, Power Plug) | Node.js + Docker (runs the community switcher_webapi bridge; Switcher has no official API) | ✅ tested on real devices (Touch, Power Plug) |
Split AC (any brand with an IR remote) | Switcher Breeze | Node.js + Docker (same bridge) | ✅ tested with an Electra AC |
Boiler / relays / lights | Shelly Gen2+ (Plus, Pro, Gen3) | Node.js only (local network) | 🧪 built from the official docs, not yet tested on a real device: testers wanted |
Split AC | Sensibo (Sky, Air, Air Pro) | Node.js + Sensibo API key | 🧪 built from the official docs, not yet tested on a real device: testers wanted |
Solar | SolarEdge | Node.js + API key and site id (read only) | 🧪 built from the official docs, not yet tested on a real device: testers wanted |
Central / VRF AC (Tadiran, Electra, Daikin…) | CoolAutomation | – | 🔜 planned |
Shutters | Somfy TaHoma | – | 🔜 planned |
Solar | Enphase, Sungrow, Huawei | – | 🔜 planned |
Gates & parking | PalGate | – | 🔜 planned (critical) |
Locks | Nuki, Yale | – | 🔜 planned (critical) |
Alarm | RISCO, Visonic | – | 🔜 planned (critical) |
Want your device here? See Adding a connector — it's one folder and one line of registration.
Related MCP server: ha-mcp
Safety first
Physical devices are not chat messages. Every call goes through the same pipeline, whatever the vendor:
flowchart LR
A[AI model] --> B{Loop guard}
B -- "same call 3x / min" --> X[Blocked]
B --> C{Permission}
C -- deny --> H[Tool hidden from model]
C -- ask --> D[User must confirm]
C -- allow --> E{Hard limits}
D --> E
E -- outside limits --> Y[Refused]
E --> F[Vendor API]Risk levels per tool.
read(temperatures, power) is allowed,write(switch the boiler, change the AC) asks the user first,critical(gates, locks, alarms) is denied by default — and can never be configured to run without confirmation.Hard limits the AI cannot override. Maximum boiler runtime (enforced with the Shelly's own hardware auto-off timer, so it switches off even if the server dies), allowed AC temperature range.
Loop protection. An agent repeating the same command (relay or compressor cycling) is stopped.
Secrets stay out of the model. API keys come from environment variables and are redacted from every error message.
Plans are visible. Each confirmation tells the user exactly which device and which values will change.
Honest state. Every status says where its on/off comes from:
measured(the device switches or meters the power),reported(the appliance reports itself) orassumed(the last infrared command). The AI never presents an assumption as fact.No switching by memory. Infrared AC controllers (Breeze, Sensibo) send the full state with every command. A settings change must say explicitly whether the AC is on or off, so "set it to 22" can never switch it off because of an outdated memory.
Languages
Bilingual from day one: English and Hebrew. Tool titles, confirmations, safety messages and errors appear in the language you choose ("language": "he" in the config). All text lives in one file per language (locales/<lang>/messages.tsv), checked automatically for missing keys, placeholders and gender-neutral Hebrew. Details: docs/I18N.md.
Quick start
Requires Node.js 22 or newer. Docker is needed only for Switcher devices: Docker Desktop runs the small community bridge Gesher talks to, because Switcher has no official API. Shelly, Sensibo and SolarEdge need nothing beyond Node.js. You set the bridge up once; after that it runs in the background and restarts with Docker, so there is nothing to open or manage day to day.
1. Set up (once):
npx gesher setupThe setup finds Switcher devices on your network, adds Shelly devices by IP address, asks for names, places and rooms, saves everything to ~/.gesher/config.json, and connects Gesher to Claude Desktop. Run it again any time to add devices.
2. Restart Claude Desktop (tray icon → Quit, then open it again) and ask: "What's the state of the boiler?" or "Open the Gesher panel".
One-click alternative: download gesher-<version>.mcpb from the latest release and double-click it; Claude Desktop installs it and asks for your config file (create it first with npx gesher setup).
Manual setup or building from source: docs/RUN-WINDOWS.md (step by step, with troubleshooting). A hand-written config.json (see Configuration below) works the same way: point GESHER_CONFIG to it.
Only connectors that have a section in config.json are enabled. Shelly and Switcher are reached on your local network, so Gesher must run on a computer in the same network as the devices.
Naming devices: sites, rooms, aliases
Every device can have a site, a room and aliases, in any language. The AI then understands requests like "turn on the AC in my office in Haifa" or "close the shutters in meeting room 4 in Tel Aviv":
{ "id": "haifa-ac", "name": "מזגן משרד", "aliases": ["office AC", "המזגן במשרד"], "site": "Haifa office", "room": "My office", … }gesher_list_devices lists every device of every brand by site and room. Every tool accepts a device's id, name or alias. Ids are unique across all devices; names and aliases only within a site: "My office" can exist at Home and in the Haifa office. Then "Haifa office / my office" (or "my office (Haifa office)") picks one, and a bare "my office" makes Gesher ask which place. A duplicate within one site stops Gesher at startup with a message naming it.
Configuration
{
"language": "he", // "en" (default) or "he"
"limits": { "boilerMaxMinutes": 90, "acMinTempC": 16, "acMaxTempC": 30 },
"policy": { "sensibo_*": "allow", "shelly_set_switch": "ask" }, // pattern -> allow | ask | deny
"connectors": {
"shelly": { "devices": [{ "id": "boiler", "name": "Dud shemesh", "host": "192.168.1.50", "role": "boiler" }] },
"sensibo": { "apiKey": "${SENSIBO_API_KEY}" },
"solaredge": { "apiKey": "${SOLAREDGE_API_KEY}", "siteId": "${SOLAREDGE_SITE_ID}" },
"switcher": { "bridgeUrl": "http://192.168.1.10:8000",
"devices": [{ "id": "dud", "name": "Dud shemesh", "type": "touch", "deviceId": "a1b2c3", "ip": "192.168.1.60", "role": "boiler" }] }
}
}Switcher setup (bridge, finding device ids): docs/connectors/switcher.md.
Tools
Shared tools work the same for every brand, so the AI learns three verbs, not eight tools per provider:
Tool | Risk | What it does |
| read | Its description already holds the list of your devices (one short line each), so the AI acts by name without calling it; call it for details ( |
| read | State of one or several devices, with |
| write | On/off for one or several devices (one confirmation for all); the answer includes the new state; |
| write | Any AC: on/off, mode, target °C, fan |
| read / write | Schedules stored on the device; once by default, repeating only when asked |
| write | Rename a device, move it to another place or room, set other names; or rename a place. Names that look like commands, code or instructions are refused. Saved to |
| read | The device panel (below); optional filters: place, room, provider, kind, one device, schedules |
Provider tools add what only one brand has (Switcher schedules, solar data). The full, always-current list with inputs and risk: docs/API.md (generated from the code).
What it costs: a chat starts with 9 tools, about 8,000 characters (roughly 2,000 tokens) for the demo home, its 6 devices included. "Turn on the light" is one call. The budgets are tested on every change (requirements). Since 0.5.3 the AI sees only these shared tools plus provider tools they don't cover; set "tools": "all" in config.json to also show every provider's own tools.
Device panel
Ask your AI to "open the Gesher panel", or pick panel from Gesher's prompts in the client's menu ("/" or "+" in Claude). Clients that support MCP Apps (Claude, ChatGPT, VS Code, Goose) show one clean view: a bordered block per place, rooms inside, on/off buttons. Where the client allows it, Float keeps the panel in a small window while you chat, and Full screen opens it large.
How sure is the state? A solid dot means measured on the device; a dashed ring means assumed (the last infrared command, which the AC can't confirm).
Same rules as the AI. Every click goes through the shared tools (
gesher_set_power): confirmation, safety limits, policy and the loop guard all apply. Devices you can't read are not shown; buttons you may not use are not shown.Only what you ask for: "panel for the Haifa office", "only Switcher", "the boiler's schedules". Chips at the top switch place or provider; each device that stores schedules has a Schedules link to list, add (once or on chosen days) and delete them.
English and Hebrew (right-to-left); follows the client's light or dark theme. Works without internet access from the panel itself.
Adding providers, devices and languages
Gesher grows by one protocol: know before you build. Each provider has a passport (structured facts the tests check against the code), a living knowledge file and recorded API answers in providers/. The steps, from research to published, and the rules for API changes and new languages: docs/ONBOARDING.md. Where each provider stands: npm run providers.
Roadmap
Next: simple and low-token. One spoken request should be one call, with fewer tools loaded into every chat, compact answers and clear errors, and no loss of safety. Requirements and budgets: docs/design/EFFICIENCY.md.
v0.1 — Shelly, Sensibo, SolarEdge, safety pipeline ✅
v0.2 — Switcher, English + Hebrew ✅ · v0.2.1: first real-device test, Windows guide, device optional when only one is configured · v0.2.2: Switcher schedules · v0.2.3: schedules verified on a real device; bridge time zone · v0.2.4: once by default (also for tomorrow), default duration 45 min · v0.2.6: Switcher Breeze AC · v0.2.7: honest state (
state_source), no AC switching by memory · v0.2.8: device names, aliases, sites and roomsv0.3 — CoolAutomation; solar-surplus water heater routine as a ready-made prompt; remote (Streamable HTTP) transport with authentication; Somfy, Enphase
v0.4 — Critical-category connectors (PalGate, locks, alarms) with mandatory confirmation and audit log
Hosted version — for people who don't want to run a server: managed credentials, multi-site, users and permissions (design), WhatsApp interface. Nothing to keep running at home; official cloud routes only (for example Shelly's Integrator API; Switcher only through a partnership). Unlike local control, it depends on the internet and the maker's cloud.
Works with code-executing agents (Code Mode)
Gesher is a standard MCP server, so agents that turn MCP tools into a code API (e.g. Cloudflare's Code Mode) can use it as is: one script can, for example, turn off every AC in a site. Tool descriptions become the documentation those agents read, so they are kept precise. Safety rules still apply to every call.
Known limitations
Stated plainly, so nobody finds out the hard way:
Same network only. Gesher reaches Switcher and Shelly devices on the local network of the computer it runs on. Home and office on different networks need a Gesher in each place; one assistant for both needs the hosted version.
No remote control yet. The hosted version will only use official routes (vendor cloud APIs or partnerships), never decoded vendor protocols or stored vendor passwords. For Switcher that means waiting for an official cloud route.
Switcher goes through a community bridge (the open source
switcher_webapi, built onaioswitcher, in Docker), not an official Switcher API. One bridge address per configuration.Infrared ACs can't report their state. Gesher shows it as assumed and never switches them based on memory.
Verified on real devices: Switcher Touch, Breeze and Power Plug. Built against the official docs, not yet verified: Shelly, Sensibo, SolarEdge (help us test).
Schedules: Switcher only so far. Automatic deletion of a one-time schedule needs Gesher running at that time; otherwise it is deleted at the next check.
Secrets: keep the Sensibo and SolarEdge API keys in the Gesher extension's settings in Claude Desktop (your system's secure storage) and write
"apiKey": "${SENSIBO_API_KEY}"inconfig.json; Running from source or npx, use Varlock (encrypted.env.local, schema in.env.schema). Gesher warns when a key sits inconfig.jsonas plain text. Details: SECRETS.md.Cryptography: cloud API keys travel over Node's TLS, which uses the post-quantum hybrid key exchange (X25519MLKEM768) when OpenSSL is 3.5 or later and the vendor supports it; Gesher warns at startup otherwise. Local links to Switcher and Shelly are plain HTTP on your own network. Details and rules: CRYPTOGRAPHY.md.
Security audits and reporting: every change to safety, connectors, secrets or setup gets a security review, and every minor release a full adversarial audit with Cloudflare's open source security-audit skill (SECURITY-AUDIT.md). Found a vulnerability? Report it privately: SECURITY.md.
The panel needs a client that supports MCP Apps; the floating window appears only where the client offers it.
Providers' own tools and remote links. Some links between an assistant and your computer drop an argument named
device. Gesher's shared tools usetargetinstead (since 0.5.4); the providers' own tools, shown only with"tools": "all", still saydeviceand may fail through such a link.
Vision
Voice and AI are becoming the remote control for everything. People will ask, not tap through five apps. Gesher is the layer that lets any assistant reach any device safely: one onboarding protocol per brand, shared commands for every brand, honest state, hard limits, and Hebrew as a first-class language. It starts with the devices in Israeli homes and grows with every builder who adds one more.
Build it with us
Gesher is open source and looking for builders. Human or AI-assisted, every contribution is judged by the same rules (AGENTS.md).
Own a device? Test it in 15 minutes and send a report: docs/TESTING.md. Your name goes into the provider's passport.
Know a brand's API? Onboard it step by step: docs/ONBOARDING.md. Electra, Tadiran, Tuya, Sonoff and Nisko Smart are open. Research questions waiting: does Nisko Smart have an official API (or run on Tuya)? Does Shelly's official API let us lock a switch's physical button (for Shabbat, or children alone in a room)?
Speak another language? Add or review one: docs/I18N.md. Arabic and Russian would mean a lot here.
Work at a device maker? Official cloud access makes this safer for your customers. Let's talk.
Looking for a first task? See the help wanted issues.
Contributing
Contributions are welcome, especially connectors and Hebrew reviews. Read CONTRIBUTING.md, docs/CONNECTOR_GUIDE.md and, for AI-assisted work, AGENTS.md. Please open an issue first to claim a vendor so two people don't build the same connector.
Disclaimer
This software controls physical equipment, including high-load electrical devices. Use it at your own risk, keep the safety limits conservative, and never use it as the only protection for safety-critical systems. Not affiliated with any of the vendors listed.
License
Apache 2.0 © Yonatan Langer
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote MCP server to control your Android phone from AI assistants with per-app permissions.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Free MCP server for AI agents: Python/JS sandbox, file-to-markdown, speech-to-text.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAn MCP server and Home Assistant add-on that enables AI assistants to manage smart homes by creating automations, designing dashboards, and interacting with entities. It features native access to Home Assistant APIs, built-in Git versioning for safe rollbacks, and full management of HACS integrations.662MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI assistants to control Home Assistant via natural language, including device control, automation management, and system configuration.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI assistants real-time access to your homelab infrastructure. It enables querying node status, managing Docker containers, controlling Proxmox VMs, and inspecting OPNsense firewall state through natural conversation.2MIT
- AlicenseAqualityCmaintenanceA self-hosted MCP server for Home Assistant that exposes full control over entity states, service calls, history, templates, and areas via local stdio, enabling AI assistants to manage your smart home.9MIT