StreamerSongList MCP Server

StreamerSongList MCP Server

A Model Context Protocol server that enables AI assistants like Claude to manage song requests, monitor queues, and interact with streaming platforms' song request systems.

Category
访问服务器

README

smithery badge

StreamerSongList MCP Server

Test MCP Server License: MIT Node.js Version

A Model Context Protocol (MCP) server that provides tools for interacting with StreamerSongList APIs. This server enables AI assistants like Claude to manage song requests, monitor queues, and interact with streaming platforms' song request systems.

Features

🎵 Available Tools

Core Queue Management

  • getStreamerByName: Fetch detailed information about a specific streamer
  • getQueue: View current song queues with pagination support
  • getQueueStats: Get comprehensive stats about song queues including total songs, duration, and popular tracks
  • manageSongRequest: Create, update, and delete song requests
  • monitorQueue: Monitor queue changes with configurable polling intervals

Play History & Song Database

  • getPlayHistory: Retrieve play history with filtering and pagination
  • searchSongs: Search the song database with various filters
  • getSongDetails: Get detailed information about specific songs
  • manageSongAttributes: Add, update, or remove song attributes like tags and ratings

Overlay & Analytics

  • getOverlayData: Fetch real-time overlay data for streaming software
  • getStreamStats: Get comprehensive streaming statistics and analytics

🔧 Technical Features

  • MCP Protocol Compliant: Works with Claude Desktop, OpenAI agents, and other MCP clients
  • Type Safety: Built with comprehensive input validation
  • Error Handling: Robust error handling and user-friendly error messages
  • No Authentication Required: Simplified setup without auth complexity

Quick Start

Prerequisites

  • Node.js (version 18 or higher)
  • Claude Desktop or another MCP-compatible client

Installation

Option 1: Using npx (Recommended)

No installation required! Just configure Claude Desktop to use:

{
  "mcpServers": {
    "streamersonglist": {
      "command": "npx",
      "args": ["streamersonglist-mcp"]
    }
  }
}

Option 2: Local Installation

  1. Clone this repository:

    git clone https://github.com/vuvuvu/streamersonglist-mcp.git
    cd streamersonglist-mcp
    
  2. Install dependencies:

    npm install
    
  3. Test the server:

    npm test
    

Usage with Claude Desktop

Quick Setup (npx method)

  1. Find your Claude Desktop config file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the server to your config:

    {
      "mcpServers": {
        "streamersonglist": {
          "command": "npx",
          "args": ["streamersonglist-mcp"]
        }
      }
    }
    
  3. Restart Claude Desktop

  4. Test it out: Ask Claude: "Use the getStreamerByName tool to get information about a popular streamer"

Alternative: Local Installation Method

If you prefer to run from a local clone:

{
  "mcpServers": {
    "streamersonglist": {
      "command": "node",
      "args": ["src/server.js"],
      "cwd": "/path/to/streamersonglist-mcp"
    }
  }
}

Tool Documentation

getStreamerByName

Fetch detailed information about a specific streamer.

Parameters:

  • streamerName (string, required): The name of the streamer

Example:

Use getStreamerByName with streamerName "belleune"

getQueue

View current song queues with pagination support.

Parameters:

  • streamerName (string, required): The name of the streamer whose queue to fetch
  • limit (number, optional): Maximum number of songs to return (default: 50)
  • offset (number, optional): Number of songs to skip for pagination (default: 0)

Example:

Use getQueue with streamerName "belleune" and limit 10

getQueueStats

Get comprehensive stats about song queues.

Parameters:

  • streamerName (string, required): The name of the streamer whose queue stats to fetch

Example:

Use getQueueStats with streamerName "belleune"

manageSongRequest

Create, update, and delete song requests.

Parameters:

  • action (string, required): The action to perform ("create", "update", or "delete")
  • streamerName (string, required): The name of the streamer
  • requestId (string, optional): The ID of the request (required for update/delete)
  • songTitle (string, optional): The title of the song (required for create/update)
  • artist (string, optional): The artist name
  • requesterName (string, optional): The name of the person making the request
  • message (string, optional): Optional message with the request

Examples:

Use manageSongRequest to create a new request:
- action: "create"
- streamerName: "belleune"
- songTitle: "Bohemian Rhapsody"
- artist: "Queen"
- requesterName: "ChatUser123"

monitorQueue

Monitor queue changes with configurable polling intervals.

Parameters:

  • streamerName (string, required): The name of the streamer whose queue to monitor
  • interval (number, optional): Polling interval in seconds (default: 30)
  • duration (number, optional): How long to monitor in seconds (default: 300)

Example:

Use monitorQueue with streamerName "belleune", interval 60, duration 600

getPlayHistory

Retrieve play history with filtering and pagination support.

Parameters:

  • streamerName (string, required): The name of the streamer whose play history to fetch
  • limit (number, optional): Maximum number of entries to return (default: 50)
  • offset (number, optional): Number of entries to skip for pagination (default: 0)
  • startDate (string, optional): Start date filter (ISO format)
  • endDate (string, optional): End date filter (ISO format)

