npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cybedefend/mcp-server

v0.1.6

Published

**Secure-by-design companion for AI code assistants.** This MCP (Model-Context Protocol) server plugs your favourite LLM (Cursor, Claude, VS Code Copilot Chat…) into the CybeDefend platform.

Readme

CybeDefend MCP Server

Secure-by-design companion for AI code assistants. This MCP (Model-Context Protocol) server plugs your favourite LLM (Cursor, Claude, VS Code Copilot Chat…) into the CybeDefend platform.


🌟 What you get

| Benefit | What it enables in your IDE | | --------------------------- | -------------------------------------------------------------------------------- | | Direct vulnerability access | Fetch SAST, IaC, and SCA findings using your default project (CYBEDEFEND_PROJECT_ID). | | In-IDE remediation | Jump to the exact file/line with code snippets so your AI assistant can fix inline. | | Always up-to-date | Pull the latest results and statuses from CybeDefend as scans complete. | | Zero-setup | One command, no local API proxies, pure STDIO. |

All endpoints are thin wrappers around CybeDefend’s REST API; no data is stored locally.


1 · Quick start

1.1 Prerequisites

  • Node ≥ 18
  • A CybeDefend API key with project-level access

1.2 Install globally (optional)

npm i -g @cybedefend/mcp-server      # always latest version

Tip : You can also rely on npx (see below) – no global install needed.


2 · Using in your AI client

Below are copy-paste snippets for the three most popular MCP clients. Replace the values in bold.

Region selection

  • You can point the server to the right region in two ways, in order of precedence:
    1. API_BASE – full URL to the API (e.g. https://api-eu.cybedefend.com)
    2. REGION – short code: "eu" or "us". Defaults to "us" if omitted or unknown. If both are set, API_BASE wins.

Default project (recommended)

  • Set CYBEDEFEND_PROJECT_ID (your project UUID) so you never have to pass projectId to tools.
  • Precedence: a projectId explicitly provided to a tool overrides CYBEDEFEND_PROJECT_ID.

2.1 Cursor / Claude Desktop (~/.cursor/mcp.json)

{
  "mcpServers": {
    "cybedefend": {
      "command": "npx",           // auto-installs or updates
      "args":   ["-y", "@cybedefend/mcp-server"],
      "env": {
        // Option A – explicit API base (highest precedence)
        // "API_BASE": "https://api-eu.cybedefend.com",

        // Option B – region selector (eu | us), defaults to "us"
        "REGION": "us",

  // Default projectId used by all tools
  "CYBEDEFEND_PROJECT_ID": "proj_********",

        "CYBEDEFEND_API_KEY": "cybe_********"
      }
    }
  }
}

Need a specific version?"args": ["@cybedefend/[email protected]"]

2.2 VS Code – MCP extension

.vscode/mcp.json (user or workspace) :

"servers": {
    "cybedefend": {
      "command": "npx",
      "args": [
        "-y",
        "@cybedefend/mcp-server@latest"
      ],
      "env": {
        // "API_BASE": "https://api-eu.cybedefend.com",
        "REGION": "us",
  "CYBEDEFEND_PROJECT_ID": "proj_****",
        "CYBEDEFEND_API_KEY": "cybe_****"
      }
    }
  }

Run “MCP: Reload servers” from the Command Palette.

2.3 Docker (air-gapped CI, etc.)

docker run --rm -i \
  -e CYBEDEFEND_API_KEY=cybe_*** \
  # Optional: pick region (eu | us) or set API_BASE explicitly
  -e REGION=us \
  # Default projectId used by all tools
  -e CYBEDEFEND_PROJECT_ID=proj_*** \
  ghcr.io/cybedefend/cybedefend-mcp-server:latest

The image is multi-arch (amd64 / arm64) and includes Node runtimes.


3 · Available tools

| Category | Tool name | What it returns | | ------------ | --------------------------- | ---------------------------------------- | | Scan | get_scan | Current state, % progress, counts | | Overview | get_project_overview | Critical/high/… per scanner | | SAST | list_vulnerabilities_sast | Paginated list with filters | | | get_vulnerability_sast | Single finding, code snippet | | IaC | list_vulnerabilities_iac | 〃 | | | get_vulnerability_iac | 〃 | | SCA | list_vulnerabilities_sca | 〃 | | | get_vulnerability_sca | 〃 | | | list_sca_packages | All third-party packages |

Schema for every tool is embedded; assistants receive it automatically.


4 · Typical chat prompts

Assumes CYBEDEFEND_PROJECT_ID is set; you don't need to pass projectId in prompts.

| Prompt | Internally calls | | ---------------------------------------------------- | --------------------------- | | “Scan my repo frontend.zip.” | start_scan | | “How far along is scan abcd-efgh ?” | get_scan | | “Show critical SAST bugs in Java.” | list_vulnerabilities_sast | | “Details of vuln c0ffee.” | get_vulnerability_sast |

(Cursor / Claude will pick the tool + arguments – no manual JSON needed.)


5 · Local development

git clone https://github.com/cybedefend/mcp-server
cd mcp-server
npm i
npm run build              # TS → dist/
node dist/index.js         # runs on STDIO

Tests

npm t           # Vitest + coverage

6 · Publishing a new version (maintainers)

# ensure dist/ is up-to-date
npm run build

# bump + publish – prepare script rebuilds automatically
npm version patch
npm publish --access public

Check before shipping:

npm pack --dry-run | grep dist/index.js   # must be present

7 · Support & feedback

Pull-requests welcome — especially for new tools or language bindings!