Code Guard MCP server
Security scan for AI-generated code: injection, SSRF, secrets, weak crypto, unsafe deserialization.
0 stars35 downloads/wk
Reviews
Write oneNobody has reviewed Code Guard yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Code Guard tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.9 · 2026-09-23 · same rubric, same numbers if you re-run it
- Code scan34 source files scanned15/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 1 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Findings (2)
- mediumsubprocess with shell=True
exec.shell-truecore/engines/code.js: …hell\s*=\s*True/, msg: 'subprocess with shell=True → command injection.', fix: 'Pass an ar…
- mediumeval / new Function used
exec.evalcore/engines/code.js: …', lang: 'js', re: /\beval\s*\(/, msg: 'eval() can execute arbitrary code.', fix: 'Av…
How Code Guard compares
Against every graded Finance MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 77/100
- higher than 55% of 1,761 Finance servers
- Downloads a week
- 35
- more than 27% of 421 Finance servers with a package
Install Code Guard in Claude Code, Cursor or VS Code
Runs npx -y @mlawsonking/code-guard-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add code-guard-mcp -- npx -y @mlawsonking/code-guard-mcp
What the publisher says
From the Code Guard repository's README, as published. We do not edit it. Read it on GitHub
Deterministic checks for AI agents, with the misses written down
Deterministic detection of known attack patterns against the things an agent does: installing a package, reading untrusted text or email, following a link, sending money, writing code. No LLM anywhere in the detection path. Same input, same verdict, every time, with a rule id and a ruleset version attached to each one. Free, MIT, and the complete product runs locally.
This is a tripwire, not a blocker. It detects patterns it has rules for. It does not stop an attacker who reads those rules, and the rules are public. What determinism buys is not protection, it is evidence: a verdict you can reproduce, diff between commits, and put in a check that fails when your agent's exposure changes.
How well it works, measured
CORPUS.md is the answer, produced by running node scripts/corpus-report.js. Nothing in it is an estimate and CI fails if a case stops behaving the way it is recorded.
<!-- corpus:start -->
<!-- corpus:end -->
The injection row is the honest one: 3 of 7. Reword an attack and the rules score it zero, and four such rewordings live in the corpus as recorded misses. The false-positive column is zero across 11 ordinary cases, which matters just as much, because a checker that fires on git commit -m "fix $(whoami) thing" gets switched off and then detects nothing at all.
Every claim on this page maps to a case in the corpus. If a sentence here cannot be reproduced by running it, it should not be here.
What it is, and what it is not
Every check is a regex against a known pattern, a Unicode or structural test, or a lookup against a public list: OSV, OFAC, HIBP, Spamhaus, DNS, RDAP, an Ethereum RPC node. Nothing here is a classifier and nothing here understands what it reads. Where a check could not run, the response says so and never reports a pass in its place. For an actual boundary you want permissions or a sandbox, and you should run both.
Guide: Why your AI agent needs deterministic guardrails.
The tools
The hosted URLs are a free shared mirror of the same engines, rate-limited and with no SLA. There is no paid tier: if you need volume or privacy, run it locally, where there is no limit and nothing leaves the machine.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Code Guard: common questions
- Is Code Guard MCP server safe?
- Mostly: it is graded B (77/100). Read the Code Guard safety report
- How do I install Code Guard?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Code Guard need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Code Guard maintained?
- The last commit was 42 days ago (2026-09-23). The latest release is v1.3.0.
- What can I use instead of Code Guard?
- Servers from other publishers that do the same job: Binance (security-first) + crypto analyst MCP server, Quantum Readiness Scan MCP server and Blockrun MCP server.
- How does Code Guard compare with other Finance MCP servers?
- safety score 77/100 (higher than 55% of 1,761 Finance servers); downloads a week 35 (more than 27% of 421 Finance servers with a package). Full comparison.
Alternatives to Code Guard
Same job from other publishers: the closest match first, then the best rated.
- Binance (security-first) + crypto analystSecurity-first Binance MCP. 26 tools, human-confirmed spot trades, offline quant research.not reviewedGrowingB
- Quantum Readiness ScanLocal crypto inventory for developers and AI agents; coverage and limits inside the CBOM.not reviewedGrowingA
- BlockrunWeb search, deep research, prediction markets & crypto data for AI agents. Pay per call via x402.not reviewedEstablishedB
- Yolfi Payments MCPLet AI agents add Yolfi crypto checkout, paylinks, webhooks, and status checks.not reviewedEstablishedA
AlgoVault — Crypto Quant Trade CallsThe Brain Layer for AI Trading Agents — quant calls + cross-venue arb across perp venues via MCP.not reviewedEstablishedA