Example:

Use getPlayHistory with streamerName "belleune", limit 20, startDate "2024-01-01"

searchSongs

Search the song database with various filters.

Parameters:

  • query (string, optional): Search query for song title or artist
  • artist (string, optional): Filter by specific artist
  • genre (string, optional): Filter by music genre
  • limit (number, optional): Maximum number of results (default: 50)
  • offset (number, optional): Number of results to skip (default: 0)

Example:

Use searchSongs with query "bohemian", artist "Queen", limit 10

getSongDetails

Get detailed information about specific songs.

Parameters:

  • songId (string, required): The unique identifier of the song

Example:

Use getSongDetails with songId "song_12345"

getOverlayData

Fetch real-time overlay data for streaming software.

Parameters:

  • streamerName (string, required): The name of the streamer
  • overlayType (string, optional): Type of overlay data ("current", "queue", "stats")

Example:

Use getOverlayData with streamerName "belleune", overlayType "current"

getStreamStats

Get comprehensive streaming statistics and analytics.

Parameters:

  • streamerName (string, required): The name of the streamer
  • period (string, optional): Time period for stats ("day", "week", "month", "year")
  • startDate (string, optional): Start date for custom period (ISO format)
  • endDate (string, optional): End date for custom period (ISO format)

Example:

Use getStreamStats with streamerName "belleune", period "week"

manageSongAttributes

Add, update, or remove song attributes like tags and ratings.

Parameters:

  • action (string, required): The action to perform ("add", "update", "remove")
  • songId (string, required): The unique identifier of the song
  • attributeType (string, required): Type of attribute ("tag", "rating", "note")
  • value (string, optional): The attribute value (required for add/update)

Example:

Use manageSongAttributes with action "add", songId "song_12345", attributeType "tag", value "rock"

Development

Project Structure

streamersonglist-mcp/
├── src/
│   └── server.js          # Main MCP server implementation
├── package.json           # Node.js dependencies and scripts
├── test-server.js         # Test script
└── README.md             # This file

Testing

Run the test script to verify the server works correctly:

npm test

This will:

  • Start the MCP server
  • Send a test request
  • Verify the server responds with the correct tools

Manual Testing

You can also test the server manually:

npm start

The server will start and wait for MCP protocol messages on stdin. You can send a test message:

{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}

API Endpoints

The server interacts with these StreamerSongList API endpoints:

Core Queue Management

  • GET /v1/streamers/{streamerName} - Get streamer information
  • GET /v1/streamers/{streamerName}/queue - Get song queue
  • GET /v1/streamers/{streamerName}/queue/stats - Get queue statistics
  • POST /v1/streamers/{streamerName}/requests - Create song request
  • PUT /v1/streamers/{streamerName}/requests/{requestId} - Update song request
  • DELETE /v1/streamers/{streamerName}/requests/{requestId} - Delete song request

Play History & Song Database

  • GET /v1/streamers/{streamerName}/history - Get play history
  • GET /v1/songs/search - Search song database
  • GET /v1/songs/{songId} - Get song details
  • POST /v1/songs/{songId}/attributes - Add song attributes
  • PUT /v1/songs/{songId}/attributes/{attributeId} - Update song attributes
  • DELETE /v1/songs/{songId}/attributes/{attributeId} - Remove song attributes

Overlay & Analytics

  • GET /v1/streamers/{streamerName}/overlay - Get overlay data
  • GET /v1/streamers/{streamerName}/stats - Get stream statistics

Troubleshooting

Common Issues

  1. Server not starting:

    • Ensure Node.js 18+ is installed
    • Run npm install to install dependencies
    • Check for error messages in the console
  2. Claude Desktop not seeing the server:

    • Verify the config file path is correct
    • Ensure the cwd path points to your project directory
    • Restart Claude Desktop completely
    • Check for JSON syntax errors in the config file
  3. API errors:

    • The StreamerSongList API endpoints are simulated for demonstration
    • In a real implementation, you would need valid API credentials
    • Check network connectivity if using real endpoints

Getting Help

  • Issues: Report bugs or request features on GitHub
  • MCP Documentation: https://modelcontextprotocol.io
  • Claude Desktop: https://claude.ai/download

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Changelog

v1.1.0

  • NEW: Added 6 additional StreamerSongList API endpoints
  • NEW: Play history retrieval with filtering (getPlayHistory)
  • NEW: Song database search functionality (searchSongs)
  • NEW: Detailed song information access (getSongDetails)
  • NEW: Real-time overlay data for streaming software (getOverlayData)
  • NEW: Comprehensive streaming analytics (getStreamStats)
  • NEW: Song attribute management system (manageSongAttributes)
  • Enhanced API coverage from 5 to 11 total tools
  • Improved documentation with categorized tool sections
  • Extended API endpoint coverage for comprehensive StreamerSongList integration

v1.0.0

  • Initial release
  • Core 5 StreamerSongList tools implemented
  • MCP protocol compliance
  • Claude Desktop integration
  • Comprehensive error handling

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选