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.getArtisthandler: 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 parametersschema: 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 dataasync 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 ToolRegistrarexport 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 usageconst toolRegistrar = new ToolRegistrar(spotifyService);