Amazon Music MCP Server
Enables control of Amazon Music playback through Claude Desktop via the Model Context Protocol. Users can play, pause, skip tracks, and search for music using natural language commands powered by browser automation.
README
Amazon Music MCP Server
Control Amazon Music playback through Claude Desktop using the Model Context Protocol.
Features
- ā¶ļø Play/Pause current track
- āļø Skip to next track
- š Search and play songs, artists, or albums
- šµ Works with any Amazon Music subscription
Prerequisites
- Python 3.10 or higher
- Google Chrome browser
- Amazon Music account
- Claude Desktop app
Installation
1. Install via pip (coming soon)
pip install amazon-music-mcp
2. Manual Installation
# Clone the repository
git clone https://github.com/mk-8/amazon-music-mcp.git
cd amazon-music-mcp
# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install -e .
Setup
1. Configure Claude Desktop
Add this to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"amazon-music": {
"command": "python",
"args": ["-m", "amazon_music_mcp"]
}
}
}
Or if using manual installation:
{
"mcpServers": {
"amazon-music": {
"command": "/path/to/your/.venv/bin/python",
"args": ["/path/to/amazon-music-mcp/server.py"]
}
}
}
2. Start Chrome with Remote Debugging
macOS/Linux:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--remote-debugging-port=9222 \
https://music.amazon.com &
Windows:
"C:\Program Files\Google\Chrome\Application\chrome.exe" ^
--remote-debugging-port=9222 ^
https://music.amazon.com
3. Restart Claude Desktop
Completely quit and restart Claude Desktop for changes to take effect.
Usage
Once configured, you can ask Claude to control your music:
- "Play the current track"
- "Pause the music"
- "Skip to the next track"
- "Search for and play Bohemian Rhapsody"
- "Play songs by Taylor Swift"
Available Commands
| Command | Description |
|---|---|
play |
Resume playback |
pause |
Pause current track |
next_track |
Skip to next song |
search_and_play |
Search and play by artist, song, or album |
Troubleshooting
Chrome Connection Issues
Make sure Chrome is running with remote debugging:
# Check if port 9222 is in use
lsof -i :9222 # macOS/Linux
netstat -ano | findstr :9222 # Windows
Server Not Appearing in Claude
- Verify the config file path is correct
- Check that Python path points to correct interpreter
- Restart Claude Desktop completely
- Check Claude Desktop logs for errors
Playwright/Browser Errors
- Ensure you're logged into Amazon Music
- Keep the Chrome window open
- Don't close the Amazon Music tab
Development
Running Tests
python3 test_server.py
Project Structure
amazon-music-mcp/
āāā amazon_music_mcp/
ā āāā __init__.py
ā āāā __main__.py
ā āāā server.py
ā āāā music.py
āāā pyproject.toml
āāā requirements.txt
āāā README.md
āāā LICENSE
āāā .gitignore
How It Works
- MCP server connects to Chrome via Chrome DevTools Protocol (CDP)
- Playwright automates the Amazon Music web interface
- Claude Desktop communicates with the server via MCP protocol
- Commands are translated to browser automation actions
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see LICENSE file for details
Support
- Report issues: GitHub Issues
- Documentation: Full Docs
Roadmap
- [ ] PyPI package publication
- [ ] Volume control
- [ ] Playlist management
- [ ] Current song information
- [ ] Queue management
- [ ] Support for Spotify, YouTube Music
- [ ] Windows/Linux testing
Author
Meet Kavathiya - @meetkavathiya
Acknowledgments
- Built with Model Context Protocol
- Browser automation by Playwright
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.