songbrainSAFE
Song in, video plan out — official SDKs (Python, TypeScript), examples and MCP entry for the Songbrain music analysis API for AI video
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://github.com/songbrain-ai/songbrain/actions/workflows/ci.yml) [](https://pypi.org/project/songbrain/) [](https://www.npmjs.com/package/songbrain) [](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.songbrain-ai/songbrain) [](LICENSE)
Song in, video plan out — the music analysis API for AI video.
Send a song. Get back JSON that a video model can use directly: what the song is, where the beats and sections are, which part to use, what the words are and when they are sung, what the video should show, and a shot list with a prompt for every scene that cuts on the beat.
This repository holds the official SDKs for Python and JavaScript/TypeScript, examples, and the MCP server entry.
- API docs: https://www.songbrain.ai/docs/api
- OpenAPI: https://api.songbrain.ai/v1/openapi.json
- Get a key (5 free songs a month): https://app.songbrain.ai/developers
- Changelog: SDKs · API
Try it now, no key
curl https://api.songbrain.ai/v1/examples/old-truck-home/shot-plan
This returns the story and shot plan of a real song in exactly the format your songs get. GET /v1/examples lists all examples.
What one call returns
One document per song (schema songbrain.song/1). Times are seconds from the start of the song.
a8e8f8237e6fOBSERVED · 2026-10-11Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add songbrain --env FAL_KEY=${FAL_KEY} --env REPLICATE_API_TOKEN=${REPLICATE_API_TOKEN} --env SONGBRAIN_API_KEY=${SONGBRAIN_API_KEY} --env SONGBRAIN_WEBHOOK_SECRET=${SONGBRAIN_WEBHOOK_SECRET} -- npx -y [email protected]{
"mcpServers": {
"songbrain": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"FAL_KEY": "${FAL_KEY}",
"REPLICATE_API_TOKEN": "${REPLICATE_API_TOKEN}",
"SONGBRAIN_API_KEY": "${SONGBRAIN_API_KEY}",
"SONGBRAIN_WEBHOOK_SECRET": "${SONGBRAIN_WEBHOOK_SECRET}"
}
}
}
}Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (5)
songbrain, requests, fastapi, uvicorn, pytest
songbrain
songbrain, flask
@types/node, tsup, typescript
Gates applied: no_behavioural_pass.
a8e8f8237e6ffull audit observations/trust-audit/mcp-server/songbrain-ai__songbrain.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-11 | a8e8f8237e6f | SAFE | B | 89 | first audit |
Questions
What is the songbrain MCP server?
Song in, video plan out — official SDKs (Python, TypeScript), examples and MCP entry for the Songbrain music analysis API for AI video
Is songbrain safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does songbrain need?
It reads FAL_KEY, REPLICATE_API_TOKEN, SONGBRAIN_API_KEY and SONGBRAIN_WEBHOOK_SECRET from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does songbrain run?
It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as songbrain at 0.3.0.
How current is this page?
The grade is for one exact copy of the source (a8e8f8237e6f), read on 2026-10-11. The repository is watched and re-audited when it changes.