npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mp3-mcp-server

v0.1.10

Published

MCP server wrapping mp3-api for searching and playing music

Readme

MP3 API MCP Server

Model Context Protocol (MCP) server built with Node.js that wraps the nvhung9/mp3-api endpoints. It exposes tools so agents can search for songs, fetch lyrics, look up artists and albums, and retrieve playable stream URLs.

Setup

npm install
npm run build

Use npm run dev to run directly with tsx during development, or npm start after building to run the compiled output.

Configuration

  • MP3_API_BASE_URL (optional): Override the base URL for the mp3-api service. By default it uses https://api-zingmp3.vercel.app/api, which mirrors the public API exposed by the reference repository.

Use with MCP Server Hub

You can add this server to MCP Hub through the Add Server dialog shown in the screenshot.

  • Server Name: Pick any label (e.g., mp3-api).
  • Server Type: STDIO.
  • Command: npm.
  • Arguments: one of the following, depending on how you prefer to run it:
    • run dev -- – runs the TypeScript source with tsx (recommended while developing).
    • run start -- – runs the compiled output from dist (after npm run build).
  • Environment Variables: set MP3_API_BASE_URL if you need to point at a different API base URL.

Make sure dependencies are installed with npm install first. If you choose run start --, build the server beforehand with npm run build.

Testing

Offline Testing (Mock Data)

Test the MCP server tools without making network requests using mock data:

# Test all tools with mock data (offline)
npm run test:offline

# Test a specific tool with mock data
npm run test:tool search_songs --offline

Online Testing (Real API)

Test the MCP server tools with the real API:

# Test all tools with real API
npm run test:online

# Test a specific tool
npm run test:tool search_songs

The test client will:

  1. Start the MCP server as a child process
  2. Connect to it via stdio transport
  3. List all available tools
  4. Run test cases for each tool (or a specific tool if specified)
  5. Display the results

Note: For offline testing, the server uses MockMp3ApiClient which returns sample data without network calls. This is useful for:

  • Testing tool registration and schema validation
  • Testing error handling
  • Development without internet connection
  • CI/CD pipelines

Available Tools

  • search_songs – search songs by keyword.
  • get_song_lyrics – fetch lyrics by song encodeId.
  • get_song_streams – retrieve streaming URLs for a song encodeId.
  • find_artist – look up artist details by alias or name.
  • get_album – fetch album details by encodeId.
  • play_song – pick the best streaming URL for a song encodeId to hand off to a player.