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
関連サーバー
Ultra MCP SS
An MCP server for programmatic control of smartscreen.tv displays via HTTP and MCP commands, with YouTube integration.
CookUnity MCP Server
MCP server for meal delivery service. Browse menus, manage carts, confirm orders, skip/unskip deliveries, and view order history.
FinMCP
Lightweight TypeScript Finance MCP server wrapping Yahoo Finance APIs. Plug real-time financial data — stocks, options, crypto, earnings — into any AI assistant. No API key. Works via stdio, Docker, or HTTP.
Scrptly Video Generator
An Ai Video Agent that can generate professional and complex videos with simple prompts and context images.
Cinode
Give agents a view of people, projects, skills and assignments
Soccerdata MCP Server
Provides real-time football match information from the SoccerDataAPI using natural language.
İzmir Ulaşım
Access real-time public transportation data for the city of İzmir, allowing AI assistants to query routes and schedules.
Say MCP Server
A text-to-speech server using the macOS `say` command.
Alpaca Trading
Manage stock and crypto portfolios, place trades, and access market data via the Alpaca Trading API.
Android-Mobile-MCP
This MCP server enabling AI agents to control Android devices.