safe-anything
Offline scanner for code risks, leaked secrets and AI agent configuration
Install
See the repository for setupWhat it does
safe-anything is a command-line security scanner written in Rust. A single run walks a repository and looks for known dangerous patterns across nine programming languages plus SQL, including injection flaws, cross-site scripting, unsafe deserialization, weak cryptography and disabled TLS checks. It also checks for committed credentials, environment-file mistakes and secrets placed behind public build prefixes, redacting what it finds in the output.
Beyond application code, the tool inspects Android and iOS settings, Dockerfiles, GitHub Actions workflows, Kubernetes manifests, Terraform and nginx configuration. It queries OSV.dev to match locked dependency versions against known advisories, and it reviews MCP server definitions and agent settings for risky permissions, unpinned packages or plain-text tokens.
It is aimed at developers who want a fast pre-commit or CI gate. Install via cargo or npx, run it against a path, and optionally emit JSON or SARIF; it also runs as an MCP server for Claude Code and Codex, and as a Claude Code plugin. Limitations: it matches patterns rather than tracing data flow, so a clean scan is not proof of safety, and some rules produce false positives.
Compatibility and authentication
- Connection
- Local
- Transports
- Unspecified
- Authentication
- Unknown
Security and permissions
- When you run the server locally, it runs with your user permissions.
- Authentication type: Unknown.
Repository data
- Stars
- 321
- Last push
- Nov 23, 2026
- License
- MIT
- Archived
- No
FAQ
- What license does safe-anything use?
- MIT
- Does safe-anything run locally or remotely?
- It runs locally.
- Is safe-anything an official server?
- It is listed as a community server.
Embed a listing badge
<a href="https://aiagentsmarketplace.dev/mcp/safe-anything"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
Comments
No comments yet.