lg-tv-mcp
Click on "Install 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., "@lg-tv-mcpset volume to 50"
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.
lg-tv-mcp
עברית: מדריך למשתמש בעברית בהמשך העמוד ומדריך התקנה מלא ב־docs/client-installation-he.md.
A local MCP server that turns an AI assistant — Claude Code, Claude Desktop, ChatGPT Work, or any MCP client — into a remote control for LG webOS smart TVs.
Everything runs on your home network: a hand-rolled SSAP websocket client with first-run pairing, the webOS button-input socket, Wake-on-LAN power-on, and mDNS re-discovery when the TV's IP changes. No cloud APIs, no accounts, no telemetry.
Tools
Tool | What it does |
| Power, pairing state, current app, volume — no side effects |
| Wake-on-LAN magic packet; TV boots in ~15 s |
| Turn the TV off over SSAP |
| Set level 0–100, or mute/unmute |
| Remote buttons (arrows, OK, back, play/pause, digits…), with optional repeat |
| Enumerate and open apps (Netflix, YouTube, …) |
| Switch HDMI inputs |
| Change Live TV channels |
| Type into the focused text field |
| Toast message on the TV screen |
| 960×540 JPEG of the current screen (DRM-protected video captures as black; app UI renders fine) |
| Room loudness via the laptop microphone: approximate dB SPL + band (silent/quiet/moderate/loud/very-loud). Loop it with |
| One-time mic calibration against a phone SPL-meter reading; the offset persists in |
Related MCP server: Smartest-TV
Requirements
Node.js ≥ 22.13
An LG webOS TV on the same network as the machine running the server
For powering on while the TV is off: enable Settings → General → Turn on via Wi-Fi on the TV (wording varies by webOS version), and set your TV's MAC address in the config — see Configuration
ffmpegfor the sound-meter tools (brew install ffmpeg); macOS microphone permission is requested from the hosting app on first capture.
Install
Not yet on npm — install from a clone:
git clone https://github.com/OmerLapidot/lg-tv-mcp.git
cd lg-tv-mcp
npm ciClaude Code
claude mcp add lg-tv-remote --scope user -- node /absolute/path/to/lg-tv-mcp/server/index.jsClaude Desktop / any MCP client
{
"mcpServers": {
"lg-tv-remote": {
"command": "node",
"args": ["/absolute/path/to/lg-tv-mcp/server/index.js"]
}
}
}ChatGPT Work (desktop plugin)
npm run plugin:release builds dist/plugin/ with the plugin manifest, skill, and icon; the release runtime pins npx -y @omerlapidot/lg-tv-mcp@<version> (npm publish is a separate release step). Installation walkthrough (Hebrew): docs/client-installation-he.md.
First run — pairing
Turn the TV on with the physical remote (first time only) and ask the assistant something harmless like "what's the TV status?" —
get_statusworks unpaired.The first control call (volume, buttons, apps…) pops a pairing prompt on the TV screen. Accept it with the physical remote within a minute.
That's it — the TV issues a client key, saved locally. The prompt never appears again unless you revoke the pairing on the TV (Settings → General → External Devices → Connection Manager).
Configuration
State lives in a single JSON file (created and updated automatically):
macOS:
~/Library/Application Support/lg-tv-mcp/config.jsonWindows:
%APPDATA%\lg-tv-mcp\config.json
Field | Meaning |
| mDNS name tried when the last-known IP stops answering. |
| Last-known IPv4 of the TV. Auto-updated whenever discovery finds the TV at a new address. |
| The TV's Wi-Fi MAC, used only for Wake-on-LAN. The repo default is a placeholder — set your own (shown on the TV under Settings → Network → Wi-Fi Connection → Advanced) or |
| Pairing key issued by the TV on first approval; |
| Optional. dBFS→dB SPL offset stored by |
Environment overrides: LG_TV_DATA_DIR (config directory), LG_TV_URL (skip discovery and connect to a fixed ws:///wss:// URL — used to point at the fake TV in tests), LG_TV_REGISTER_TIMEOUT_MS (pairing prompt timeout).
Security notes
The client key works only from inside your LAN and can only control this TV; it contains no account credentials.
The TV serves SSAP and screen captures over TLS with a self-signed certificate, so certificate validation is intentionally disabled for those LAN-only connections.
Nothing leaves your network; there is no cloud relay.
Development
npm ci
npm test # full suite against an in-process fake TV — no hardware needed
npm run plugin:release # build dist/plugin for ChatGPT WorkLayout: server/ (config, discovery, SSAP client, input socket, Wake-on-LAN, MCP server), test/ (node:test suite plus test/fixtures/fake-tv.mjs, a scripted SSAP TV), skills/ (assistant-facing usage skill), docs/superpowers/ (original design spec and implementation plan).
Quirks worth knowing: the reported model string is a constant (LG 65NANO80VNA — the TV this was built for), and user-facing error messages are in Hebrew, since that's the household it serves. PRs welcome.
Why I built this
I wrote up how this was built and what it taught me: English · עברית
License
MIT © Omer Lapidot
שלט לטלוויזיה — עברית
תוסף מקומי שהופך את ChatGPT (או Claude) לשלט רחוק לטלוויזיית LG webOS ברשת הביתית: הדלקה וכיבוי, ווליום, פתיחת אפליקציות כמו נטפליקס ויוטיוב, החלפת כניסות HDMI, ערוצים, הקלדת טקסט, הודעות על המסך וצילום של מה שמוצג על המסך.
הכול מקומי. התקשורת היא ישירות מהמחשב לטלוויזיה ברשת הביתית (websocket מקומי + Wake-on-LAN). שום דבר לא עובר בענן.
התקנה
המדריך המלא: docs/client-installation-he.md. בקצרה:
מתקינים את התוסף שלט לטלוויזיה ביישום ChatGPT Work למחשב.
מפעילים מחדש את ChatGPT, פותחים משימה וכותבים: "מה מצב הטלוויזיה?".
בפקודת השליטה הראשונה יופיע על מסך הטלוויזיה חלון אישור — מאשרים פעם אחת עם השלט הפיזי, וזהו.
כדי שההדלקה מרחוק תעבוד, מפעילים בטלוויזיה את ההגדרה Turn on via Wi-Fi.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to control TVs on a local network through natural language commands. It currently supports Roku devices, allowing users to launch apps, manage playback, and navigate menus.5
- AlicenseAqualityBmaintenanceControl 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.2338MIT
- Alicense-qualityCmaintenanceEnables control of TV and air conditioner through natural language commands via Cursor or Claude Desktop.MIT
- AlicenseCqualityCmaintenanceAn MCP server for controlling LG webOS TVs via SSAP protocol, enabling AI clients to adjust settings, switch inputs, launch apps, and more.3716MIT
Related MCP Connectors
Control Android TV from any AI. 38 MCP tools: playback, recap, recommend, smart-home, schedules.
Let ChatGPT, Claude & Cursor use your Mac: email, calendar, iMessage, Teams, files. Local, free.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/OmerLapidot/lg-tv-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server