Music Lyric Cutter MCP Server
Searches and downloads the best matching song audio from YouTube via yt-dlp when allow_download=True.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π΅ Music Lyric Cutter MCP Server
An MCP server for song transcription and per-line MP3 audio segmentation over stdio transport.
Overview β’ Features β’ Architecture β’ Quickstart β’ Tools & Resources β’ Configuration β’ Development
β‘ Overview
The Music Lyric Cutter MCP Server connects AI assistants and MCP clients (such as Claude Desktop, Claude Code, and Cursor) to an automated audio transcription and segmentation pipeline using the Model Context Protocol (MCP).
Given a song title and artistβeither from a local audio file or an authorized YouTube downloadβit transcribes lyrics into .srt subtitles using faster-whisper, merges short intervals, and cuts individual MP3 segments per lyric line with ffmpeg.
Related MCP server: Claud-Ear
β¨ Key Features
π§ Flexible Audio Resolution: Process a local
audio_pathdirectly or search YouTube viayt-dlpand download the best matching audio whenallow_download=True.π Accurate Lyric Transcription: Transcribes audio to
.srtsubtitles usingfaster-whisperwith configurable model, device, compute type, and optional ISOlanguagehint.βοΈ Per-Line MP3 Segmentation: Merges short intervals (
MIN_SEGMENT_DURATION_SECONDS) and cuts clean per-line.mp3clips usingffmpeg.π Predictable Artifact Layout: Organizes outputs automatically under
<output_root>/<artist-slug>/<song-slug>/and returns structuredSongSegmentationResultmetadata.π Navigable MCP Resources & Prompts: Exposes server config, processed artists/tracks as JSON resources, and a
segment_songprompt template.
π Architecture
flowchart LR
subgraph Clients ["MCP Clients"]
CD["Claude Desktop"]
CC["Claude Code"]
CR["Cursor / IDEs"]
end
subgraph Server ["Music Lyric Cutter MCP"]
Transport["FastMCP (stdio)"]
Pipeline["Services (pipeline.py / srt.py)"]
Adapters["Adapters (yt-dlp / faster-whisper / ffmpeg)"]
Transport --> Pipeline --> Adapters
end
subgraph Output ["Output Root"]
FS["<artist-slug>/<song-slug>/\n(full-audio, subtitles, segments)"]
end
Clients <-->|MCP Protocol| Transport
Adapters --> FSModule Layout
server.py:FastMCPserver factory (create_server), entrypoint (main), andstderrlogging configuration.config.py:pydantic-settingsconfiguration (MUSIC_LYRIC_CUTTER_MCP_prefix).mcp/: MCP protocol layer (schemas.py,tools.py,resources.py,prompts.py).services/: Domain orchestration (pipeline.py,srt.py).adapters/: External media and processing integrations (youtube.py,transcription.py,ffmpeg.py).utils/: Shared generic utilities (text.py).
π Quickstart
Prerequisites
uv / uvx installed on your machine (
curl -LsSf https://astral.sh/uv/install.sh | sh)ffmpegavailable in yourPATHNetwork access when searching/downloading from YouTube or downloading the
faster-whispermodel on first run
Configuration by Client
Edit your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"music-lyric-cutter": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/david-evaristo/music-lyric-cutter-mcp.git@v0.1.1",
"music-lyric-cutter-mcp"
],
"env": {
"MUSIC_LYRIC_CUTTER_MCP_OUTPUT_ROOT": "~/music-lyric-cutter-output"
}
}
}
}On the first transcription,faster-whisper downloads the configured model (tiny by default) if it is not cached locally.
Register the server using claude mcp add:
claude mcp add music-lyric-cutter -s user \
--env MUSIC_LYRIC_CUTTER_MCP_OUTPUT_ROOT=~/music-lyric-cutter-output \
-- uvx --from git+https://github.com/david-evaristo/music-lyric-cutter-mcp.git@v0.1.1 music-lyric-cutter-mcpIn Cursor Settings > Features > MCP Servers:
Name:
music-lyric-cutterType:
commandCommand:
uvx --from git+https://github.com/david-evaristo/music-lyric-cutter-mcp.git@v0.1.1 music-lyric-cutter-mcpConfigure
MUSIC_LYRIC_CUTTER_MCP_*environment variables via your.envor client settings.
π οΈ Tools, Resources & Prompts
MCP Tools
Tool | Parameters | Description |
|
| Resolves local or authorized YouTube audio, transcribes to SRT, and cuts per-line MP3 segments. |
MCP Resources
config://serverβ Returns server name, version, and configuredoutput_root.music://artistsβ Lists processed artist slugs available underoutput_root.music://{artist}/tracksβ Lists processed song slugs for a given artist underoutput_root.
MCP Prompts
segment_songβ Generates a structured prompt to transcribe and segment a song per line withmusic_lyric_cutter.
Output Layout
Artifacts are written under <output_root>/<artist-slug>/<song-slug>/ (directories are created automatically if missing):
<output_root>/
βββ <artist-slug>/
βββ <song-slug>/
βββ full-audio/ # Downloaded source audio (when downloaded)
βββ subtitles/ # Generated .srt subtitle file
βββ segments/ # Per-line MP3 files (segment_000.mp3, ...)βοΈ Configuration
Environment variables use the MUSIC_LYRIC_CUTTER_MCP_ prefix (loaded from .env if present):
Category | Variable | Default | Description |
Server |
|
| MCP server display name |
|
| Logging level (written to | |
Pipeline & Output |
|
| Root directory for generated artifacts |
|
| MCP tool execution timeout in seconds | |
|
| Minimum segment duration before merging | |
Whisper |
|
|
|
|
| Compute device for | |
|
| Compute/quantization type for |
π» Development
Local Setup
git clone https://github.com/david-evaristo/music-lyric-cutter-mcp.git
cd music-lyric-cutter-mcp
uv sync
cp .env.example .envRunning Tests & Quality Checks
# Lint & format checks
uv run ruff check .
uv run ruff format --check .
# Run unit tests with coverage (no network required)
uv run pytest -q --cov=music_lyric_cutter_mcp
# Verify lockfile & run server locally
uv lock --locked
uv run fastmcp run src/music_lyric_cutter_mcp/server.py
uv run music-lyric-cutter-mcpReleasing
Releases follow Semantic Versioning:
git tag v0.1.1
git push origin v0.1.1π License
This project is licensed under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Cut audio from YouTube, TikTok or Instagram links to MP3/WAV, and fetch video transcripts.
Generate full songs with vocals, instrumentals and sound effects from text. One server for Suno, Google Lyria, Mureka, MiniMax, ACE-Step, YuE and ElevenLabs. Your agent can quote the credit cost before generating, start a song, wait for it to finish and return download links. Sign in with OAuth; optional daily credit caps; retries never charge twice.
An MCP server that gives any LLM or agent clean YouTube transcripts on demand: a single video, a whole channel, or a playlist, plus AI cleanup of auto-generated captions. API-key auth, credit-based, same backend as the public v1 API. Get a free API key with 25 free credits at youtubetranscriptdownload.com/account.
Remote MCP server for audio stem separation, denoise, reverb, and MIDI export.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables high-quality transcription and subtitle generation from local media files or URLs using Faster Whisper on local hardware. It supports automatic language detection and integration with MCP clients for seamless speech-to-text workflows.31-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI agents the ability to listen to and understand music/audio files, enabling semantic analysis, stem separation, lyrics transcription, and signal processing via tool calls.1MIT
- FlicenseNot gradedqualityDmaintenanceAn all-in-one MCP server for transcription, supporting YouTube, audio, and video with translation, summarization, chapter generation, subtitle export, and batch processing via 19 tools.-
- AlicenseAqualityDmaintenanceEnables MCP clients to transcribe audio/video files locally, generate SRT subtitles, and burn captions into videos via tool calls, without a cloud API.3MIT