Skip to content
LangChain

spotify for LangChain

io.github.markswendsen-code/spotify

MCP server for Spotify - let AI agents control playback, search music, and manage playlists

client:LangChain transport:stdio runtime:npm

Install spotify in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "spotify": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@striderlabs/mcp-spotify"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

spotify in other clients