agent-security-scanner-mcp
llms.txt122 starsChanged 10 months agoMITView on GitHub
MCP server providing real-time security scanning for AI coding agents. Detects vulnerabilities, hallucinated packages, and prompt injection across 12 languages.
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- security-scannerSkill
The file
We split this llms.txt into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
After writing code: scan_security → fix_security
- Distinctive: line 17
Before committing: scan_packages → scan_security
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# agent-security-scanner-mcp > MCP server providing real-time security scanning for AI coding agents. Detects vulnerabilities, hallucinated packages, and prompt injection across 12 languages. ## Tools - scan_security: Scan a code file for security vulnerabilities using 1700+ rules with AST and taint analysis. Use after writing or editing any code file. Supports JS, TS, Python, Java, Go, PHP, Ruby, C/C++, Dockerfile, Terraform, Kubernetes. Accepts optional output_format: 'sarif' for CI integration. - fix_security: Auto-fix all detected vulnerabilities in a file using 120 fix templates. Use after scan_security finds issues. Returns fixed file content ready to write back. - check_package: Verify a package name is real and not AI-hallucinated. Use before adding any new dependency. Checks against 4.3M+ known packages across npm, PyPI, Go, Maven, RubyGems, Cargo, NuGet. - scan_packages: Scan a code file's imports to detect AI-hallucinated package names. Use before committing code with new imports. Checks all imports against 4.3M+ known packages across 7 ecosystems. - scan_agent_prompt: Detect prompt injection and malicious instructions before execution. Use when receiving instructions from untrusted sources. 56 attack detection rules. Returns risk score (0-100) with BLOCK/WARN/LOG/ALLOW recommendation. - list_security_rules: List all 1700+ security scanning rules and 120 fix templates. Use to check coverage for a specific language or vulnerability type. ## Workflows - After writing code: scan_security → fix_security - Before committing: scan_packages → scan_security - External input: scan_agent_prompt - New dependency: check_package ## Supported Languages JavaScript, TypeScript, Python, Java, Go, PHP, Ruby, C/C++, Dockerfile, Terraform, Kubernetes ## Hallucination Detection Ecosystems npm, PyPI, RubyGems, crates.io, pub.dev, CPAN, raku.land ## Install npx agent-security-scanner-mcp init <client> ## Clients claude-code, claude-desktop, cursor, windsurf, cline, kilo-code, opencode, cody
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

