1. Conduid
  2. Developer Tools
  3. Agent Security Scanner MCP
MCP server · Developer Tools

Agent Security Scanner MCP

Security scanner MCP server for AI coding agents. Prompt injection firewall, package hallucination detection (4.3M+ packages), 1000+ vulnerability rules with AST & taint analysis, auto-fix.

77Good

Scored 4 hours ago · breakdown

About Agent Security Scanner MCP

Agent Security Scanner MCP is an MCP server published by sinewaveai in the Developer Tools category: security scanner MCP server for AI coding agents. Prompt injection firewall, package hallucination detection (4.3M+ packages), 1000+ vulnerability rules with AST & taint analysis, auto-fix.

The repository has 124 stars and 12 forks, with the last commit yesterday. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/sinewaveai/agent-security-scanner-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (22)

check_packageCheck if a package name is legitimate or potentially hallucinated (AI-invented)

Parameters not published.

clawproof_healthAlias for scanner_health (deprecated, use scanner_health instead)

Parameters not published.

evaluate_complianceEvaluate a project against compliance frameworks (SOC2-technical, GDPR-technical, AIUC-1). Collects evidence from code scans, SBOM, vulnerability checks, and hallucination detection, then evaluates controls. Optionally saves timestamped evidence bundle.

Parameters not published.

fix_securityScan a file and return fixes. Use verbosity=

Parameters not published.

get_compliance_controlsLook up compliance controls with evaluation criteria. Supports multiple frameworks: aiuc-1 (default), soc2-technical, gdpr-technical. Filter by domain, control IDs, or OWASP LLM tags.

Parameters not published.

list_package_statsList statistics about loaded package lists for hallucination detection

Parameters not published.

list_security_rulesList all available security fix templates and their descriptions

Parameters not published.

sbom_check_hallucinationsCheck all packages in an SBOM against official registries to detect hallucinated (AI-invented) package names. Supports npm, pypi, rubygems, dart, perl, raku, crates. Go/Java marked as unsupported.

Parameters not published.

sbom_diffCompare current project SBOM against a stored baseline. Reports added, removed, and version-changed packages. Use save_baseline=true to create initial baseline.

Parameters not published.

sbom_export_reportGenerate an HTML or JSON audit report from SBOM data, optionally enriched with vulnerability scan results. Suitable for PCI-DSS and compliance audits.

Parameters not published.

Show all 22 tools
sbom_generateGenerate a CycloneDX v1.5 SBOM for a project. Discovers all dependencies (direct + transitive) from lock files and manifests across Node.js, Python, Go, Rust, Ruby, Java. Use verbosity=

Parameters not published.

sbom_scan_vulnerabilitiesCross-reference SBOM components against OSV.dev vulnerability database. Returns CVE IDs, CVSS scores, severity, and fix recommendations. Accepts directory_path (generates fresh) or sbom_path (loads saved artifact).

Parameters not published.

scan_agent_actionPre-execution security check for agent actions (bash, file_write, file_read, http_request, file_delete, cron, process_spawn, git, docker). Returns ALLOW/WARN/BLOCK.

Parameters not published.

scan_agent_promptScan a prompt for malicious intent. Returns BLOCK/WARN/LOG/ALLOW. Use verbosity=

Parameters not published.

scan_git_diffScan git diff for new security vulnerabilities. Only reports issues on changed lines. Use for PR reviews.

Parameters not published.

scan_mcp_serverScan an MCP server

Parameters not published.

scan_packagesScan code for package imports and check for hallucinated (AI-invented) packages. Use verbosity=

Parameters not published.

scan_projectScan an entire directory for security vulnerabilities with .gitignore support and security grading. Use verbosity=

Parameters not published.

scan_securityScan a file for security vulnerabilities. Use verbosity=

Parameters not published.

scan_skillDeep security scan of an OpenClaw skill. Multi-layer analysis: prompt injection detection, code analysis (AST+taint), ClawHavoc malware signatures, package supply chain verification, rug pull detection. Returns security grade A-F with detailed findings.

