Skip to main content
Glama

search_artists

Search Spotify for artists by name, genre, or keywords to discover new music, find specific performers, or explore talent for playlists and collaborations.

Instructions

Search for artists using names, genres, or keywords to discover new music and talent.

🎯 USE CASES: β€’ Finding artists when you only remember partial names β€’ Discovering artists within specific genres or styles β€’ Locating emerging or independent artists β€’ Building diverse playlists with multiple artists β€’ Researching artists for events or collaborations

πŸ“ WHAT IT RETURNS: β€’ Ranked artist results based on search relevance β€’ Artist names, images, and genre classifications β€’ Popularity scores and follower counts β€’ Links to explore each artist's catalog β€’ External URLs and social media links

πŸ” EXAMPLES: β€’ "Search for 'jazz pianist' artists" β€’ "Find artists named 'John'" β€’ "Look for 'indie rock' bands" β€’ "Search for artists from 'Nashville'" β€’ "Find 'female rapper' artists"

πŸ’‘ SEARCH STRATEGIES: β€’ Use genre keywords: "progressive metal", "folk acoustic" β€’ Include location: "Seattle grunge", "Detroit techno" β€’ Try instrument-specific searches: "saxophone", "violin" β€’ Use descriptive terms: "soulful", "experimental", "classical"

⚠️ REQUIREMENTS: β€’ Valid Spotify access token β€’ Meaningful search keywords for best results

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYesSpotify access token for authentication
queryYesSearch query for artists (artist name, keywords)
limitNo

Implementation Reference

  • Core handler function that executes the Spotify API search for artists using the /search endpoint with type='artist'.
    async searchArtists( token: string, query: string, limit: number = 20 ): Promise<SearchResult> { const params = { q: query, type: "artist", limit: Math.min(limit, 50), }; return await this.makeRequest<SearchResult>("search", token, params); }
  • MCP tool definition and registration for 'search_artists', including title, description, input schema using commonSchemas, and handler wrapper that calls SpotifyService.searchArtists.
    search_artists: { title: "Search Artists", description: `Search for artists using names, genres, or keywords to discover new music and talent. 🎯 USE CASES: β€’ Finding artists when you only remember partial names β€’ Discovering artists within specific genres or styles β€’ Locating emerging or independent artists β€’ Building diverse playlists with multiple artists β€’ Researching artists for events or collaborations πŸ“ WHAT IT RETURNS: β€’ Ranked artist results based on search relevance β€’ Artist names, images, and genre classifications β€’ Popularity scores and follower counts β€’ Links to explore each artist's catalog β€’ External URLs and social media links πŸ” EXAMPLES: β€’ "Search for 'jazz pianist' artists" β€’ "Find artists named 'John'" β€’ "Look for 'indie rock' bands" β€’ "Search for artists from 'Nashville'" β€’ "Find 'female rapper' artists" πŸ’‘ SEARCH STRATEGIES: β€’ Use genre keywords: "progressive metal", "folk acoustic" β€’ Include location: "Seattle grunge", "Detroit techno" β€’ Try instrument-specific searches: "saxophone", "violin" β€’ Use descriptive terms: "soulful", "experimental", "classical" ⚠️ REQUIREMENTS: β€’ Valid Spotify access token β€’ Meaningful search keywords for best results`, schema: createSchema({ token: commonSchemas.token(), query: commonSchemas.searchQuery("artists (artist name, keywords)"), limit: commonSchemas.limit(1, 50, 20), }), handler: async (args: any, spotifyService: SpotifyService) => { const { token, query, limit = 20 } = args; return await spotifyService.searchArtists(token, query, limit); }, },
  • Aggregates artistTools (containing search_artists) into allTools registry used by ToolRegistrar for MCP tool exposure.
    ...artistTools,
  • Input schema definition for search_artists tool using createSchema from common schemas.
    schema: createSchema({ token: commonSchemas.token(), query: commonSchemas.searchQuery("artists (artist name, keywords)"), limit: commonSchemas.limit(1, 50, 20), }),

Latest Blog Posts

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