MCP server with six security checks an AI agent runs before it delivers code, installs a package, runs a command or opens a link
pip install slf-guardian-mcp==1.2.0 Copy PIP instructions
Six security checks an AI agent can call before it acts — before it delivers code, installs a dependency, runs a shell or SQL command, opens a link or reads an untrusted page.
One file, no dependencies, stdio transport. Works with Claude Desktop, Cursor, Cline, Windsurf, Continue and anything else that speaks MCP.
Every answer is a single verdict (pass, review, block) plus the evidence behind it, so an agent can branch on it without reading prose.
pip install slf-guardian-mcp # or straight from this repository pip install git+https://github.com/slfguardian/slf-guardian-mcp Get a key curl -X POST https://slfguardian.com/v1/keys \ -H "Content-Type: application/json" \ -d '{"email":"you@example.com"}' 25 calls are free. The raw key is shown once.
{ "mcpServers": { "slf-guardian": { "command": "slf-guardian-mcp", "env": { "SLF_API_KEY": "slf_live_..." } } } } What it catches check_package — the invented dependency. Assistants hallucinate package names; attackers register them. langchain-helper-utils comes back block, no such package, lodahs comes back review, did you mean lodash. The source is the registry itself plus the OSV vulnerability database, with npm postinstall hooks, yanked and abandoned releases, age and download counts.
check_command — the thing you cannot undo. UPDATE users SET plan=1 without a WHERE comes back block, reversible=false; git push --force origin main comes back review with --force-with-lease suggested. Nothing is ever executed.
check_domain — the link before you open it. Registration age and status, DNS, lookalike brands, brand in a subdomain, punycode, shorteners, disposable hosting, abuse-heavy TLDs. The site itself is never contacted.
audit_code — before you hand the file over. Remote code execution (curl | bash), environment and credential exfiltration, reverse shells, destructive commands, hidden base64, hard-coded secrets, install-time hooks, shell=True, pickle.loads, TLS verification turned off.
These are detectors, not proofs. A pass means no known pattern matched, not that the input is safe; a finding is evidence to look at, not a conviction. Nothing submitted is executed, and the analysis is static.
HTTP API and OpenAPI description: https://slfguardian.com/api
mcp security ai-agent prompt-injection slopsquatting supply-chain code-audit llm-tools
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




