
Agent Security Scanner Mcp
io.github.sinewaveaiPublished by GitHub account sinewaveaiv2.0.1Updated Oct 24, 2026
Security layer for AI agents: blocks prompt injection, detects fake packages, scans vulnerabilities.
Overview
Local security scanner that checks AI-written code, prompts, MCP servers, and suggested packages for vulnerabilities and injection risks.
- What you can do
- Runs rule-based scans over a project, a diff, a single file, a prompt, or an MCP server and returns findings with an A-F grade. Tool families cover code and repo security, MCP and skill auditing, prompt and action safety, package hallucination detection, SBOM generation and vulnerability checks, and compliance evidence. An optional bundled semantic review agent uses an LLM provider to look for context-aware issues.
- When to use it
- Use it before trusting code, dependencies, prompts, or MCP tools produced or suggested by an AI agent, and before opening a pull request or adding a new MCP server. It complements rather than replaces tools like npm audit.
- Requirements
- Runs locally as an npm package over stdio; Node.js and npx are needed. No accounts, API keys, or environment variables are declared. The optional semantic review agent requires a chosen LLM provider (for example a CLI or OpenAI) and sends code to that provider.
Installation
In SourceWeft
- Open Agent Security Scanner Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Copy-Paste Start
Scan any repo and get an A-F agent security grade:
Install the scanner into your AI coding client:
Replace claude-code with cursor, claude-desktop, windsurf, cline, kilo-code, opencode, or cody.
Audit an MCP server before adding it to an agent:
Check AI-generated imports for package hallucinations:
What It Catches
Screenshots
Project Scan
MCP Server Audit
Package Hallucination Detection
Demos
Run a safe local demo that creates intentionally vulnerable fixtures, scans them, and cleans them up.
Expected demo shape:
Install In Your Agent
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:
Common Workflows
Before You Trust An Agent-Written PR
Before Installing An MCP Server
Before Adding A Dependency Suggested By AI
Add CI
Generate Share Copy From A Real Scan
CLI Reference
All scanner outputs support context-friendly verbosity:
MCP Tools For Agents
When installed as an MCP server, agents get these tool families:
Why Developers Install It
- One
npxcommand 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.
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
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:
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
Source: README.md at commit ef3f20e
Tools
0Version history
1- v2.0.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts