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
Servidores relacionados
VoicingLab
Jazz piano voicing intelligence — 10,674 voicings across 468 chords in 16 styles, voice-leading solver, and practice recommendations
FatSecret
Server that connects Claude/Cursor to the FatSecret Platform API. Search foods, track your diet, manage recipes, and monitor weight directly from your AI assistant.
Overleaf MCP server
allow Tools like copilot, claude desktop, claude code etc. perform CRUD operations on overleaf projects via git int
Fun Generators
Connect Claude, GPT, and any MCP-compatible AI agent directly to FunGenerators.com. Generate names, insults, job titles, lorem ipsum, lottery numbers, and much more — all from a single tool call.
Skillbase/spm
npm for AI skills. Create, share, and discover reusable AI instructions for any model via MCP.
Fun Translations
Give your AI agent access to 150+ translators covering fictional languages, pop culture dialects, historical languages, technical encodings, and internet slang.
Earnings Feed
SEC filings and insider trades in real-time. 10-K, 10-Q, 8-K, Form 4, and company lookup.
Google Analytics 4 MCP
Connect GA4 to Claude or ChatGPT via Two Minute Reports MCP. Track New Users, Sessions, and Signups to improve website performance.
asterpay
EUR settlement for AI agents. USDC/EURC to EUR via SEPA Instant. Trust scoring (KYA 0-100), market data, crypto analytics, AI tools.
Payman API
Integrates with Payman AI's payment APIs to manage payees, payments, and balances using natural language.