
一个强大的模型上下文协议(MCP)服务器,提供对 Spotify Web API 的访问。ArtistLens 实现了与 Spotify 音乐目录的无缝交互,包括曲目搜索,...
概览
一个强大的模型上下文协议(MCP)服务器,提供对 Spotify Web API 的访问。ArtistLens 支持与 Spotify 音乐目录的无缝交互,包括搜索曲目、专辑和艺术家,以及访问艺术家专属信息,如热门歌曲和相关艺术家。 通过Smithery自动安装Claude Desktop的ArtistLens: 添加到你的MCP设置文件中(例如,claude_desktop_config.json或cline_mcp_settings.json): 你需要提供你的Spotify API凭证:1. 访问Spotify开发者仪表盘 2.创建一个新应用 3.获取你的客户ID和客户机密 4.
概述(AI 翻译)
一个强大的模型上下文协议(MCP)服务器,提供对 Spotify Web API 的访问。ArtistLens 支持与 Spotify 音乐目录的无缝交互,包括搜索曲目、专辑和艺术家,以及访问艺术家专属信息,如热门歌曲和相关艺术家。
当前版本: 0.4.12
安装
通过Smithery安装
通过Smithery自动安装Claude Desktop的ArtistLens:
手动安装
你可以全局安装该软件包:
或者直接用NPX运行:
配置
添加到你的MCP设置文件中(例如,claude_desktop_config.json 或 [cline_mcp_settings.json):
您需要提供您的Spotify API凭证:
- 前往 Spotify 开发者仪表盘
- 创建一个新应用
- 获取您的客户ID和客户秘密
- 将它们添加到上述配置中
特色
- 搜索曲目、专辑、艺人和播放列表
- 获取艺人信息,包括热门曲目及相关艺人
- 获取专辑信息和曲目
- 访问新版本和推荐
- 获取具有市场特定内容和章节的有声书信息
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
ArtistLens
A powerful Model Context Protocol (MCP) server that provides access to the Spotify Web API. ArtistLens enables seamless interaction with Spotify’s music catalog, including searching for tracks, albums, and artists, as well as accessing artist-specific information like top tracks and related artists.
Current Version: 0.4.12
Installation
Installing via Smithery
To install ArtistLens for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @superseoworld/artistlens --client claude
Manual Installation
You can install the package globally:
npm install -g @thomaswawra/artistlens
Or run it directly with npx:
npx -y @thomaswawra/artistlens
Configuration
Add to your MCP settings file (e.g., claude_desktop_config.json or cline_mcp_settings.json):
{
"mcpServers": {
"spotify": {
"command": "npx",
"args": ["-y", "@thomaswawra/artistlens"],
"env": {
"SPOTIFY_CLIENT_ID": "your_client_id",
"SPOTIFY_CLIENT_SECRET": "your_client_secret"
},
"disabled": false,
"autoApprove": []
}
}
}
You’ll need to provide your Spotify API credentials:
- Go to Spotify Developer Dashboard
- Create a new application
- Get your Client ID and Client Secret
- Add them to the configuration as shown above
Features
- Search for tracks, albums, artists, and playlists
- Get artist information including top tracks and related artists
- Get album information and tracks
- Access new releases and recommendations
- Get audiobook information with market-specific content and chapters
- Note: Audiobook endpoints may require additional authentication or market-specific access
- Get and modify playlist information (name, description, public/private status)
- Access playlist tracks and items with pagination support
- Support for both Spotify IDs and URIs
- Automatic token management with client credentials flow
- Comprehensive test suite for all functionality
- Well-organized code with separation of concerns
Available Tools
get_access_token: Get a valid Spotify access tokensearch: Search for tracks, albums, artists, or playlistsget_artist: Get artist informationget_artist_top_tracks: Get an artist’s top tracksget_artist_related_artists: Get artists similar to a given artistget_artist_albums: Get an artist’s albumsget_album: Get album information
安装
npx -y @thomaswawra/artistlens配置
{
"mcpServers": {
"spotify": {
"command": "npx",
"args": ["-y", "@thomaswawra/artistlens"],
"env": {
"SPOTIFY_CLIENT_ID": "your_client_id",
"SPOTIFY_CLIENT_SECRET": "your_client_secret"
},
"disabled": false,
"autoApprove": []
}
}
}