
SafeWeave
dev.safeweavePublished by safeweave.devOfficial publisherv0.7.5Updated Oct 27, 2026
Security scanner for AI-written code: SAST, secrets, dependencies, IaC, containers and DAST.
Overview
SafeWeave is a security scanner for AI-written code that lets an assistant scan a project for vulnerabilities, leaked secrets, risky dependencies, IaC and…
- What you can do
- Scan source code for vulnerabilities such as SQL injection, XSS, SSRF and insecure crypto
- Detect hardcoded secrets, API keys, tokens and private keys in source
- Check npm, pip, Go and Cargo dependencies for known CVEs and risky licenses
- Scan Terraform, Dockerfile and Kubernetes configs, container images and API posture
- Apply compliance profiles such as standard, hardened, owasp, soc2, pci-dss or hipaa
- Run runtime DAST scans against a running app on paid cloud plans
- When to use it
- Useful when you want an assistant to check code it or you just wrote before committing, pushing or opening a pull request, and to fix the findings in the same turn. Also suited to routine dependency, secret and infrastructure-configuration checks inside an MCP-capable editor.
- Requirements
- Runs as a remote endpoint or as a local npm package (safeweave-mcp) via npx, or via Docker with SSE. OAuth is declared as required; a SAFEWEAVE_LICENSE_KEY is optional (10-scan trial without one, free account for 7 local scanners, paid plans for DAST and hosted scans). Scanner binaries are downloaded on first use, so internet access is needed; macOS, Linux and Windows x64 are supported.
Installation
In SourceWeft
- Open SafeWeave in the dashboard and add it to a workspace.
- Connect the required credentials. They are stored privately and never shown on public pages.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/dev.safeweave%2Fsafeweave/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.
{
"mcpServers": {
"safeweave": {
"type": "http",
"url": "https://mcp.safeweave.dev/mcp"
}
}
}README
SafeWeave
Security scanner for AI-written code. SafeWeave runs inside your AI editor over MCP (Claude Code, Cursor, VS Code, Windsurf) and checks your code for vulnerabilities, leaked secrets, risky dependencies, IaC and container issues, so your assistant can fix findings in the same turn.
- npm:
safeweave-mcp - Official MCP Registry:
dev.safeweave/safeweave - Website: safeweave.dev · try a scan without signing up at safeweave.dev/scan
This repository is the open-core part of SafeWeave: the scanner engines (packages/scanners), the scan gateway (packages/gateway), shared types (packages/common), Docker files and the Claude Code skill. The MCP server itself ships on npm.
Quick Start
Run one command. It downloads the scanners and configures every editor it finds:
Or add it to your editor's MCP config yourself:
The key is optional. Without one you get a 10-scan trial (SAST, secrets and dependencies). A free account at safeweave.dev/signup unlocks unlimited local scans with 7 scanners.
Plans
See safeweave.dev/pricing for details.
Alternative: Docker
If you prefer running via Docker:
How Scanner Binaries Work
SafeWeave automatically downloads and manages the scanner binaries it needs on first use.
- Binaries are resolved in order: system PATH →
~/.safeweave/bin/cache → auto-download - If you already have
gitleaksortrivyinstalled via Homebrew/apt, those are used (never shadowed) - For SAST, system
semgrepis preferred; if not found,opengrep(a standalone Semgrep-compatible fork) is downloaded — no Python required - Downloads happen in the background at startup — the server is ready immediately
- Versions are pinned and updated with each SafeWeave release
- If a download fails (no internet), that scanner is skipped gracefully
Supported platforms: macOS (arm64, x64), Linux (arm64, x64), Windows (x64)
Cache location:
To force a re-download: rm -rf ~/.safeweave/bin ~/.safeweave/meta
What's Included
MCP Integration
Works with any MCP-compatible editor — Cursor, Claude Code, VS Code, Windsurf, and more.
Once configured (see Quick Start above), ask your AI:
- "Scan this project for security vulnerabilities"
- "Check my dependencies for CVEs"
- "Scan for hardcoded secrets"
- "Run an IaC misconfiguration scan"
If running via Docker, use the SSE transport instead:
HTTP API
Health Check
Run a Scan
Scan Specific Scanners
Compliance Profiles
Built-in profiles: standard, hardened, owasp, soc2, pci-dss, hipaa
Set via MCP set_profile tool or create a custom .safeweave/profile.yaml in your project.
Configuration
Environment Variables
Claude Code Skill: Auto-Scan Before Push
SafeWeave includes a Claude Code skill that automatically scans your code before every git commit, git push, or PR creation.
Install the skill
Copy the skill to your Claude Code skills directory:
Or clone and copy:
What happens after install
Once installed, Claude Code automatically runs a SafeWeave scan whenever you say "commit", "push", "ship it", or "create a PR":
Prerequisites
SafeWeave MCP server must be configured. Run npx safeweave-mcp to set it up automatically.
Verify
Start a new Claude Code session and ask it to commit code. You should see a SafeWeave scan run before the git operation.
License
MIT. See LICENSE.
Source: README.md at commit 8cb96a9
Tools
0Version history
2- v0.7.5LatestOct 20, 2026
- v0.7.4Oct 19, 2026
Score
85% 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 daysRequired25 pts
- Auth declaredRequired10 pts
- 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