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

melodies-mcp-server

v1.0.1

Published

A Model Context Protocol server for Melodies music API integration

Downloads

13

Readme

Melodies MCP Server (Nodejs)

A Model Context Protocol (MCP) server for the Melodies music API, built with TypeScript and Node.js.

Features

  • 🎵 Complete Melodies API integration
  • 🔧 TypeScript for type safety
  • 📦 Easy npm installation and management
  • ⚡ Fast and reliable performance

Installation

From npm (when published)

npm install -g melodies-mcp-server

From source

git clone https://github.com/vincentsong/melodies-mcp-server
cd melodies-mcp-server
npm install
npm run build
npm link  # For global installation

Quick Start

1. Environment Setup

# Copy environment template
cp .env.example .env

# Edit .env file with your credentials
MELODIES_API_KEY=your_api_key_here

2. Run the Server

# Development mode
npm run dev

# Production mode
npm run build
npm start

3. Configure MCP Client

VS Code plugins

File: <mcp client>/<mcp configuration>.json

{
  "mcpServers": {
    "melodies-mcp-server": {
      "disabled": false,
      "command": "npx",
      "args": ["-y", "melodies-mcp-server"],
      "env": {
        "MELODIES_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Available Tools

Core API Tools

  • configure_server - Configure API credentials and database
  • search_tracks - Search for music tracks
  • simplified_search_tracks - Simplified track search
  • get_trending_tracks - Get trending tracks
  • get_track_info - Get detailed track information

Collection Tools

  • get_collections - Get available collections
  • get_collection_tracks - Get tracks from a collection

Metadata Tools

  • get_genres - Get available music genres
  • get_moods - Get available moods
  • get_instruments - Get available instruments
  • get_purposes - Get available purposes

Media Tools

  • get_track_album_art - Get track album artwork
  • get_track_composer_avatar - Get composer avatar
  • get_track_download_url - Get track download URL

Advanced Tools

  • get_cue_sheet_info - Get cue sheet information

API Reference

Search Parameters

interface SearchParams {
  q?: string; // General search query
  page?: number; // Page number
  sort?: 'latest' | 'shuffle' | 'featured';
  genre?: string[]; // Filter by genres
  mood?: string[]; // Filter by moods
  instrument?: string[]; // Filter by instruments
  purpose?: string[]; // Filter by purposes
  minTempo?: number; // Minimum BPM
  maxTempo?: number; // Maximum BPM
  minDuration?: number; // Minimum duration (seconds)
  maxDuration?: number; // Maximum duration (seconds)
  perPage?: number; // Results per page (max 200)
}

Example Usage

// Search for upbeat pop music
{
  "q": "upbeat",
  "genre": ["Pop"],
  "mood": ["Happy", "Energetic"],
  "minTempo": 120,
  "maxTempo": 140
}

// Get track information
{
  "trackId": 12345
}

// Download track
{
  "trackVersionId": 67890,
  "version": "mp3"
}

Troubleshooting

Common Issues

API Key not found

Error: API Key is required for this MCP server

Solution: Set MELODIES_API_KEY in your .env file or environment.

MCP client not connecting

Connection closed

Solution: Check MCP client configuration and ensure server is running.

Debug Mode

# Enable debug logging
NODE_ENV=development npm run dev

Contributing

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

License

MIT License - see LICENSE file for details.

Support