Audius MCP Server

Audius MCP Server

Model Context Protocol server for Audius. Contribute to glassBead-tc/audius-mcp development by creating an account on GitHub.

娱乐与媒体
访问服务器

README

Audius MCP Server

An MCP (Model Context Protocol) server that provides access to the Audius music platform via LLMs (Large Language Models).

Features

  • Tools: Query tracks, users, playlists, albums, and perform searches on Audius
  • Resources: Access track, user, playlist, and album data as resources
  • Prompts: Use prompt templates for music discovery and track analysis

Prerequisites

  • Node.js 16 or higher
  • An Audius API key (optional, but recommended for production use)

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/audius-mcp.git
cd audius-mcp
  1. Install dependencies:
npm install
  1. Build the TypeScript code:
npm run build

Configuration

Create a .env file in the root directory based on the provided .env.example:

# Audius API Configuration
AUDIUS_API_KEY=your_api_key_here
AUDIUS_API_SECRET=your_api_secret_here
AUDIUS_ENVIRONMENT=production # or staging, development

# MCP Server Configuration
SERVER_NAME=audius-mcp
SERVER_VERSION=1.0.0

Usage

Running the Server

Start the server:

npm start

For development with automatic rebuilding:

npm run dev

Connecting to Claude for Desktop

To use this server with Claude for Desktop:

  1. Install Claude for Desktop
  2. Open Claude's configuration: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
  3. Add the following configuration:
{
  "mcpServers": {
    "audius": {
      "command": "node",
      "args": [
        "/path/to/audius-mcp/build/index.js"
      ],
      "env": {
        "AUDIUS_API_KEY": "your_api_key_here",
        "AUDIUS_API_SECRET": "your_api_secret_here"
      }
    }
  }
}
  1. Restart Claude for Desktop

Available Tools

The server provides the following tools:

Track Tools

  • get-track: Get detailed track information by ID
  • search-tracks: Search for tracks with various filters
  • get-trending-tracks: Get trending tracks
  • get-track-comments: Get comments for a track

User Tools

  • get-user: Get user profile by ID
  • search-users: Search for users
  • get-user-tracks: Get tracks uploaded by a user

Playlist & Album Tools

  • get-playlist: Get playlist details
  • get-album: Get album details

Search Tools

  • search-all: Search across tracks, users, playlists, and albums

Resources

Access Audius data using these URI templates:

  • audius://track/{id}: Track details by ID
  • audius://user/{id}: User profile by ID
  • audius://playlist/{id}: Playlist details by ID
  • audius://album/{id}: Album details by ID

Prompts

Use these prompt templates for common music-related tasks:

  • discover-music: Get music recommendations based on genre, artist, and mood preferences
  • track-analysis: Analyze a track's characteristics and get insights

Development

Project Structure

├── src/
│   ├── index.ts          # Entry point
│   ├── server.ts         # MCP server setup
│   ├── config.ts         # Configuration handling
│   ├── sdk-client.ts     # Audius SDK client wrapper
│   ├── tools/            # MCP tool implementations
│   │   ├── tracks.ts     # Track-related tools
│   │   ├── users.ts      # User-related tools
│   │   ├── playlists.ts  # Playlist-related tools
│   │   └── search.ts     # Search-related tools
│   ├── resources/        # MCP resource implementations
│   │   ├── tracks.ts     # Track-related resources
│   │   ├── users.ts      # User-related resources
│   │   └── playlists.ts  # Playlist-related resources
│   └── prompts/          # MCP prompt implementations
│       ├── music-search.ts  # Music search prompts
│       └── track-info.ts    # Track info prompts

Testing

For local development testing:

  1. Install the MCP Inspector:
npm install -g @modelcontextprotocol/inspector
  1. Run the inspector with your server:
npx @modelcontextprotocol/inspector node ./build/index.js

License

MIT

推荐服务器

YouTube Transcript MCP Server

YouTube Transcript MCP Server

这个服务器用于获取指定 YouTube 视频 URL 的字幕,从而可以与 Goose CLI 或 Goose Desktop 集成,进行字幕提取和处理。

精选
Python
The Verge News MCP Server

The Verge News MCP Server

提供从The Verge的RSS feed获取和搜索新闻的工具,允许用户获取今日新闻、检索过去一周的随机文章,以及在最近的Verge内容中搜索特定关键词。

精选
TypeScript
MCP Spotify Server

MCP Spotify Server

通过 Spotify Web API 实现与 Spotify 音乐目录的交互,支持搜索、艺术家信息检索、播放列表管理和自动令牌处理。

精选
TypeScript
mcp-server-youtube-transcript

mcp-server-youtube-transcript

一个模型上下文协议服务器,可以从 YouTube 视频中检索文本记录。该服务器通过一个简单的界面直接访问视频的字幕和副标题。

精选
JavaScript
MCP-AppleMusic

MCP-AppleMusic

通过 MCP 命令,利用 AppleScript 来控制 macOS 上的 Apple Music,允许用户管理播放、搜索曲目和创建播放列表。

本地
Python
YouTube Music MCP Server

YouTube Music MCP Server

一个 MCP 服务器,允许 AI 模型通过 Google Chrome 控制 YouTube Music 的播放,通过歌曲和艺术家名称搜索和播放歌曲。

本地
JavaScript
Spotify MCP Server

Spotify MCP Server

一个将 Claude 与 Spotify 连接的服务器,允许用户控制播放、搜索内容、获取关于歌曲/专辑/艺术家/播放列表的信息,以及管理 Spotify 队列。

本地
Python
YouTube Integration

YouTube Integration

支持通过提供视频 URL 从 YouTube 视频中提取文字稿,支持标准、缩短和嵌入 URL 格式。

JavaScript
Spotify MCP

Spotify MCP

一个 FastMCP 工具,它允许用户通过 Cursor Composer 中的自然语言命令来控制 Spotify,从而管理播放、搜索内容以及与播放列表互动。

Python
mcp-youtube-sheets

mcp-youtube-sheets

提供搜索 YouTube 视频并将结果自动保存到 Google 表格的功能。

JavaScript