Smart Appliance MCP
Discovery and control of Google TV / Android TV devices via the google_tv_remote adapter, including pairing, remote controls, app launch probing, and companion integration.
Adapter-driven routing for devices discovered through Home Assistant, allowing control and state retrieval for connected appliances.
Discovers Roku TVs and streaming devices over SSDP and controls them via Roku's External Control Protocol (ECP).
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., "@Smart Appliance MCP Discover my smart appliances"
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.
Smart Appliance MCP
An MCP server that lets any MCP-capable LLM client discover and control smart appliances on the local network.
The important design choice is adapter-driven routing:
discover_devicesscans with every registered adapter.Each discovered device stores its
provider.Later calls use only
deviceId; the server looks up the device and routes the command to the adapter found during discovery.
That keeps client prompts simple. The LLM client does not need to know whether a TV is Roku, Home Assistant, Samsung, LG, Matter, or something else.
Tools
discover_devices: finds appliances and remembers them for this server session.diagnose_discovery: explains discovery state and likely network blockers without asking users to edit technical config.list_known_devices: returns devices already found.get_device_controls: shows available capabilities for one device.discover_apps: probes app launch targets exposed by a discovered media device.search_apps: searches discovered apps by name, package id, category hints, and launchability.pair_device: starts one-time consumer pairing when a provider requires it.complete_pairing: completes pairing with the code shown on the appliance.list_pairings: lists locally stored pairings.remove_pairing: removes a locally stored pairing.control_device: performs actions such as volume, navigation, power, search, and app launch.search_content: searches installed apps or native content providers when supported.suggest_content: returns adapter-aware viewing suggestions.record_watch_event: remembers watched, liked, dismissed, or started content.list_watch_history: shows the recent local watch history used by recommendations.recommend_content: ranks what to watch next by category, freshness, app, watch history, and app launchability.get_device_state: returns state when an adapter supports it.
Related MCP server: MCP Roku Control
Included Adapters
roku: discovers Roku TVs and Roku streaming devices over SSDP and controls them through Roku ECP.smart_appliance_companion: discovers the optional TV-side companion app over mDNS and uses it for installed app listing and package launch.google_tv_remote: discovers Google TV / Android TV devices through mDNS Google Cast signals and DIAL/SSDP, then models the normal remote-style pairing flow.home_assistant: optional broad appliance bridge for TVs, lights, switches, thermostats, and more.google_tv: optional ADB fallback for development/testing only. Enable withENABLE_ADB_ADAPTER=true.
Quick Start
npm install
npm run build
npm startFor local development:
npm run devClient Configuration
Build the project, then add a server entry like this to your MCP client:
{
"mcpServers": {
"smart-appliance": {
"command": "node",
"args": ["/absolute/path/to/smart-appliance-mcp/dist/index.js"]
}
}
}If you use Home Assistant, include:
{
"env": {
"HOME_ASSISTANT_URL": "http://homeassistant.local:8123",
"HOME_ASSISTANT_TOKEN": "your-long-lived-access-token"
}
}For Google TV / Android TV, use the consumer pairing flow. The server discovers the TV through local-network signals such as mDNS _googlecast._tcp.local and DIAL/SSDP, then carries the address internally on the discovered device record.
The intended user flow is:
Discover my smart appliances.
Pair my living room TV.
Complete pairing with code 123456.
Turn the TV volume up.Discovered Google TV devices use provider: "google_tv_remote". Pairing state is stored locally and routed through the same adapter registry as every other provider.
The Google TV remote adapter includes local discovery, consumer pairing, live remote controls, app launch probing, and adapter-routed command execution. The ADB adapter and GOOGLE_TV_REMOTE_DEVICES override remain available only as opt-in development diagnostics, not normal user setup.
App discovery is intentionally adapter-driven too. On Google TV, discover_apps probes launch surfaces the TV exposes locally, such as DIAL /apps/<name> endpoints. If the TV does not expose an installed app list through the consumer remote or DIAL interfaces, the server reports that clearly instead of pretending a guessed package name or browser URL is a discovered app launch path.
For the best Google TV experience, install the optional companion app from companion/google-tv. The companion runs on the TV, advertises _smart-appliance._tcp.local, lists installed Leanback launcher apps with Android PackageManager, and launches apps locally by package name. This is the normal-user path for apps like Crunchyroll that do not expose DIAL launch endpoints.
Recommendations
The recommendation layer is local-first and adapter-aware:
Adapter watch history is used first when the discovered device can provide it.
record_watch_eventstores lightweight local fallback history, including app, title, categories, progress, and status.recommend_contentmerges TV-sourced history, local fallback history, a provided content catalog, and starter rows.Results are scored for freshness, category overlap with recent viewing, app availability, launchability, and seen/dismissed state.
The response separates fresh
recommendationsfromalreadyWatchedanddismissedmatches.Each recommendation includes
userSummary/userReasonsfor clean user-facing answers, plus detailed fields for internal planning.Actionable recommendation rows include artwork and actions:
artwork.thumbnailUrl,posterUrl, andbackdropUrlfor images.actions.previewfor trailers or preview clips when a catalog suppliespreviewUrl/trailerUrl.actions.primaryas the one-click watch action, expressed as an MCP tool call payload.
chatCardsandformat_recommendation_cardsrender the same results for chat clients:Images are included only when the catalog supplies title-specific artwork.
Preview links use normal web URLs.
Watch/search links use
mcp://action?...URLs that describe the MCP tool call for the host client to confirm and execute.
If the current adapter cannot provide TV watch history, list_watch_history, recommend_content, and format_recommendation_cards return an optional companionPrompt. Google TV's consumer remote protocol does not expose private per-app streaming history, so exact content history requires a provider integration or an optional TV-side companion source.
Provider catalogs change constantly, so production clients should pass fresh catalog rows into recommend_content from a provider integration, search connector, or user-owned media source. The MCP does not claim live Netflix/Crunchyroll catalogs unless an adapter or connector supplies them.
Frontend Watch Queue
Run a local UI for actionable recommendations:
npm run uiOpen http://localhost:5177. The UI renders MCP recommendation output as cards with artwork, preview, one-click watch actions, filtering, search, and an already-watched panel. Use the {} button to paste a recommend_content response from any LLM client.
For chat-native cards, call format_recommendation_cards with the same inputs as recommend_content. It returns cards plus Markdown, using links instead of buttons. By default, links point at the local UI action endpoint, so keep npm run ui running:
[Watch on TV](http://127.0.0.1:5177/api/actions/run?payload=...)Use linkMode: "mcp_scheme" if a host client supports mcp://action?... links directly.
Example Tool Flow
First ask the client:
Discover my smart appliances.Then:
Turn the living room TV volume up.The MCP server handles the routing internally:
const device = registry.getDevice(deviceId);
const adapter = registry.adapterFor(device);
await adapter.control(device, request);Adding a New Adapter
Create a class that implements SmartApplianceAdapter:
export class SamsungTizenAdapter implements SmartApplianceAdapter {
readonly id = "samsung_tizen";
readonly label = "Samsung Tizen TV";
async discover(options: DiscoveryOptions): Promise<SmartDevice[]> {
return [];
}
async control(device: SmartDevice, request: ControlRequest) {
return { ok: true };
}
}Then register it in src/index.ts:
registry.register(new SamsungTizenAdapter());Discovery remains the source of truth. Once a Samsung TV is discovered with provider: "samsung_tizen", all future commands for that deviceId route to the Samsung adapter automatically.
Notes
Local-network discovery depends on your network allowing multicast/SSDP.
Some TV ecosystems require pairing before control; those adapters should expose a pairing flow as an MCP tool or resource.
Content recommendations are adapter-aware but can be made stronger by combining device capabilities with the host LLM client's taste/profile context.
Available Tools
18 toolscomplete_pairingA
Complete consumer pairing for a discovered device using the code shown by the appliance.
Inputs: code (required), deviceId (required).
control_deviceD
Control a discovered device. The server routes the command through the adapter found during discovery.
Inputs: action (required), deviceId (required), value, payload.
diagnose_discoveryA
Explain current discovery state and next checks without asking users for technical setup.
Inputs: no named parameters.
discover_appsC
Probe app launch targets exposed by a discovered media appliance.
Inputs: deviceId (required).
discover_devicesB
Discover smart appliances on the local network and remember their provider adapter.
Inputs: timeoutMs.
format_recommendation_cardsC
Format recommendations as chat-renderable cards with preview links and MCP action links instead of buttons.
Inputs: deviceId (required), apps, mood, limit, +7 more.
get_device_controlsB
Return available controls for a discovered device.
Inputs: deviceId (required).
get_device_stateA
Return current state for a discovered device when the discovered adapter supports it.
Inputs: deviceId (required).
list_known_devicesA
List devices discovered during this MCP server session.
Inputs: no named parameters.
list_pairingsA
List locally stored consumer pairings.
Inputs: no named parameters.
list_watch_historyC
List recent watch history from the TV adapter when available, merged with local MCP history.
Inputs: limit, deviceId.
pair_deviceA
Start consumer pairing for a discovered device when its provider supports pairing.
Inputs: deviceId (required).
recommend_contentB
Rank what to watch next using watch history, categories, freshness, apps, and discovered launchability.
Inputs: deviceId (required), apps, mood, limit, +7 more.
record_watch_eventA
Record watch activity so recommendations can avoid repeats and learn category/app preferences.
Inputs: title (required), appId, source, status, +4 more.
remove_pairingB
Remove a locally stored consumer pairing.
Inputs: deviceId (required).
search_appsA
Search all apps exposed by a discovered media appliance, including app names, package ids, categories, and launchability.
Inputs: deviceId (required), limit, query, onlyLaunchable.
search_contentB
Search content or installed apps on a discovered media appliance using its discovered adapter.
Inputs: query (required), deviceId (required).
suggest_contentB
Suggest content to watch based on a discovered media appliance and optional viewing prompt.
Inputs: deviceId (required), prompt.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools target a distinct action/resource (discovery, pairing, device control, media recommendations). Minor overlap exists between suggest_content and recommend_content, and between search_content and search_apps, but descriptions clarify different inputs and purposes.
All tools use a consistent snake_case verb-first naming convention (list_, discover_, get_, control_, pair_, search_, suggest_, etc.). No mixed styles or arbitrary names; resource nouns follow verbs predictably.
At 18 tools the surface is on the heavy side for a single server, covering several subdomains (discovery, pairing, media, device control). The tools are not redundant enough to cut, but the count is above the ideal 3-15 range.
The server covers the full pairing lifecycle and core discovery/control/media workflow with no dead ends. Minor gaps like explicit device forgetting or media playback commands are absent, but adapters likely make those device-specific.
Maintenance
Related MCP Connectors
Control Android TV from any AI. 38 MCP tools: playback, recap, recommend, smart-home, schedules.
Control your existing Philips lights, Sonos speakers, Roborock vacuums and other supported devices through Port OS cloud. Give ChatGPT, Claude and other MCP-compatible assistants access to the devices you connect. Turn off the living room lights, play music on your speakers, adjust the thermostat, run a vacuum in a room, check a camera snapshot or find a connected tracker. Available actions depend on your linked provider accounts and each device’s supported capabilities. Port OS runs in the cloud; no local server is required. You choose the account, device and capability permissions each assistant receives. Device operations require user OAuth; public tool discovery does not grant device access. Port OS is in alpha. Setup: https://portoperatingsystem.com/docs/getting-started/ Support: https://portoperatingsystem.com/contact/
Give your AI agent the power to cast to your home TV and control an interactive canvas. By ArdaBot.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Related MCP Servers
- AlicenseBqualityAmaintenanceControl any smart TV with natural language — play Netflix/YouTube/Spotify by name, cast URLs, scene presets, multi-room audio, and multi-TV sync. Supports LG, Samsung, Android TV, Roku.2360MIT
- FlicenseAqualityDmaintenanceEnables AI assistants to control Roku TVs on the local network via natural language commands.6-
- AlicenseBqualityDmaintenanceEnables AI assistants to discover and control IoT devices on local networks and via Bluetooth LE.71MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to discover and control smart TVs on the local network, including power, volume, navigation, and app launching across multiple brands.MIT