tone-listener-mcp
A guitar-tone analysis MCP server for inspecting server settings, measuring local audio, and using optional Gemini listening to analyze or compare clips.
server_info: Confirm version, configured model, listening availability, and request settings without calling Gemini.audio_metrics: Measure local audio metadata, level, spectrum, and stereo characteristics offline; never uploads.analyze_audio: Measure a local clip and optionally upload it to Gemini for guitar-tone listening.compare_audio: Compare reference A to candidate B with RMS loudness matching, deltas, EQ directions, and optional Gemini A/B listening.Schema note: The provided schema exposes these four tools only; the README also describes YouTube-reference tools, but they are not present in this schema.
Provides optional integration with Google Gemini's audio understanding API to analyze uploaded guitar clips and return cautious listening descriptions covering gain level, brightness, low end, mids character, pick attack, compression feel, effects, playing notes, timestamped evidence, uncertainties, and confidence. It also supports A/B comparison of two uploaded clips via Gemini to identify differences and suggested adjustments.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tone-listener-mcp Compare candidate.wav to reference.wav and suggest EQ and gain changes."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tone-listener-mcp
An MCP server that lets AI agents listen to guitar tone. Give your agent a public YouTube reference and it describes gain, attack, compression, EQ character and effects with timestamped evidence; give it your own recording and it tells you what to change first. Use the answers to guide relative gain, EQ and effects moves in software such as Soundshed Guitar, not to identify exact gear or knob settings.
Listening uses Gemini (GEMINI_API_KEY). Local-file measurement and
loudness-matched A/B comparison work offline without a key.
Install
Requires Python 3.11 or newer. From a checkout of this repository:
macOS / Linux:
python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'Windows (PowerShell):
py -3.12 -m venv .venv
.venv\Scripts\python -m pip install -e ".[dev]"The executable is .venv/bin/tone-listener-mcp on macOS/Linux and
.venv\Scripts\tone-listener-mcp.exe on Windows. Contributors can instead
reproduce the pinned development environment with
uv: uv sync --locked --extra dev (see
Development).
No ffmpeg or librosa is needed. WAV, FLAC, OGG and MP3 are read via SoundFile; convert M4A/AAC to WAV first.
Related MCP server: beatlyzer-mcp
Configure
Set variables in your MCP client's server environment (below) or your shell.
.env.example documents them but is not loaded automatically. Never commit a
real key.
Variable | Default | Purpose |
| Unset | Enable Gemini uploads and listening; omit for local-only operation |
|
| Audio-capable Gemini model available to your account |
|
| Maximum selected duration; positive finite seconds |
|
| Overall budget for queue, upload, processing and generation (>= 1) |
|
| Gemini requests run at once per server process; others wait within the deadline |
|
| Successful listening results kept in memory; |
To run the server directly from a shell (it waits for an MCP client on stdio):
export GEMINI_API_KEY="your-key" # PowerShell: $env:GEMINI_API_KEY = "your-key"
.venv/bin/tone-listener-mcp # Windows: .venv\Scripts\tone-listener-mcp.exeInvalid values make listening tools return an error naming the variable.
Model availability, quota and billing depend on your Google account; the tool
reports the model it used and never silently switches. The real YouTube check
used gemini-3.6-flash while 3.8 returned high-demand 503s.
Register with an MCP client
Generic mcpServers configuration (use the absolute executable path from Install):
{
"mcpServers": {
"tone-listener": {
"command": "/absolute/path/to/tone-listener-mcp/.venv/bin/tone-listener-mcp",
"env": {
"GEMINI_API_KEY": "your-key"
}
}
}
}On Windows, escape backslashes in JSON:
"command": "C:\\path\\to\\tone-listener-mcp\\.venv\\Scripts\\tone-listener-mcp.exe".
VS Code .vscode/mcp.json uses servers and supports a secret input:
{
"inputs": [
{
"type": "promptString",
"id": "gemini-key",
"description": "Gemini API key",
"password": true
}
],
"servers": {
"tone-listener": {
"type": "stdio",
"command": "/absolute/path/to/tone-listener-mcp/.venv/bin/tone-listener-mcp",
"env": {
"GEMINI_API_KEY": "${input:gemini-key}"
}
}
}
}Omit GEMINI_API_KEY for offline use. The server speaks MCP over stdio; audio
paths are resolved on the machine running the server.
Ask your agent to call server_info to confirm the setup. It reports the
version, configured model, listening_available (with
listening_unavailable and configuration_errors explaining why not), the
duration cap and request settings. It never returns the key or calls Gemini.
Example
Ask your agent to call analyze_youtube:
{
"url": "https://www.youtube.com/watch?v=401iS5McuoU",
"start": 0,
"end": 30,
"question": "Describe the audible guitar gain, pick attack and effects without using video imagery."
}Representative result (abridged; field values paraphrased from the real YouTube check, not verbatim model output):
{
"model": "gemini-3.6-flash",
"source": {
"url": "https://www.youtube.com/watch?v=401iS5McuoU", "start_seconds": 0, "end_seconds": 30
},
"metrics": null,
"listening": {
"summary": "Clean to edge-of-breakup chords, then a brighter overdriven lead",
"effects": {
"reverb": {"presence": "present", "amount": "subtle", "notes": "short room/plate"},
"delay": {"presence": "possible", "amount": "low", "notes": "may be doubling"},
"modulation": {"presence": "absent", "amount": "none", "notes": ""}
},
"evidence": [{"timestamp": 19.2, "observation": "Overdriven lead enters"}],
"uncertainties": ["Guitar highs may overlap cymbals and vocals in the mix"],
"confidence": 0.6
},
"failure": null
}Only audible evidence should support the answer; the model is told not to use
video imagery, titles or visible gear. Evidence timestamps are relative to the
selected segment. Confidence is model self-assessment, not calibrated
accuracy. Public youtu.be and watch/shorts/embed/live URLs are accepted;
playlists, channels, private videos and other sites are not. Omitting end
selects at most TONE_LISTENER_MAX_SECONDS after start.
Tools
Tool | Arguments | Result |
| None | Version, configured model, listening availability and settings; no API call |
|
| Primary public YouTube listening; |
|
| Local clip metadata, level, spectrum and stereo metrics; never uploads |
|
| Local |
|
| Reference A vs candidate B, RMS matching, deltas, EQ directions and optional A/B listening |
|
| YouTube reference A vs local candidate B: Gemini listening differences and prioritized adjustments only |
All tools return structured JSON with a published outputSchema. Listening
failures are typed (failure.category, retryable, suggestion) and every
listening result includes diagnostics. See the tool reference
for input rules, metric definitions, loudness matching, EQ hints, upload
preprocessing, failure categories, deadlines, caching and progress notifications.
Python library API
Applications can import reusable listening without running an MCP server. Structured tone profiles use fixed categorical axes rather than prose-to-category conversion:
from tone_listener_mcp.audio_io import load_audio
from tone_listener_mcp.listener import ToneProfile, listen_tone_profile
result = listen_tone_profile(load_audio("guitar.wav", start=0, end=10))
if result["listening"] is not None:
profile = ToneProfile.model_validate(result["listening"])
print(profile.gain, profile.brightness)
else:
print(result["failure"]) # Sanitized category, status and recovery hints
print(result["request_counts"]) # generate / upload / poll_upload / delete_uploadlisten_youtube_tone_profile(url, start, end) supports public video intervals with
no audio extraction. Both profile functions default to uncached, single-attempt
listening; they retain the same deadlines, concurrency limits, preprocessing and
cleanup as ordinary listening. Every listen* function accepts keyword-only
use_cache and request_attempts; ordinary listening keeps its existing defaults.
youtube_input validates video intervals without I/O, and failure_info sanitizes
SDK exceptions for callers making their own requests.
The library reference documents signatures, categories, counters and failure metadata. Profiles describe audible tone only; Soundshed mappings, rendering and UI belong in consuming applications. The six MCP tools are unchanged; profiles are a library API, not an additional tool.
Benchmark status
Check | Status | Details |
DSP metrics, provider mocks, MCP stdio | Passing in CI (offline) |
|
Known gain/drive/EQ/reverb directions in local metrics | Verified offline | |
Real YouTube reference listening | Spot-checked, 3 segments (2026-11-08) | Model judgments, unscored |
Blinded synthetic A/B listening accuracy | Not measured |
|
Real-recording listening accuracy | Not measured |
|
YouTube reference vs local candidate | Not measured live | Offline mocks only |
Privacy and limitations
With a key configured, analyze_youtube sends the public video URL and selected
interval to Google, which processes the source remotely. It does not extract a
local waveform or persist a media file. Public video processing is subject to
Google's supported YouTube-input rules, quotas and terms.
analyze_audio uploads the selected clip to Google,
compare_audio uploads both selected clips, and compare_youtube_reference
sends the public video URL/interval plus the selected local clip. Only use recordings you have
permission to share. audio_metrics is always local. Temporary WAVs are deleted
on exit; uploaded files are deleted after the request, including most failure
paths. Cleanup failures are returned in cleanup_warnings. Remote handling and
retention are governed by Google's terms; deletion is not a zero-retention guarantee.
Local paths are included in local result metadata but not intentionally sent in
provider prompts. A user-supplied question/focus is sent to Google.
Full mixes can confuse cymbals with guitar fizz, doubling with delay and other instruments with guitar ambience/compression. Isolate the guitar where possible. The tool cannot identify exact amps, pedals, cabinets or knob settings. Spectral differences may reflect notes, pickup position, playing or arrangement rather than EQ. Gemini's descriptions may be wrong; use evidence and listening checks.
Local uploads are 16 kHz mono, so stereo and fine high-frequency detail come from local metrics, not listening claims.
Development
Use the same DI and phrase for A/B, avoid clipping, compare at matched loudness and choose short, focused clips. Record dry and processed versions when possible; start/end should cover equivalent musical material.
uv sync --locked --extra dev # or: pip install -e '.[dev]'
uv run ruff check .
uv run pytest -q
uv run python scripts/make_validation_set.py --output /tmp/tone-validationuv.lock pins the development environment; after changing dependencies in
pyproject.toml, run uv lock and commit both files. GitHub Actions runs
uv lock --check, lint and tests on Python 3.11 and 3.12 (plus Windows) for every
pull request (including forks), pushes to main and manual dispatch. It also
builds the wheel, installs it into a clean environment and smoke-tests the
installed executable over MCP stdio (scripts/smoke_installed.py). The
ci-passed job is the required status check for merging into main. Tests are synthetic/offline with mocked Gemini;
the stdio test spawns the real server and exercises all six tools.
See controlled validation for synthetic variants, the
opt-in blinded scripts.eval_listening harness and real-recording manifests
(--manifest). Live Gemini checks require a key and incur API usage; skipped
runs do not measure listening accuracy.
License
MIT. No reference recordings or copyrighted song audio are included.
Available Tools
4 toolsanalyze_audioC
Measure a clip and optionally upload it to Gemini for guitar listening.
Inputs: path (required), end, start, question. Returns: object
audio_metricsB
Measure local audio levels, spectrum and stereo. Times are seconds; end is exclusive.
Inputs: path (required), end, start. Returns: object
compare_audioC
Compare B to reference A with RMS matching and optional Gemini A/B listening.
Inputs: path_a (required), path_b (required), end_a, end_b, +3 more. Returns: object
server_infoA
Return basic information about this server.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
audio_metrics and analyze_audio both measure audio levels/spectrum and differ mainly by an optional Gemini upload step, which makes misselection likely. compare_audio and server_info are clearly distinct, so overlap is limited to one ambiguous pair.
Names are readable but follow mixed conventions: two noun-style names (server_info, audio_metrics) and two verb_noun names (analyze_audio, compare_audio). No camelCase chaos, but there is no single predictable pattern for an agent to rely on.
Four tools is a tight, focused surface for an audio-analysis server, and each tool maps to a plausible workflow. server_info is arguably filler, keeping it from a 5.
The surface covers measurement, single-clip analysis, and A/B comparison, but there is no tool for recording, streaming/live monitoring, or device/input selection despite the 'listener' framing. Agents would hit a dead end on any real-time or capture workflow.
Maintenance
Related MCP Connectors
AI mixing and mastering: analyze your mixes, run DSP autofix, render stems, and master tracks.
Audio mastering for AI agents: LUFS analysis, Suno artifact cleanup, free daily master.
Build and refine guitar amp and effects settings. Get a free browser link to try the sound.
Audio for your agent: transcribe, speak, translate, summarise, plus sound effects and music.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI models to analyze audio files through numerical fingerprints, pitch tracking, and visual spectrograms without requiring direct audio playback. It provides tools for comparing audio iterations and detecting patterns using token-efficient analysis operations.14-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to analyze audio files, extracting tempo, key, beat drops, volume surges, high tones, loudness, brightness, and structure, and returning structured JSON and visualizations.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables local AI agents to control a Fender Mustang GT40 through Fender Tone on Android, capture and compare USB recordings, and perform validated, bounded tone refinements without paid AI APIs.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to check whether generated audio matches a prompt in any language, rank takes, run technical QC, judge fit against images or video, and search or dedupe a local sound library. Each tool returns the same JSON records as the matching CLI command, with the model loaded once and everything running locally.18MIT