Documentation
Brainbacked is a REST API and an MCP server at https://api.brainbacked.com. Every check is a capability you run with one call and pay for per call.
Quick start
1. Get a key from the form on the home page, or with curl. The key is shown once.
curl -s -X POST https://api.brainbacked.com/v1/signup \
-H "content-type: application/json" \
-d '{"email":"you@company.com"}'
# {"account_id":"acct_...","api_key":"sk_...","starter_credit_usd":0.5}
2. Keep it in an environment variable and run a check.
export BRAINBACKED_API_KEY=sk_...
curl -s https://api.brainbacked.com/v1/runs \
-H "Authorization: Bearer $BRAINBACKED_API_KEY" \
-H "content-type: application/json" \
-d '{
"capability": "vuln.package",
"input": {"ecosystem":"npm","name":"lodash","version":"4.17.20"},
"max_usd": 0.0005
}'
3. Read the findings. This is the start of a real response (shortened):
{
"id": "run_Cb8GEcg167AiUAAwAWvD",
"capability": "vuln.package",
"status": "succeeded",
"output": {
"schema": "security-findings/v1",
"target": "npm:lodash@4.17.20",
"summary": {
"critical": 0,
"high": 2,
"medium": 2,
"low": 0,
"info": 0,
"unknown": 0
},
"findings": [
{
"title": "Command Injection in lodash",
"severity": "high",
"identifiers": [
"GHSA-35jh-r3h4-6jhm",
"CVE-2021-23337",
"CWE-77",
"CWE-94"
],
"fixed_versions": [
"4.17.21"
],
"remediation": {
"summary": "Upgrade lodash to 4.17.21 or later.",
"action": "upgrade",
"detail": {
"suggested_version": "4.17.21"
}
}
},
"..."
],
"coverage": {
"checked": [
"Known vulnerabilities and known malicious packages in OSV.dev for this exact version (queried 2026-12-04T01:24:57.003Z)",
"Known exploitation: CISA KEV catalog 2026.12.03",
"Exploit likelihood: FIRST EPSS (today's scores)"
],
"not_checked": [
"Whether your code calls the vulnerable function (reachability)",
"Malicious packages not yet reported to OSV",
"Vulnerabilities not yet published to OSV sources"
]
}
},
"cost_usd": 0.0005,
"max_cost_usd": 0.0005
}
Authentication
Send the key in a header on every call: Authorization: Bearer sk_.... The same key works for REST and MCP. There are no cookies or sessions.
We store only a hash of each key, so a lost key cannot be shown again. Each email address can have one account. Keep keys out of source code; the secrets check will find them there.
Public routes that need no key: GET /v1/capabilities, GET /v1/capabilities/{id}, GET /v1/search?q=, POST /v1/signup, POST /v1/optout.
Runs
A run is one call to one capability. POST /v1/runs waits for the result and returns it in the response.
| Request field | Meaning |
|---|---|
capability | Capability id, e.g. vuln.package. See capabilities. |
input | The capability's input object. Each capability page has the schema. |
max_usd | Required. The most you accept to pay. Must be at least the capability's maximum per run. |
idempotency_key | Optional (or the Idempotency-Key header). Sending the same key again returns the first run instead of starting a new one. |
| Response field | Meaning |
|---|---|
id | Run id, run_... |
status | succeeded, failed, or running while the charge is being confirmed. A running result is not shown until the charge settles; fetch it again with GET /v1/runs/{id}. |
output | The findings report (see findings format). |
artifacts | Extra result files, such as a CycloneDX cryptography bill of materials. Each has a file_id you can pass to later runs, and expires after 7 days. |
cost_usd, max_cost_usd | What this run cost, and what was held. |
error | null, or {class, message} for a failed run. Failed runs cost nothing. |
created_at, finished_at, duration_ms | Timing. |
Other routes:
GET /v1/runs/{id}andGET /v1/runs: one run, or your recent runs.POST /v1/quotewithcapabilityandinput: the price and maximum cost, without running.GET /v1/balance:available_usd,held_usd,spent_usd.GET /v1/capabilities/{id}: input schema (JSON Schema), price, maximum cost, data policy and network policy.
Files and upload
Checks that read code take a file id. Upload the raw bytes, then pass the returned id as input.file.
git archive --format=zip HEAD -o repo.zip
curl -s "https://api.brainbacked.com/v1/files?name=repo.zip" \
-H "Authorization: Bearer $BRAINBACKED_API_KEY" \
-H "content-type: application/zip" --data-binary @repo.zip
# {"id":"file_...","name":"repo.zip","size":786,"expires_at":"...", ...}
- Up to 20 MB through
POST /v1/files, and 10 MB through the MCPupload_filetool (base64). - Zip, tar.gz, or a single text file, as each capability states.
- Leave out
node_modules, virtual environments and build output.git archivedoes this for you. - Files and result files are deleted after 7 days. A file belongs to the account that uploaded it; other accounts cannot use its id.
MCP setup
The MCP server is at https://api.brainbacked.com/mcp (streamable HTTP) and takes the same bearer key. Set the key in your shell first: export BRAINBACKED_API_KEY=sk_...
Claude Code
claude mcp add --transport http brainbacked https://api.brainbacked.com/mcp \
--header "Authorization: Bearer $BRAINBACKED_API_KEY"
Add --scope user to use it in every project. Run /mcp inside Claude Code to check the connection.
Cursor
Add this to .cursor/mcp.json in a project, or ~/.cursor/mcp.json for every project:
{
"mcpServers": {
"brainbacked": {
"url": "https://api.brainbacked.com/mcp",
"headers": {
"Authorization": "Bearer ${env:BRAINBACKED_API_KEY}"
}
}
}
}
Codex
Add this to ~/.codex/config.toml. Codex reads the key from the named environment variable and sends it as a bearer token.
[mcp_servers.brainbacked]
url = "https://api.brainbacked.com/mcp"
bearer_token_env_var = "BRAINBACKED_API_KEY"
Tools
| Tool | What it does |
|---|---|
search_capabilities | Find a check by describing the job, e.g. "is lodash 4.17.20 vulnerable". |
get_capability | Input schema, price, maximum cost, data policy and network policy of one capability. |
upload_file | Upload a file as base64 (up to 10 MB) and get a file_id. |
run | Run a capability with capability, input and max_usd. Returns the findings report. |
balance | Available, held and spent credit. |
Findings format
Every capability returns the same report, schema security-findings/v1. It maps to the standards where they fit: vulnerability findings carry OSV, CVE and GHSA ids and CVSS, and inventories ship as CycloneDX.
Report
| Field | Meaning |
|---|---|
schema | security-findings/v1 |
capability, target, generated_at | What ran, on what, and when. |
coverage.checked, coverage.not_checked | What a clean result covers, and what it does not. |
summary | Count of findings per severity. |
findings[] | The issues found (below). |
facts | Observed data that is not a finding: DNS records, handshake details, counts. |
notice | A reminder that a clean result means these checks found nothing, not that the target is secure. |
Finding
| Field | Meaning |
|---|---|
id | Stable across runs: a hash of the rule, asset and location. Use it to track an issue over time. |
kind | vulnerability, secret, misconfiguration, weak_crypto, quantum_vulnerable, exposure, policy or info. |
severity, severity_basis | critical to info or unknown, and how it was set: a CVSS 3.x base score computed from the vector, the advisory's rating, or the rule's default. |
confidence | confirmed, high, medium or low. |
basis | observed (seen directly), deterministic (fixed rule on observed data), pattern (heuristic match), model (AI interpretation) or hypothesis (unverified). |
asset, location | Package, file, domain or host; path and line, or DNS record. |
evidence[] | Short supporting facts. Secrets are always redacted. |
source | Engine, engine version, rule and data version. |
identifiers, package, fixed_versions | CVE, GHSA, OSV and CWE ids; the affected package; versions with the fix. |
remediation | summary, an action (upgrade, rotate_secret, change_config, replace_algorithm, add_record, renew_certificate, review) and machine-readable detail, such as the version to upgrade to or the DNS record to publish. |
references, limitations | Links (kept for data attribution) and known limits of this finding. |
Each capability page shows a full real report.
Errors
Errors return a non-2xx status and a JSON body: {"error": "code", "message": "...", "detail": ...}. A run that starts and then fails returns 201 with status: "failed", an error object and cost_usd: 0.
| Status | error | Meaning |
|---|---|---|
| 400 | input_invalid | The input does not match the capability's schema, or a field is malformed. detail lists the problems. |
| 400 | max_usd_required | The run has no max_usd. |
| 400 | empty_file | The upload has no bytes. |
| 401 | unauthorized | No key, or the key is not recognized or revoked. |
| 402 | max_usd_too_low | max_usd is below the capability's maximum per run. detail.max_cost_usd says what to send. |
| 402 | insufficient_funds | The balance is below the run's maximum. detail has available_usd and needed_usd. |
| 403 | target_opted_out | The host asked not to be checked by this service. |
| 404 | capability_not_found | No live capability with that id. |
| 404 | run_not_found | No run with that id on this account. |
| 404 | file_not_found | No file with that id on this account. |
| 409 | email_taken | This email already has an account. |
| 410 | file_gone | The file expired (files last 7 days). |
| 413 | file_too_large | The upload is over the size limit. |
| 429 | rate_limited | Too many signups or opt-out requests from one network. Try again in an hour. |
| 429 | account_target_limit | This account reached its limit for checks that contact other hosts. detail.retry_after_seconds says when to retry. |
| 429 | target_limit | That host was checked recently by this service. detail.retry_after_seconds says when to retry. |
| 429 | service_target_limit | The whole service reached its daily limit for checks that contact other hosts. |
| 503 | limits_unavailable | Checks that contact other hosts are switched off on this server. |
| 500 | internal | Unexpected error on our side. |
Limits
- Checks that contact a host you name (
tls.check,http.headers,domain.security_check,ship.check): a host at most 5 times per 10 minutes and 30 times per day across all users; an account at most 40 per hour and 100 per day; the whole service 2,000 per day. See trust. - Uploads: 20 MB through REST, 10 MB through MCP. Files expire after 7 days.
- Each capability has a time limit, shown on its page. A run that hits it fails and is free.
- Signups: 5 per network per hour, one account per email address.