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 fieldMeaning
capabilityCapability id, e.g. vuln.package. See capabilities.
inputThe capability's input object. Each capability page has the schema.
max_usdRequired. The most you accept to pay. Must be at least the capability's maximum per run.
idempotency_keyOptional (or the Idempotency-Key header). Sending the same key again returns the first run instead of starting a new one.
Response fieldMeaning
idRun id, run_...
statussucceeded, 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}.
outputThe findings report (see findings format).
artifactsExtra 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_usdWhat this run cost, and what was held.
errornull, or {class, message} for a failed run. Failed runs cost nothing.
created_at, finished_at, duration_msTiming.

Other routes:

  • GET /v1/runs/{id} and GET /v1/runs: one run, or your recent runs.
  • POST /v1/quote with capability and input: 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 MCP upload_file tool (base64).
  • Zip, tar.gz, or a single text file, as each capability states.
  • Leave out node_modules, virtual environments and build output. git archive does 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

ToolWhat it does
search_capabilitiesFind a check by describing the job, e.g. "is lodash 4.17.20 vulnerable".
get_capabilityInput schema, price, maximum cost, data policy and network policy of one capability.
upload_fileUpload a file as base64 (up to 10 MB) and get a file_id.
runRun a capability with capability, input and max_usd. Returns the findings report.
balanceAvailable, 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

FieldMeaning
schemasecurity-findings/v1
capability, target, generated_atWhat ran, on what, and when.
coverage.checked, coverage.not_checkedWhat a clean result covers, and what it does not.
summaryCount of findings per severity.
findings[]The issues found (below).
factsObserved data that is not a finding: DNS records, handshake details, counts.
noticeA reminder that a clean result means these checks found nothing, not that the target is secure.

Finding

FieldMeaning
idStable across runs: a hash of the rule, asset and location. Use it to track an issue over time.
kindvulnerability, secret, misconfiguration, weak_crypto, quantum_vulnerable, exposure, policy or info.
severity, severity_basiscritical 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.
confidenceconfirmed, high, medium or low.
basisobserved (seen directly), deterministic (fixed rule on observed data), pattern (heuristic match), model (AI interpretation) or hypothesis (unverified).
asset, locationPackage, file, domain or host; path and line, or DNS record.
evidence[]Short supporting facts. Secrets are always redacted.
sourceEngine, engine version, rule and data version.
identifiers, package, fixed_versionsCVE, GHSA, OSV and CWE ids; the affected package; versions with the fix.
remediationsummary, 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, limitationsLinks (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.

StatuserrorMeaning
400input_invalidThe input does not match the capability's schema, or a field is malformed. detail lists the problems.
400max_usd_requiredThe run has no max_usd.
400empty_fileThe upload has no bytes.
401unauthorizedNo key, or the key is not recognized or revoked.
402max_usd_too_lowmax_usd is below the capability's maximum per run. detail.max_cost_usd says what to send.
402insufficient_fundsThe balance is below the run's maximum. detail has available_usd and needed_usd.
403target_opted_outThe host asked not to be checked by this service.
404capability_not_foundNo live capability with that id.
404run_not_foundNo run with that id on this account.
404file_not_foundNo file with that id on this account.
409email_takenThis email already has an account.
410file_goneThe file expired (files last 7 days).
413file_too_largeThe upload is over the size limit.
429rate_limitedToo many signups or opt-out requests from one network. Try again in an hour.
429account_target_limitThis account reached its limit for checks that contact other hosts. detail.retry_after_seconds says when to retry.
429target_limitThat host was checked recently by this service. detail.retry_after_seconds says when to retry.
429service_target_limitThe whole service reached its daily limit for checks that contact other hosts.
503limits_unavailableChecks that contact other hosts are switched off on this server.
500internalUnexpected 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.