Parameters not published.

scanner_healthCheck plugin health: engine status, daemon status, package data availability

Parameters not published.

score_aivssScore findings using OWASP AIVSS v2. Accepts any scanner output or raw findings JSON. Returns per-finding AIVSS scores (0-10) and aggregate posture. Use verbosity=

Parameters not published.

Ask AI

✦

Ask AI about Agent Security Scanner MCP

Powered by Claude · Grounded in docs

I know everything about Agent Security Scanner MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 4 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

1 check has not been run yet.

Releases

v4.4.5v4.4.5 — Version Bump for Republish · 22 Jun 2026Summary Empty patch release. Tarball contents are byte-identical to [v4.4.4](https://github.com/sinewaveai/agent-security-scanner-mcp/releases/tag/v4.4.4); only the version number changes — for use when a fresh, unused version number is…
v4.4.4v4.4.4 — Dependency Updates · 22 Jun 2026🔧 Dependency Updates hono**: 4.12.23 → 4.12.26 (web framework, patch updates across root + 3 subpackages) qs**: 6.15.0 → 6.15.2 (root + /mcp-server-full) tar**: 7.5.11 → 7.5.16 (root) form-data**: 4.0.5 → 4.0.6 (/code-review-agent) vite**…
v4.4.3v4.4.3 — Dependency Updates · 8 Jun 2026🔧 Dependency Updates hono**: 4.12.18 → 4.12.23 (web framework, patch updates across all subpackages) vitest** (dev): 3.2.4 → 4.1.0 in subpackages (test runner major bump; root vitest continues to drive CI, so no behavior change) 📦 Changes…
v4.4.2v4.4.2 — Dependency Updates · 24 May 2026🔧 Dependency Updates qs**: 6.15.0 → 6.15.2 (bug fixes for stringify/parse functions) postcss**: 8.5.6/8.5.8 → 8.5.14 (dev dependency updates) 📦 Changes chore(deps): bump qs from 6.15.0 to 6.15.2 in /prooflayer-scanner (#92) chore(deps):…
v4.4.0v4.4.0 — Fix missing src files in published tarball · 12 May 2026Bug fix Prior releases imported four files at runtime that were not declared in the published tarball, causing `ERR_MODULE_NOT_FOUND` when the package was installed globally and invoked via the composite Security Scan action. The following…

README

agent-security-scanner-mcp

Security scanner for AI coding agents, MCP servers, prompts, and AI-suggested packages.

Run it before Claude Code, Cursor, Windsurf, Cline, OpenCode, or another agent trusts new code, tools, prompts, or dependencies.

npm downloads npm version CI

Copy-Paste Start

Scan any repo and get an A-F agent security grade:

npx agent-security-scanner-mcp scan-project . --verbosity compact

Install the scanner into your AI coding client:

npx agent-security-scanner-mcp init claude-code

Replace claude-code with cursor, claude-desktop, windsurf, cline, kilo-code, opencode, or cody.

Audit an MCP server before adding it to an agent:

npx agent-security-scanner-mcp scan-mcp ./path/to/mcp-server --verbosity compact

Check AI-generated imports for package hallucinations:

npx agent-security-scanner-mcp scan-packages ./src/app.ts npm --verbosity compact

What It Catches

Risk Why agents need it Command
Vulnerable generated code Agents can introduce SQL injection, XSS, command injection, unsafe crypto, and secrets scan-project, scan-security, scan-diff
MCP server attacks MCP tools can poison descriptions, spoof names, exfiltrate env vars, or execute commands scan-mcp
Prompt injection Agents often process untrusted docs, tickets, pages, and tool output scan-prompt
Unsafe agent actions Catch dangerous shell/file/network actions before execution scan-action
Hallucinated packages AI often invents dependency names that attackers can later squat check-package, scan-packages
SBOM and CVEs Generate CycloneDX SBOMs and scan dependencies with OSV.dev sbom-generate, sbom-vulnerabilities
Semantic review LLM-powered review that uses project intent to find context-aware issues cr-agent

Screenshots

Project Scan

Project scan demo

MCP Server Audit

MCP audit demo

Package Hallucination Detection

Package hallucination demo

Demos

Run a safe local demo that creates intentionally vulnerable fixtures, scans them, and cleans them up.

# MCP audit demo: tool poisoning, spoofed tool name, command execution, secret exposure
npx agent-security-scanner-mcp demo --type mcp --no-prompt

# Package hallucination demo: real imports mixed with fake AI-generated package names
npx agent-security-scanner-mcp demo --type packages --no-prompt

Expected demo shape:

{
  "grade": "F",
  "findings_count": 8,
  "findings": [
    {
      "rule": "mcp.description-injection",
      "severity": "ERROR",
      "message": "Tool description contains imperative language directed at the LLM."
    },
    {
      "rule": "mcp.tool-name-spoofing",
      "severity": "ERROR",
      "message": "Tool name is close to a well-known MCP tool name."
    }
  ]
}

Install In Your Agent

npx agent-security-scanner-mcp init claude-code
Client Setup
Claude Code npx agent-security-scanner-mcp init claude-code
Cursor npx agent-security-scanner-mcp init cursor
Claude Desktop npx agent-security-scanner-mcp init claude-desktop
Windsurf npx agent-security-scanner-mcp init windsurf
Cline npx agent-security-scanner-mcp init cline
Kilo Code npx agent-security-scanner-mcp init kilo-code
OpenCode npx agent-security-scanner-mcp init opencode
Cody npx agent-security-scanner-mcp init cody
Interactive picker npx agent-security-scanner-mcp init

Then restart the client. Your agent can call the scanner as an MCP tool.

Agent Playbook

Paste this into an agent task when you want it to work safely:

Before trusting new code, dependencies, prompts, or MCP tools, run:

1. npx agent-security-scanner-mcp scan-project . --verbosity compact
2. npx agent-security-scanner-mcp scan-packages ./src/app.ts npm --verbosity compact when imports change
3. npx agent-security-scanner-mcp scan-mcp ./path/to/mcp-server --verbosity compact before adding MCP servers
4. npx agent-security-scanner-mcp scan-diff --base main --target HEAD before opening a PR

Fix high-confidence security findings before continuing.

Common Workflows

Before You Trust An Agent-Written PR

npx agent-security-scanner-mcp scan-diff --base main --target HEAD --verbosity compact
npx agent-security-scanner-mcp scan-packages ./src/app.ts npm --verbosity compact

Before Installing An MCP Server

npx agent-security-scanner-mcp scan-mcp ./path/to/mcp-server --verbosity compact

Before Adding A Dependency Suggested By AI

npx agent-security-scanner-mcp check-package express npm
npx agent-security-scanner-mcp scan-packages ./package.json npm --verbosity compact

Add CI

npx agent-security-scanner-mcp init-ci github

Generate Share Copy From A Real Scan

npx agent-security-scanner-mcp scan-project . --verbosity compact > scan-result.json
npx agent-security-scanner-mcp share-kit --scan-result scan-result.json --output share-kit.md

CLI Reference

Command Use
scan-project <dir> Full project scan with A-F grade
scan-security <file> Single-file security scan
scan-diff --base main --target HEAD Scan changed files only
scan-mcp <path> Audit an MCP server before install
scan-prompt "<text>" Detect prompt injection and jailbreak attempts
scan-action <type> <value> Pre-execution safety check for shell/file/network actions
check-package <name> <ecosystem> Verify one package exists
scan-packages <file> <ecosystem> Verify imports/dependencies in a file
doctor Check local setup health
quickstart --client cursor Generate repo-specific next steps
share-kit Generate public-safe launch/share copy
export-vanta Export scan evidence to the ProofLayer Vanta integration

All scanner outputs support context-friendly verbosity:

--verbosity minimal   # counts only, best for CI
--verbosity compact   # default, best for agents and humans
--verbosity full      # audit/debug detail

MCP Tools For Agents

When installed as an MCP server, agents get these tool families:

Tool family Purpose
scan_security, fix_security, scan_git_diff, scan_project Code and repo security
scan_mcp_server, scan_skill MCP and AI skill security
scan_agent_prompt, scan_agent_action Prompt/action safety
check_package, scan_packages Package hallucination detection
sbom_generate, sbom_scan_vulnerabilities, sbom_diff, sbom_export_report Supply-chain and release evidence
get_compliance_controls, evaluate_compliance SOC2/GDPR/AIUC-1 technical evidence
scanner_health Runtime diagnostics

Why Developers Install It

  • One npx command gives an A-F security grade for AI-written code.
  • MCP-specific checks catch risks that normal SAST tools miss.
  • Package hallucination detection checks 4.3M+ package names across npm, PyPI, RubyGems, crates.io, pub.dev, CPAN, and raku.land.
  • Output is compact by default so coding agents can read it without burning the context window.
  • Works as a CLI, MCP server, GitHub Action workflow, Apify Actor, and semantic review agent.
  • MIT licensed.

Semantic Code Review

cr-agent is bundled with the npm package for LLM-powered semantic review. It reads project intent, then looks for code that violates that intent.

npx cr-agent analyze ./path/to/project -p claude-cli --verbose
npx cr-agent analyze ./path/to/project -p openai --format sarif

Use it when rule-based scanning is not enough and the question is, "Does this code make sense for what this project is supposed to do?"

SBOM And Compliance Evidence

npx agent-security-scanner-mcp sbom-generate .
npx agent-security-scanner-mcp sbom-vulnerabilities .
npx agent-security-scanner-mcp sbom-check-hallucinations .
npx agent-security-scanner-mcp evaluate-compliance . --framework soc2-technical

Useful before releases, SOC 2 evidence collection, vendor reviews, and AI-generated dependency changes.

Apify Actor

Run the scanner as an Apify Actor when you want a hosted API or scheduled scans:

{
  "actorId": "folkloric_morale/agent-security-scanner",
  "input": {
    "target": "repository",
    "repoUrl": "https://github.com/your-org/your-agent.git",
    "repositoryScanMode": "quick",
    "includeTestFiles": false,
    "maxRepositoryFiles": 150,
    "severityThreshold": "medium"
  }
}

Latest Release

v4.5.8 adds diff-scoped cr-agent semantic review, fixes nested repository diff lookups, and filters semantic findings to changed hunks so PR reviews stay focused on code that actually changed.

Detailed release history lives in CHANGELOG.md. The older README-embedded changelog is archived at archive/README_CHANGELOG_ARCHIVE.md.

FAQ

Is this only for MCP servers? No. It scans normal repos, diffs, prompts, actions, packages, SBOMs, MCP servers, and AI skills.

Does it send my source code anywhere? Rule-based CLI and MCP scans are local. cr-agent uses the provider you choose for semantic review.

Is it a replacement for npm audit? No. It complements npm audit by catching AI-specific risks: hallucinated packages, prompt injection, MCP tool poisoning, unsafe agent actions, and vulnerable generated code.

What should I run first? Run npx agent-security-scanner-mcp scan-project . --verbosity compact.

Links

License

MIT

README fetched from the repository 4 hours ago. The original is authoritative.

Questions

About Agent Security Scanner MCP

How do I install Agent Security Scanner MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Agent Security Scanner MCP safe to use with an AI agent?

Its trust score is 77 out of 100 (good). It passes 4 of the 5 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Agent Security Scanner MCP still maintained?

Yes — the latest release is v4.4.5 (22 Jun 2026), and the last commit was yesterday. The repository has 124 stars and 33 open issues.