get_artist
Retrieve detailed artist information from Spotify including biography, genres, popularity metrics, and related artists for music research and discovery.
Instructions
Get comprehensive information about any artist including their biography, genres, and popularity metrics.
🎯 USE CASES: • Research artist background before concerts or festivals • Build artist-focused playlists with complete discography knowledge • Discover artist genres and influences for music recommendations • Analyze artist popularity trends and follower growth • Create detailed artist profiles for music databases
📝 WHAT IT RETURNS: • Artist name, biography, and profile images • Genre classifications and musical styles • Spotify popularity score and follower count • External URLs (official website, social media) • Related artist suggestions and collaborators
🔍 EXAMPLES: • "Get information about Taylor Swift" • "Show me details for artist ID: 06HL4z0CvFAxyc27GXpf02" • "I want to learn about this new artist I discovered" • "Get profile info for the band that sang this song"
💡 TIPS: • Use before exploring an artist's full catalog • Great for understanding an artist's evolution over time • Check follower count to gauge current popularity
⚠️ REQUIREMENTS: • Valid Spotify access token • Artist must exist in Spotify's database
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Spotify access token for authentication | |
| artistId | Yes | Spotify artist ID or URI |
Implementation Reference
- src/mcp/tools/artists.ts:41-44 (handler)The handler function that executes the get_artist tool logic, delegating to SpotifyService.getArtist
handler: async (args: any, spotifyService: SpotifyService) => { const { token, artistId } = args; return await spotifyService.getArtist(token, artistId); }, - src/mcp/tools/artists.ts:37-40 (schema)Input schema for the get_artist tool, defining required token and artistId parameters
schema: createSchema({ token: commonSchemas.token(), artistId: commonSchemas.spotifyId("artist"), }), - src/spotify.ts:378-381 (helper)SpotifyService.getArtist helper method that performs the actual API request to Spotify for artist data
async getArtist(token: string, artistId: string): Promise<SpotifyArtist> { const id = this.extractId(artistId); return await this.makeRequest<SpotifyArtist>(`artists/${id}`, token); } - src/mcp/tools/index.ts:22-36 (registration)Registration of artistTools (including get_artist) into the central allTools registry used by ToolRegistrar
export const allTools: ToolsRegistry = { ...albumTools, ...artistTools, ...trackTools, ...playlistTools, ...playbackTools, ...userTools, ...searchTools, }; - src/mcp/server.ts:14-14 (registration)Instantiation of ToolRegistrar in MCP server, which registers all tools including get_artist for MCP usage
const toolRegistrar = new ToolRegistrar(spotifyService);