Amazon Music MCP Server

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.

Category
Visit Server

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

  1. Verify the config file path is correct
  2. Check that Python path points to correct interpreter
  3. Restart Claude Desktop completely
  4. 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

  1. MCP server connects to Chrome via Chrome DevTools Protocol (CDP)
  2. Playwright automates the Amazon Music web interface
  3. Claude Desktop communicates with the server via MCP protocol
  4. 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

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

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

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.

Official
Featured
Python
graphlit-mcp-server

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.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured