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

music-mcp-server

v0.0.2

Published

Trunks Music MCP Server - Professional music analytics tools for AI agents

Readme

Trunks MCP Server

MCP (Model Context Protocol) server for Trunks Music - professional music analytics. Exposes Trunks data to AI agents (Claude, ChatGPT, Cursor, etc.).

Trunks prédit l'avenir de la musique.

Tools

| Tool | Description | |------|-------------| | search_artists | Search artists by name. Returns matching artists from Trunks database. | | get_artist_score | Get Trunks Score and Scouting Score for an artist (by ID, name, or slug). | | get_growth_metrics | Get growth metrics: growthRate7d, growthRate30d, trendingScore, totalFollowers. | | compare_artists | Compare 2-10 artists side-by-side (scores, followers, growth). | | get_trending | Get trending artists with optional genre/region filters. | | get_charts | Get top music charts by country (fr, us, gb, etc.). |

Setup

Option A — npx (recommended for production)

No clone or build required. Use once music-mcp-server is published to npm:

# Add to ~/.cursor/mcp.json or Cursor Settings > MCP
{
  "mcpServers": {
    "trunks": {
      "command": "npx",
      "args": ["-y", "music-mcp-server"],
      "env": {
        "TRUNKS_API_URL": "https://trunks.app"
      }
    }
  }
}

For local development, use http://localhost:3000 for TRUNKS_API_URL.

Option B — Local build (monorepo)

  1. Install dependencies:
cd mcp-server
npm install
npm run build
  1. Configure environment (optional, defaults to http://localhost:3000):

Copy .env.example to .env and set:

TRUNKS_API_URL=http://localhost:3000

For production, use https://trunks.app.

  1. Configure Cursor:

Add to your Cursor MCP settings (~/.cursor/mcp.json or Cursor Settings > MCP):

{
  "mcpServers": {
    "trunks": {
      "command": "node",
      "args": ["/absolute/path/to/trunks-dev/mcp-server/dist/index.js"],
      "env": {
        "TRUNKS_API_URL": "https://trunks.app"
      }
    }
  }
}

Replace the path with your actual mcp-server/dist/index.js location.

Trunks API

The MCP server calls the Trunks SaaS API. For production, the API is at https://trunks.app. For local dev, run the saas app:

cd saas
npm run dev

Usage in Cursor

Once configured, you can ask Cursor (with Trunks MCP enabled):

  • "Search for artist Billie Eilish in Trunks"
  • "What's the Trunks Score for Drake?"
  • "Compare growth metrics of Artist A and Artist B"
  • "Show me trending artists in rap genre"

Development

npm run build   # Compile TypeScript
npm run start   # Run compiled server (for testing)

Note: The server uses stdio transport. It expects to be spawned by an MCP client (Cursor, Claude Desktop, etc.) and will block waiting for JSON-RPC messages on stdin. Do not run it directly for interactive use.

Publishing to npm

cd mcp-server
npm run build
npm version patch
npm publish

Bump version in package.json per semver when tools or config change.

API Requirements

The MCP server requires these Trunks API routes:

  • GET /api/search?q=...&stream=false - Artist search
  • GET /api/mcp/artist-score?artistId=...|artistName=...|artistSlug=...
  • GET /api/mcp/growth-metrics?artistId=...|artistName=...|artistSlug=...
  • POST /api/mcp/compare-artists - Body: { artistIds } or { artistNames }
  • GET /api/scouting?limit=...&genres=...&regions=...