Leakferret MCP server
io.github.leakferrethq/leakferret·v0.1.13·5 starsContext-aware secret scanner: lets an AI agent scan, verify, and rewrite secrets before committing.
5 stars41 downloads/wk
Reviews
Write oneNobody has reviewed Leakferret yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Leakferret 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-27 · same rubric, same numbers if you re-run it
- Code scan3 source files scanned25/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 27 days ago15/15
- Maintainer identityregistry namespace matches repository owner7/10
How Leakferret compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 91/100
- higher than 88% of 4,460 AI and agents servers
- GitHub stars
- 5
- more than 78% of 2,711 AI and agents servers
- Downloads a week
- 41
- more than 33% of 1,538 AI and agents servers with a package
Install Leakferret in Claude Code, Cursor or VS Code
Runs npx -y @leakferret/mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add leakferret -- npx -y @leakferret/mcp
What the publisher says
From the Leakferret repository's README, as published. We do not edit it. Read it on GitHub
MCP-native secret scanner — verified findings, agent-applied rewrites.
leakferret is one fast Rust binary that is engine, CLI, and MCP server. It finds hardcoded secrets in your code, calls the provider to confirm which ones are actually live, and rewrites the leak in place to read from an environment variable. It runs in your terminal, in CI, and as a tool your coding agent calls before it commits — and the raw secret never leaves your machine.
What it looks like
Say you accidentally commit a real key, plus the usual noise:
# .env — every key below is fabricated for this example
STRIPE_SECRET_KEY=sk_live_FAKE_example_not_a_real_key # fabricated
GITHUB_TOKEN=ghp_FAKE_example_not_a_real_token # fabricated
SENDGRID_API_KEY=${SENDGRID_API_KEY} # a reference — not a leak
ADMIN_PASSWORD=changeme # a placeholder — not a leak
AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE # AWS's public docs exampleleakferret verify calls each provider and tells you what is real and live — and stays quiet on the rest:
$ leakferret verify .
.env
L2 UNKNOWN CRITICAL stripe_secret sk_l..._key
L3 VERIFIED CRITICAL github_token ghp_...oken ← live, rotate it now
2 findings · 1 verified · 1 unknownThe keys above are fabricated, so the VERIFIED line illustrates what a genuinely live key reports — on these examples both would be UNKNOWN.
The ${SENDGRIDAPIKEY} reference, the changeme placeholder, and the well-known AKIAIOSFODNN7EXAMPLE example are recognized and left out — that precision is the point. Then leakferret rewrite --apply rewrites the hardcoded key in your code (it leaves .env files alone — there's nothing sensible to rewrite a secret to there):
# app/billing.rb (fabricated example)
- Stripe.api_key = "sk_live_FAKE_example_not_a_real_key" # fabricated
+ Stripe.api_key = ENV.fetch("STRIPE_API_KEY")…and appends STRIPEAPIKEY= to .env.example with a seed command for your secret manager. Find → confirm live → fix, with almost no false alarms.
The full secret value never leaves your machine. Only a redacted
AKIA...4XYZ preview is ever written to a report, log, or network message.
Quick start
Install however you like — every package ships the same prebuilt binary.
# Ruby gem
gem install leakferret
# npm (CLI)
npm i -g @leakferret/cli
# Go
go install github.com/leakferrethq/leakferret-go/cmd/leakferret@latest
# Native binary — download from GitHub Releases, unpack, and put it on $PATH:
# https://github.com/leakferrethq/leakferret/releases
# Rust, from source
cargo install leakferret-cliThen scan the current directory:
leakferret scan .scan respects .gitignore and also reads dotfiles such as .env. Add --git to walk commit history instead of the working tree.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Leakferret: common questions
- Is Leakferret MCP server safe?
- Yes, by our scan: it is graded A (91/100). Read the Leakferret safety report
- How do I install Leakferret?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Leakferret need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Leakferret maintained?
- The last commit was 65 days ago (2026-08-31). The latest release is v0.1.13.
- What can I use instead of Leakferret?
- Servers from other publishers that do the same job: Agent Security Scanner MCP server, Decionis MCP server and Watch Skill MCP server.
- How does Leakferret compare with other AI and agents MCP servers?
- safety score 91/100 (higher than 88% of 4,460 AI and agents servers); github stars 5 (more than 78% of 2,711 AI and agents servers); downloads a week 41 (more than 33% of 1,538 AI and agents servers with a package). Full comparison.
Alternatives to Leakferret
Same job from other publishers: the closest match first, then the best rated.
- Agent Security ScannerSecurity layer for AI agents: blocks prompt injection, detects fake packages, scans vulnerabilities.not reviewedEstablishedC
- DecionisAuthorize consequential AI agent actions before executionnot reviewedEstablishedA
- Watch SkillWatch video and live sessions, keep timestamped evidence, and verify an agent's own work.not reviewedEstablishedB
- Emilia ProtocolExact-action approval for consequential agent actions: request, track, and verify signed receipts.not reviewedEstablishedB
- MockserverMock, record/replay, verify and chaos-test any HTTP, REST, gRPC or LLM dependency over MCP.not reviewedEstablishedA