MCP Media Player
Control a media player via Home Assistant.
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
npm install
- Configure 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 start
Or, let your MCP client launch it automatically.
License
MIT
관련 서버
GoldRush
Blockchain data across 100+ chains — wallet balances, token prices, transactions, DEX pairs, and more. REST API, real-time WebSocket with OHLCV price feeds, CLI, and x402 pay-per-request.
Public Data Portal Short-term Forecast
Provides current weather information using the Korea Meteorological Administration's short-term forecast API.
reachy-mini-mcp
Control the Reachy Mini robot (or simulator) from Claude, ChatGPT, or any MCP-compatible client.
F1 MCP Server
Provides advanced Formula 1 data analysis, including real-time telemetry, tire performance, weather prediction, and race strategy simulation.
Bitscale AI
B2B GTM Orchestration and Data Enrichment
Smart Home Device Control
Control smart home devices and query information by connecting large models to smart home backend APIs.
CS2 RCON MCP
A server for managing Counter-Strike 2 servers using the RCON protocol.
LinkedIn Ads MCP
Connect LinkedIn Ads to Claude or ChatGPT via Two Minute Reports MCP to get clear insights into campaign performance, impressions, CTR, CPC, leads, and conversions.
Smart-Thinking
An advanced MCP server for multi-dimensional, adaptive, and collaborative reasoning.
Agent Care
A healthcare MCP server for EMRs like Cerner and Epic, providing tools to interact with FHIR data and medical resources.