Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Music21 MCP server

by brightlikethelight/music21-mcp-serverMIT licenceAudited 9 Oct 2026 · source b28e6ea4c616

PyPI music21-mcp-server★ 26
!CAUTIONGrade B · 83/100 · 9 Oct 2026 · b28e6ea
26GitHub stars

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

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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

Trust score83/100!CAUTION B
0 critical0 high2 medium13 low3 info

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

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 1 finding
L1 Static sourceSecrets, path traversal, supply chainWARN 12 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 4 findings
L3 InventoryDeclared tools match the sourceWARN 1 finding
L4 SandboxRun in isolation and watch behaviourSKIPPED

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 PyPImusic21-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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
module = __import__(dep_name)
Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
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
LOWInventory / provenanceinv.hidden_file · .pre-commit-config.yaml
F-13 Inventory / provenanceCWE-1104Layer L0
.pre-commit-config.yaml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInsecure cryptocrypto.weak_hash · src/music21_mcp/performance_cache.py:78
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
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
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
score_hash = hashlib.md5(
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · src/music21_mcp/performance_cache.py:253
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
score_hash = hashlib.md5(
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · src/music21_mcp/performance_optimizations.py:263
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
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
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
score_hash = hashlib.md5(
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/integration/test_production_failures.py:652
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
"../../../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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
"../../../etc/passwd",
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/unit/test_security.py:91
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
"../../../etc/passwd",
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · dxt/requirements.txt
F-08 Supply chainCWE-829 · CWE-1357Layer L1
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
**⚠️ 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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- 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
F-08 Supply chainCWE-829 · CWE-1357Layer L2
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
F-08 Supply chainCWE-829 · CWE-1357Layer L2
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

12 read1 write1 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.

ToolRiskWhat it does
delete_scoredestructiveDelete a score from storage
import_scorewriteImport a score from various sources
chord_analysisreadAnalyze chord progressions in a score
export_scorereadExport a score to various formats
generate_counterpointreadGenerate species counterpoint (1=note-against-note, 2=2:1, 3=3:1, 4=syncopated, 5=florid)
harmonize_melodyreadGenerate harmonization for a melody in various styles (classical, jazz, pop, modal)
harmony_analysisreadPerform harmony analysis (roman numeral or functional)
health_checkreadCheck server and adapter health
imitate_stylereadGenerate music imitating a specific composer style (bach, mozart, chopin, debussy) or analyze score for style
key_analysisreadAnalyze the key signature of a score
list_scoresreadList all available scores
pattern_recognitionreadRecognize patterns in music
score_inforeadGet detailed information about a score
voice_leading_analysisreadAnalyze 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

The command does not pin a version; the audit covers commit b28e6ea4c616. Transport: not declared. No environment variables required.

Audit history

  1. !CAUTION B 83 / 100

    First audit · b28e6ea4c616

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION BMODELSATLASCAUTION · B
[![ModelsAtlas: CAUTION B](https://modelsatlas.com/mcp/brightlikethelight/music21-1/badge.svg)](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?
🎵 Production-ready MCP server for music analysis & generation | FastMCP • music21 • OAuth2 • Docker | First music21 MCP integration with enterprise features
What tools does Music21 expose?
14 in total: 12 read-only, 1 that write, and 1 that can delete or overwrite (delete_score). Every one is listed on this page with its risk.
Is Music21 safe to connect to an agent?
With care. The audit graded it B (83/100) and found 18 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Music21 need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (b28e6ea4c616), read on 2026-10-09. The repository is watched and re-audited when it changes.

Sources

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.