Skip to main content
Glama

MCP Music Forge

English | Русский


A scalable MCP plugin/service for downloading and processing audio: SoundCloud (starting point), then YouTube/Yandex Music/Spotify; transcoding, tagging and cover art embedding, HTTP API, MCP tools, audio workers.

Quickstart

cp .env.example .env
make upb       # build and start the stack

Endpoints:

Management:

make logs      # logs
make ps        # container status
make up        # just up
make down      # stop and remove

Variant B: Local (uv)

make install   # create .venv, install deps, copy .env
source .venv/bin/activate

make lint      # ruff + black + mypy
make test      # mypy + pytest

# run API
uvicorn api.main:app --reload

# MCP (stdio)
python -m mcp_music_forge.mcp_app

Related MCP server: media-downloader

API Examples

# health check
curl -s http://localhost:8033/health | jq
# {"status": "ok"}

# enqueue download (SoundCloud URL with allowed download per ToU)
curl -s -X POST 'http://localhost:8033/download?url=https://soundcloud.com/artist/track' | jq
# {"job_id": "abc123", "status": "queued"}

# check job status
curl -s http://localhost:8033/jobs/<job_id> | jq

MCP Tools

  • probe_url: provider detection and downloadability check.

  • enqueue_download: create/duplicate a job, put it in the queue.

  • get_job_status: status, artifacts, file links as MCP resources.

  • Resources: forge://jobs/<job_id>/{original|final}/<filename> (file bytes).

Project Overview

  • MCP Server (mcp_music_forge/): job management, resource provider, and MCP tools.

  • HTTP API (api/): POST /download, GET /jobs/{id}, /health, admin interface.

  • Providers (providers/): adapters for sources (starting with SoundCloud).

  • Transcoder (transcoder/): a wrapper around ffmpeg.

  • Storage (storage/): local FS (can be replaced with S3, etc.).

  • Queue (core/services/queue.py): ARQ + Redis; a wrapper in workers/.

Documentation

  • SoundCloud provider respects ToU: we only download if the track is downloadable (downloadable/download_url).

  • Cookie file support is available, but use it strictly within the service's rules.

Available Tools

3 tools
enqueue_downloadC

Create or dedupe a job and enqueue it for processing.

Inputs: url (required), options. Returns: job_id, status

get_job_statusC

Return job status and artifact list.

Inputs: job_id (required). Returns: id, status, error, title, +3 more

probe_urlA

Detect provider for URL and check whether track is downloadable per provider rules.

Inputs: url (required). Returns: provider, can_download, normalized_id, title, +4 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool serves a distinct purpose: probing a URL for downloadability, enqueuing a download job, and checking job status. There is no overlap or ambiguity.

    Naming Consistency5/5

    All tools use a consistent verb_noun pattern in snake_case: enqueue_download, get_job_status, probe_url. This follows a predictable and clean naming convention.

    Tool Count5/5

    With 3 tools covering the core workflow (probe, enqueue, status), the count is well-scoped for a music download service. Not too few or too many.

    Completeness4/5

    The toolset covers the primary operations for downloading music from URLs, but lacks advanced features like cancelling jobs or listing all jobs. Minor gap but still functional.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers