MCP server · Audited from source
Music21 MCP server
by brightlikethelight/music21-mcp-serverMIT licenceAudited 9 Oct 2026 · source b28e6ea4c616
Is it safe? With care — CAUTION, grade B (83/100). It exposes 14 tools: 12 read, 1 write and 1 destructive. The audit recorded 18 findings (0 critical, 0 high, 2 medium, 13 low). Maintainer's description: 🎵 Production-ready MCP server for music analysis & generation | FastMCP • music21 • OAuth2 • Docker | First music21 MCP integration with enterprise features
Cite
Cite this page
ModelsAtlas. “Music21 MCP server (brightlikethelight/music21-mcp-server)”. Retrieved 9 Oct 2026. https://modelsatlas.com/mcp/brightlikethelight/music21-1
Trust audit
Audit 0.4.1 · full source read 9 Oct 2026
18 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared5 observations
- NetworkNone observedNothing seen in the source
- ShellDeclared2 observations
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 1 finding |
L1 Static source | Secrets, path traversal, supply chain | WARN 12 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 4 findings |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
brightlikethelightUser accountAccount type recorded when we read the repository. - PackagePublished on PyPI
music21-mcp-server, no version recorded - LicenceMITFrom the repository, as read at the audited commit.
- Last push4 months agoActivity of the repository when we read it.
- Source commit readb28e6ea4c616The audit covers exactly this commit, read on 9 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory14 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (18)
Sorted by severity
MEDIUMCode injectioncode.dynamic_import · src/music21_mcp/health_checks.py:347
module = __import__(dep_name)
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
delete_score
- Why
- 1 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInsecure cryptocrypto.weak_hash · src/music21_mcp/performance_cache.py:78
return hashlib.md5(cache_key_data.encode(), usedforsecurity=False).hexdigest()
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · src/music21_mcp/performance_cache.py:244
score_hash = hashlib.md5(
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · src/music21_mcp/performance_cache.py:253
score_hash = hashlib.md5(
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · src/music21_mcp/performance_optimizations.py:263
return hashlib.md5(str(pitches).encode(), usedforsecurity=False).hexdigest()[
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · src/music21_mcp/performance_optimizations.py:636
score_hash = hashlib.md5(
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/integration/test_production_failures.py:652
"../../../etc/passwd", # Path traversal attempt
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/unit/test_import_tool_security.py:19
tool._validate_safe_path("../../etc/passwd")- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/unit/test_import_tool_security.py:37
tool._validate_safe_path("/var/log/../../../etc/shadow")- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/unit/test_security.py:70
"../../../etc/passwd",
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/unit/test_security.py:91
"../../../etc/passwd",
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · dxt/requirements.txt
music21, numpy, pydantic, cachetools, psutil, mcp, fastmcp, fastapi
- Why
- 9 requirement(s) not pinned with ==
- Fix
- pin exact versions
LOWPrompt injectionprompt.transfer_instruction · .github/webhook-config.md:39
**⚠️ Security Note**: Keep this URL secret! Anyone with this URL can send messages to your Discord channel.
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
INFOPrompt injectionprompt.authority_framing · SECURITY.md:48
- Never run with elevated privileges unless absolutely necessary
- Why
- No further detail recorded for this rule.
- Fix
- —
INFOSupply chainprompt.pipe_to_shell · README.md:62
curl -LsSf https://astral.sh/uv/install.sh | sh
- Why
- No further detail recorded for this rule.
- Fix
- —
INFOSupply chainprompt.pipe_to_shell · docs/getting-started.md:26
curl -LsSf https://astral.sh/uv/install.sh | sh
- Why
- No further detail recorded for this rule.
- Fix
- —
Tools it exposes
14 declared in source · 1 destructive
1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
delete_score | destructive | Delete a score from storage |
import_score | write | Import a score from various sources |
chord_analysis | read | Analyze chord progressions in a score |
export_score | read | Export a score to various formats |
generate_counterpoint | read | Generate species counterpoint (1=note-against-note, 2=2:1, 3=3:1, 4=syncopated, 5=florid) |
harmonize_melody | read | Generate harmonization for a melody in various styles (classical, jazz, pop, modal) |
harmony_analysis | read | Perform harmony analysis (roman numeral or functional) |
health_check | read | Check server and adapter health |
imitate_style | read | Generate music imitating a specific composer style (bach, mozart, chopin, debussy) or analyze score for style |
key_analysis | read | Analyze the key signature of a score |
list_scores | read | List all available scores |
pattern_recognition | read | Recognize patterns in music |
score_info | read | Get detailed information about a score |
voice_leading_analysis | read | Analyze voice leading patterns in a score |
Install
audited commit b28e6ea
Read the findings first. The most severe is Code injection (medium) at src/music21_mcp/health_checks.py.
One-click links open your editor with the config below filled in, exactly as the snippets show it. The audit covers commit b28e6ea only.
claude mcp add music21-mcp-server -- uvx music21-mcp-server
{
"mcpServers": {
"music21-mcp-server": {
"command": "uvx",
"args": [
"music21-mcp-server"
]
}
}
}The command does not pin a version; the audit covers commit b28e6ea4c616. Transport: not declared. No environment variables required.
Audit history
- !CAUTION B 83 / 100
First audit ·
b28e6ea4c616
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/brightlikethelight/music21-1/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Music21 MCP server
What is the Music21 MCP server?
What tools does Music21 expose?
Is Music21 safe to connect to an agent?
What credentials does Music21 need?
How current is this page?
Sources
- brightlikethelight/music21-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 9 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit b28e6ea4c616Observed · 9 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Music21 MCP server?
- What tools does Music21 expose?
- Is Music21 safe to connect to an agent?