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 "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., "@MCP Media Playerpause 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
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
Configure MCP integration
Copy mcp.json.example to your MCP config location (e.g., ~/.cursor/mcp.json) and fill in your real values:
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
Or, let your MCP client launch it automatically.
License
MIT