Skip to main content
Glama

Spotify MCP Server

by latiftplgu

get_top_tracks

Retrieve your most listened-to Spotify tracks over specific time periods. Analyze listening habits, create personalized playlists, and track musical preference changes using detailed insights.

Instructions

Discover your most listened-to tracks based on actual listening history across different time periods.

🎯 USE CASES: • Understand your personal music listening patterns • Create "Year in Music" summaries and personal statistics • Build playlists based on your actual favorite songs • Share your top music with friends and social media • Track changes in musical preferences over time

📝 WHAT IT RETURNS: • Your most played tracks ranked by listening frequency • Track information with play count estimates • Time-period specific listening statistics • Artist and album information for top tracks • Insights into your musical preferences and habits

🔍 EXAMPLES: • "What are my top tracks this month?" • "Show my most listened songs of all time" • "Get my top 20 tracks from the last 6 months" • "What songs have I been playing on repeat recently?"

⏰ TIME PERIODS: • 'short_term' - Last 4 weeks of listening history • 'medium_term' - Last 6 months of musical activity • 'long_term' - All-time listening patterns and favorites • Compare across periods to see taste evolution

📊 LISTENING INSIGHTS: • Discover patterns in your music consumption • Identify your most-loved songs across different eras • Perfect for building "best of" personal playlists • Great for music discovery based on your actual preferences • Useful for understanding your musical identity

💡 PERSONAL ANALYTICS: • Track how your taste evolves over time • Identify seasonal listening patterns • Use for building recommendation systems • Share musical identity with others • Create data-driven personal playlists

⚠️ REQUIREMENTS: • Valid Spotify access token with user-top-read scope • Sufficient listening history for accurate results

Input Schema

NameRequiredDescriptionDefault
limitNo
timeRangeNomedium_term
tokenYesSpotify access token for authentication

Input Schema (JSON Schema)

{ "properties": { "limit": { "default": 20, "description": "", "maximum": 50, "minimum": 1, "type": "number" }, "timeRange": { "default": "medium_term", "description": "", "enum": [ "short_term", "medium_term", "long_term" ], "type": "string" }, "token": { "description": "Spotify access token for authentication", "type": "string" } }, "required": [ "token" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/latiftplgu/Spotify-OAuth-MCP-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server