Skip to content
Bugsieve

API and MCP server

Let an AI assistant or your CI start a scan, wait for it and read the findings, with the flaws attackers are exploiting listed first. Free, with a personal token.

Connect an AI assistant (MCP)

Bugsieve runs a Model Context Protocol server over streamable HTTP at https://bugsieve.com/mcp. Sign in, create an API token under your profile (it needs the scans ability), then add the server to a client such as Claude Code, Cursor or any MCP client:

{
    "mcpServers": {
        "bugsieve": {
            "type": "http",
            "url": "https://bugsieve.com/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_TOKEN"
            }
        }
    }
}

Machine-readable description: server card. Ask the assistant something like "scan github.com/acme/app and tell me which findings are exploited".

Tools

start_scan(url, ref (optional))
Starts a scan of a GitHub, GitLab or Bitbucket repository and returns its id.
get_scan(scan_id)
Status (queued, running, completed, failed) and counts by severity, plus exploited, fixable and new.
latest_scan(url, ref (optional))
Your latest completed scan of a repository you already scanned, with its id. Instant and uses no scan quota.
list_scans(none)
The repositories you already scanned, newest first, each with its latest completed scan and id. Instant and uses no scan quota.
list_findings(scan_id, severity, category, offset, exploited_only (all optional))
50 open findings per call, exploited first, filter by category or page with offset: package, installed and fixed version, advisory, location. Secret values are never returned.
get_public_report(url)
The latest public summary of a repository Bugsieve has already checked. No scan of your own needed.
check_package(ecosystem, name, version)
Is an npm or PyPI package safe to add? Flags made-up names, known malicious packages, typosquats and install scripts. Call it before adding a dependency.
check_lockfile(kind, content, check_id)
Vulnerable dependencies in a pasted lockfile or SBOM, with no clone. Send kind and content to start, then check_id alone to read the result.

Typical flow: start_scan, poll get_scan until it is completed, then list_findings with exploited_only.

REST API

The same token works for plain HTTP:

curl -X POST https://bugsieve.com/api/v1/scans \
  -H "Authorization: Bearer YOUR_TOKEN" -H "Accept: application/json" \
  -d url=https://github.com/acme/app

curl https://bugsieve.com/api/v1/scans/42 -H "Authorization: Bearer YOUR_TOKEN"

The first call answers 202 with the scan and its id; the second returns the status and counts. Limits are 60 requests a minute per token, and your scan limits apply.

GitHub Action

Fail a build when a dependency has a flaw attackers are exploiting. Save a token as the repository secret BUGSIEVE_TOKEN, then add a step:

- uses: bugsieve/action@v1
  with:
    token: ${{ secrets.BUGSIEVE_TOKEN }}
    fail-on: exploited   # or none, critical, high, medium

The job summary links to the full report. If Bugsieve is unreachable the step warns and passes, unless you set strict: true. For a private repository the step sends the workflow's own GITHUB_TOKEN with the scan (give the job contents: read), so it needs no token saved in Bugsieve; that token is used once and never stored. The API takes it as access_token. Pull requests from forks get no secrets, so the scan is skipped there. Source and options: github.com/bugsieve/action.

Scan policy: .bugsieve.yml

Commit a .bugsieve.yml at the root of the repository to set the policy next to your code. It applies to web, API, Action and MCP scans of that repository. A file that cannot be read is reported as a warning on the scan and the scan runs as if it were absent. Public catalog checks ignore it.

ignore:
  paths: ["tests/**", "fixtures/**"]   # globs on a finding's file path
  ids: ["CVE-2023-1234", "GHSA-xxxx-xxxx-xxxx"]   # a vulnerability id, an alias or a rule id
severity:
  CVE-2023-9999: low                   # critical, high, medium or low; secrets keep their level
fail_on: exploited                     # exploited, critical, high, medium or none

Findings skipped by the file are not stored; the scan shows how many were skipped. The API returns fail_on as policy.fail_on. The GitHub Action's own fail-on input wins when set, and policy.fail_on is used otherwise.

Your own rules: .bugsieve/rules

Put Opengrep rule files (.yml) in .bugsieve/rules and every scan of that repository runs them after the built-in checks. Their findings show under code, with any severity and category your rules set. Rules read the repository only and never fetch anything from the network. They get 90 seconds in total: a rule set that runs longer is dropped without a warning. Public catalog checks never run them.

Exports for tools and auditors

Every completed scan can be downloaded as SARIF (GitHub code scanning), CycloneDX SBOM, OpenVEX, an evidence record, Excel and PDF. The VEX file marks a vulnerability "not affected" only where a person ignored it as not affected or a false positive. The evidence record reports how complete the SBOM is; it never claims compliance.

No account needed

Every public repository checked with Bugsieve has a report page. A guide for AI assistants is at llms.txt.