Skip to main content

Music MCP 🎵

Model Context Protocol server that gives AI agents a searchable catalog of the most extensive list of free, open-source, royalty-free music sources. Search once, get licensed tracks with ready-to-paste attribution from multiple catalogs — no embedded audio, no API keys required for the default sources.

Sources

Source Access License families
Internet Archive — netlabels + Free Music Archive collections free, no key CC0 / CC BY / Public Domain
Wikimedia Commons free, no key CC BY / CC BY-SA / CC0 / PD
Incompetech — full Kevin MacLeod catalog, 1,400+ tracks baked in, no key CC BY 4.0
Jamendo free client ID CC BY / CC BY-SA / CC BY-NC-SA / CC BY-ND
Freesound free token CC0 / CC BY / CC BY-NC

Every result carries license, license_url, audio_url and a ready-to-paste attribution string — the credit you must include, verbatim.

Quickstart

# 1-line installer: installs uv + music-mcp, then wires it into the
# agents you already have (Claude Code, Claude Desktop, Cursor, Gemini CLI)
curl -fsSL "https://music-mcp-install-telemetry.reachsuren.workers.dev/?src=readme" | bash

# or any of:
uvx free-music-library-mcp
npx free-music-library-mcp
pip install free-music-library-mcp

Claude Code

claude mcp add --transport stdio music-mcp -- uvx --from free-music-library-mcp music-mcp-server

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "music-mcp": {
      "command": "uvx",
      "args": ["--from", "music-mcp", "music-mcp-server"]
    }
  }
}

Cursor

MCP settings → Add: uvx --from free-music-library-mcp music-mcp-server (or use the 1-click install page).

Gemini CLI

gemini config add music-mcp "uvx --from free-music-library-mcp music-mcp-server"

Usage

Tool What it does
search_music(query, sources?, limit?) Search across all configured sources: "medieval tavern ambient", "epic cinematic trailer", "lo-fi beats"
list_sources() Show every source, its license families, and whether a key is needed

Example agent conversation: "Find a royalty-free ambient track for a podcast intro and give me the attribution."

Optional: enable Jamendo & Freesound

These two sources cover hundreds of thousands of additional CC tracks. Both keys are free:

export MUSIC_MCP_JAMENDO_CLIENT_ID="your-free-client-id"   # developer.jamendo.com
export MUSIC_MCP_FREESOUND_TOKEN="your-free-token"          # freesound.org/apiv2/apply

Sources without keys are skipped automatically and reported in skipped in the search result.

Telemetry & Privacy

Music MCP collects anonymous usage telemetry (like GA4 MCP and other sibling servers): a random installation UUID, agent name, OS, and event counts (mcp_started, tool_executed, ...). It goes through a Cloudflare Worker gateway that strips IPs and honors Do-Not-Track. No PII, no search queries, no local paths, no audio content — ever.

Opt out any time:

export MUSIC_MCP_TELEMETRY=false
# or
export DO_NOT_TRACK=1

Development

python -m venv .venv && source .venv/bin/activate
pip install -e . pytest
pytest
python -m music_mcp

Baked catalogs are generated from verified public listings:

python scripts/build_catalogs.py   # refreshes music_mcp/catalogs/*.json

License

Apache-2.0. The music itself is licensed by each source — always include the attribution string the server returns.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

free_music_library_mcp-0.4.0.tar.gz (212.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

free_music_library_mcp-0.4.0-py3-none-any.whl (216.4 kB view details)

Uploaded Python 3

File details

Details for the file free_music_library_mcp-0.4.0.tar.gz.

File metadata

File hashes

Hashes for free_music_library_mcp-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9315c873ff407f85f59f4a08b49510471a99ac03aa25928e2463ed1166f85053
MD5 9f1050b1d300724c84330f4782a8df92
BLAKE2b-256 2e5e1ad622d7bb9869aa517ee80f9cbc64c1afaa7c42a1ce836736368391ef54

See more details on using hashes here.

File details

Details for the file free_music_library_mcp-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for free_music_library_mcp-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e42c51993baa297d0712bb5ee64901b1dfa5b6d3d992e7361887723c301fb6b
MD5 33f7de8d1f9ec2a5ef0bbba66b992a99
BLAKE2b-256 1b509d6df7329566fcb8a76a6a8cc27569aeb735d668e4d92a9ab7082f5214f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page