get_artist
Retrieve detailed artist information from Spotify, including biography, genres, popularity metrics, and external links, for research, playlist creation, and music 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 |
|---|---|---|---|
| artistId | Yes | Spotify artist ID or URI | |
| token | Yes | Spotify access token for authentication |
Implementation Reference
- src/mcp/tools/artists.ts:41-44 (handler)The MCP tool handler function for 'get_artist' that extracts token and artistId from args and delegates 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 definition for the 'get_artist' tool using createSchema for token and artistId parameters.schema: createSchema({ token: commonSchemas.token(), artistId: commonSchemas.spotifyId("artist"), }),
- src/mcp/tools/index.ts:22-36 (registration)Registration of all tools including artistTools (containing get_artist) into the central allTools registry used by ToolRegistrar.export const allTools: ToolsRegistry = { ...albumTools, ...artistTools, ...trackTools, ...playlistTools, ...playbackTools, ...userTools, ...searchTools, };
- src/spotify.ts:378-381 (helper)SpotifyService helper method that performs the actual API call to retrieve artist information from Spotify.async getArtist(token: string, artistId: string): Promise<SpotifyArtist> { const id = this.extractId(artistId); return await this.makeRequest<SpotifyArtist>(`artists/${id}`, token); }
- src/mcp/server.ts:14-14 (registration)Instantiation of ToolRegistrar with SpotifyService, which handles MCP tool definitions and execution for all registered tools including get_artist.const toolRegistrar = new ToolRegistrar(spotifyService);