Confidential guide on numerology and astrology, based of GG33 Public information

Spotify-MCP-server
Un servidor de protocolo de control de medios para controlar la reproducción de Spotify
3 years
Works with Finder
1
Github Watches
0
Github Forks
0
Github Stars
Spotify MCP Server
A Media Control Protocol (MCP) server that provides a unified interface for controlling Spotify playback across different devices and applications.
Features
- Control Spotify playback (play, pause, skip, previous)
- Adjust volume
- Search for and play specific tracks, albums, or playlists
- Get current playback information
- RESTful API for easy integration with other applications
- AI Assistant integration for controlling Spotify with natural language
- Voice control interface for speaking commands to Spotify
Prerequisites
- Node.js (v16 or later)
- npm (v8 or later)
- Spotify Premium account
- Spotify Developer account and registered application
Setup
-
Clone this repository:
git clone https://github.com/Jopgood/spotify-mcp-server.git cd spotify-mcp-server
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory with the following content:CLIENT_ID=your_spotify_client_id CLIENT_SECRET=your_spotify_client_secret REDIRECT_URI=http://localhost:8888/callback PORT=8888 SESSION_SECRET=your_random_session_secret AI_WEBHOOK_API_KEY=your_secure_api_key_for_ai_assistant BRIDGE_PORT=3001 VOICE_PORT=3002
-
Register a Spotify application at Spotify Developer Dashboard and note your Client ID and Client Secret.
Usage
-
Start the MCP server:
npm start
-
Open a browser and navigate to
http://localhost:8888
to authenticate with Spotify. -
Once authenticated, you can use the API endpoints to control Spotify.
API Endpoints
-
GET /api/status
- Get current playback status -
POST /api/play
- Start or resume playback -
POST /api/pause
- Pause playback -
POST /api/next
- Skip to next track -
POST /api/previous
- Go to previous track -
POST /api/volume
- Set volume (body:{ "volume": 50 }
) -
POST /api/seek
- Seek to position (body:{ "position_ms": 30000 }
) -
POST /api/playTrack
- Play a specific track (body:{ "uri": "spotify:track:xxxx" }
)
Client Examples
Using curl
# Play
curl -X POST http://localhost:8888/api/play
# Pause
curl -X POST http://localhost:8888/api/pause
# Next track
curl -X POST http://localhost:8888/api/next
Using JavaScript (fetch)
// Play a specific track
fetch('http://localhost:8888/api/playTrack', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
uri: 'spotify:track:6rqhFgbbKwnb9MLmUQDhG6'
})
})
.then(response => response.json())
.then(data => console.log(data));
Command Line Interface
A command-line interface is included for controlling Spotify from the terminal:
# Run the CLI
node client/spotify-cli.js
# Available commands
status # Show current playback status
play # Start/resume playback
pause # Pause playback
next # Skip to next track
prev # Go to previous track
volume 50 # Set volume to 50%
search bohemian # Search for tracks with "bohemian" in the title
play-track spotify:track:xxxx # Play a specific track by URI
AI Assistant Integration
This MCP server includes an AI webhook that allows AI assistants like Claude to control your Spotify through natural language commands.
Setting up the Integration
-
Configure the webhook API key in your
.env
file:AI_WEBHOOK_API_KEY=your_secure_random_key
-
Start the Claude-Spotify bridge service:
node bridge/claude-spotify-bridge.js
-
The bridge will run on port 3001 by default. You can customize this by adding
BRIDGE_PORT=xxxx
to your.env
file.
Running Claude Spotify Commands
Use the provided client script to execute Claude's Spotify commands:
node client/claude-spotify-client.js "play bohemian rhapsody"
Supported Natural Language Commands
The AI webhook supports commands like:
- "Play Bohemian Rhapsody by Queen"
- "Play playlist chill vibes"
- "Pause the music"
- "Resume playback"
- "Skip to the next track"
- "Go back to the previous song"
- "Set volume to 50%"
- "Turn volume up"
- "Turn volume down"
- "What's currently playing?"
Voice Control
For hands-free operation, you can use the voice control interface to speak commands to Spotify.
Setting up Voice Control
-
Start the voice control server:
node speech/voice-server.js
-
Open a browser and navigate to
http://localhost:3002
to access the voice control interface. -
Make sure the bridge service is running:
node bridge/claude-spotify-bridge.js
-
Click the microphone button and speak your command, starting with "Claude" (e.g., "Claude, play some jazz music").
Browser Compatibility
The voice control interface uses the Web Speech API, which is not supported in all browsers. For best results, use:
- Google Chrome (recommended)
- Microsoft Edge
- Safari
Firefox has limited support for the Web Speech API and may not work as expected.
Customizing the Voice Trigger
You can change the trigger phrase from "Claude" to anything you prefer by:
- Going to the Settings section in the voice control interface
- Entering your preferred trigger phrase
- Clicking "Save Settings"
Your preferences will be saved in your browser for future sessions.
Running Everything at Once
To run the complete system (MCP server, bridge, and voice interface), you can:
-
Start each component in separate terminal windows:
# Terminal 1: Start MCP server npm start # Terminal 2: Start Claude bridge node bridge/claude-spotify-bridge.js # Terminal 3: Start voice interface node speech/voice-server.js
-
Or create a simple start script to run everything at once:
// Create a file called start-all.js in the root directory with: const { spawn } = require('child_process'); const mcp = spawn('npm', ['start'], { stdio: 'inherit' }); setTimeout(() => { const bridge = spawn('node', ['bridge/claude-spotify-bridge.js'], { stdio: 'inherit' }); const voice = spawn('node', ['speech/voice-server.js'], { stdio: 'inherit' }); }, 2000); // Usage: node start-all.js
Troubleshooting
-
"Port already in use" error:
- Change the port numbers in your
.env
file:PORT
,BRIDGE_PORT
,VOICE_PORT
- Change the port numbers in your
-
Authentication issues:
- Make sure you've visited the web interface at
http://localhost:8888
and authenticated with Spotify - Check that your Client ID and Secret are correct in
.env
- Make sure you've visited the web interface at
-
Voice control not working:
- Ensure you're using a compatible browser (Chrome recommended)
- Check that your microphone is working and has the necessary permissions
- Verify the bridge URL in the voice interface settings matches your bridge server address
-
"No active device" error:
- Start playing something in Spotify on any device, then try again
- Spotify requires an active device to control playback
Development
To run in development mode with automatic reloading:
npm run dev
License
MIT
相关推荐
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Take an adjectivised noun, and create images making it progressively more adjective!
Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease
I find academic articles and books for research and literature reviews.
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
Espejo dehttps: //github.com/agentience/practices_mcp_server
Espejo de https: //github.com/bitrefill/bitrefill-mcp-server
Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.
Un bot de chat de IA para equipos pequeños y medianos, que apoyan modelos como Deepseek, Open AI, Claude y Gemini. 专为中小团队设计的 ai 聊天应用 , 支持 Deepseek 、 Open ai 、 Claude 、 Géminis 等模型。
Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)
Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo
Reviews

user_zHOlA609
I'm thoroughly impressed with the spotify-mcp-server! Developed by Jopgood, this server seamlessly integrates media control protocols, making it an essential tool for managing Spotify. It's well-documented and easy to set up, thanks to the clear guidance provided on the GitHub page. The seamless interaction with Spotify's API really shines through, making it a must-have for any MCP application users. Highly recommend!