MCP Media Player
Provides play and pause controls for Home Assistant media players (TV, projector, speaker, etc.), enabling automated playback control through Home Assistant's media player API.
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., "@MCP Media Player pause the living room TV"
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.
MCP Media Player
You could just watch one episode. Or you could automate the pause button and pretend you have self-control. MCP Media Player connects any Home Assistant media player (TV, projector, speaker, etc.) to the Cursor coding environment. Play media while your agent works; when it's done, so is your break.
Dopamine-driven development, minus the binge-watching.
Features
Exposes play and pause controls for a media player as MCP tools
Integrates with Home Assistant's media player API
Provides Cursor rules for automating playback while the agent is working
Related MCP server: MCP Home Assistant
Requirements
Node.js 18 or higher (for native fetch and ES modules)
A running Home Assistant instance
A valid Home Assistant long-lived access token
Setup
Clone the repository
Install dependencies
npm installConfigure MCP integration
Copy mcp.json.example to your MCP config location (e.g., ~/.cursor/mcp.json) and fill in your real values:
{
"mcpServers": {
"MediaPlayer": {
"command": "node",
"args": [
"/absolute/path/to/your/media-player-mcp.js"
],
"env": {
"HA_URL": "http://your-ha-url:8123",
"HA_TOKEN": "your_home_assistant_long_lived_token",
"ENTITY_ID": "media_player.your_media_player_entity"
}
}
}
}Add Cursor rules for automation
To automate the play/pause while the agent is working, copy the rules in cursor-rules.example into your Cursor rules configuration. This configures a system prompt rule that ensures the play/pause tools are called at the appropriate times.
Start the MCP server
npm startOr, let your MCP client launch it automatically.
License
MIT
Available Tools
2 toolspause_media_playerA
Pause the media player via Home Assistant.
Inputs: no named parameters.
play_media_playerA
Play/resume the media player via Home Assistant.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have completely distinct purposes: one pauses, one plays. There is no overlap or confusion.
Both tool names follow a consistent 'verb_noun' pattern (pause_media_player, play_media_player).
With only 2 tools, the set feels thin for a media player. While it's not extreme, it falls into the borderline range where more tools would be expected.
The tool surface is severely incomplete. A media player typically requires stop, skip, volume control, etc., which are all missing.
Maintenance
Related MCP Connectors
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Mac & Windows: let ChatGPT, Claude & Cursor use your email, calendar, iMessage, Teams, files.
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 gradedqualityCmaintenanceEnables natural language control of Home Assistant smart home devices through Cursor AI, supporting entity queries, automation management, configuration file editing, and system operations.365 npm58MIT
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to Home Assistant, enabling them to discover and control smart home entities, services, areas, devices, and cameras via the Model Context Protocol.4BSD 3-Clause
- FlicenseNot gradedqualityBmaintenanceConnects LLM coding agents to Home Assistant instances, enabling configuration file management, service calls, template testing, and automation diagnostics via MCP tools.2-