Skip to main content
Glama
universal-mcp

Spotify Universal MCP Server

Spotify Universal MCP Server

This repository contains an implementation of an Spotify Universal MCP (Model Context Protocol) server. It provides a standardized interface for interacting with Spotify's tools and services through a unified API.

The server is built using the Universal MCP framework.

This implementation follows the MCP specification, ensuring compatibility with other MCP-compliant services and tools.

Usage

You can start using Spotify directly from agentr.dev. Visit agentr.dev/apps and enable Spotify.

If you have not used universal mcp before follow the setup instructions at agentr.dev/quickstart

Related MCP server: spotify-mcp

Available Tools

The full list of available tools is at ./src/universal_mcp_spotify/README.md

Local Development

šŸ“‹ Prerequisites

Ensure you have the following before you begin:

  • Python 3.11+ (recommended)

  • uv (install globally with pip install uv)

šŸ› ļø Setup Instructions

Follow the steps below to set up your development environment:

  1. Sync Project Dependencies

    uv sync

    This installs all dependencies from pyproject.toml into a local virtual environment (.venv).

  2. Activate the Virtual Environment

    For Linux/macOS:

    source .venv/bin/activate

    For Windows (PowerShell):

    .venv\Scripts\Activate
  3. Start the MCP Inspector

    mcp dev src/universal_mcp_spotify/server.py

    This will start the MCP inspector. Make note of the address and port shown in the console output.

  4. Install the Application

    mcp install src/universal_mcp_spotify/server.py

šŸ“ Project Structure

.
ā”œā”€ā”€ src/
│   └── universal_mcp_spotify/
│       ā”œā”€ā”€ __init__.py       # Package initializer
│       ā”œā”€ā”€ server.py            # Server entry point
│       ā”œā”€ā”€ app.py            # Application tools
│       └── README.md         # List of application tools
ā”œā”€ā”€ tests/                    # Test suite
ā”œā”€ā”€ .env                      # Environment variables for local development
ā”œā”€ā”€ pyproject.toml            # Project configuration
└── README.md                 # This file

šŸ“„ License

This project is licensed under the MIT License.


Generated with MCP CLI — Happy coding! šŸš€

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    An MCP server for Spotify control and synchronized lyrics retrieval that enables playback management, queue navigation, and music search capabilities. It also features perception tools for real-time track analysis, including BPM, key detection, and timestamped lyrics.
    72 npm
    3
    Apache 2.0
  • A
    license
    Not graded
    quality
    F
    maintenance
    An MCP server that enables users to control Spotify playback, search for music, and manage playlists through MCP-compatible clients. It supports features like track recommendations and playback management using secure OAuth authentication.
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables interaction with Spotify through MCP, providing tools for searching tracks, artists, albums, playlists, and accessing user data like top tracks and recently played.
    -