Ghosthunt MCP server
io.github.78degrees/ghosthunt·v1.0.0Find every leaked secret on your machine — API keys in .env files, shell history, and configs.
0 stars54 downloads/wk
Reviews
Write oneNobody has reviewed Ghosthunt yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Ghosthunt tools (2)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
scan_secretsScan your entire machine for leaked API keys, tokens, and credentials.
scan_summaryQuick health check — counts how many secrets are on your machine and gives
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan10 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 qualitystatic API keys via environment variables6/15
- Maintenancelast push 119 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Ghosthunt compares
Against every graded Security MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 72/100
- higher than 37% of 915 Security servers
- Tools
- 2
- the typical Security server has 6
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 54
- more than 45% of 248 Security servers with a package
What its tools let an agent do: 2 read
Install Ghosthunt in Claude Code, Cursor or VS Code
Runs npx -y ghosthunt on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add ghosthunt -- npx -y ghosthunt
What the publisher says
From the Ghosthunt repository's README, as published. We do not edit it. Read it on GitHub
GhostHunt
Find every leaked secret on your machine.
GhostHunt is an MCP server that scans your development machine for API keys, tokens, and credentials hiding in places you forgot to check: .env files scattered across projects, shell history, AWS/SSH/Docker configs, and more.
Everything runs locally. No data leaves your machine.
What It Scans
- Environment files — recursively finds every .env, .env.local, .env.production, etc. under your home directory
- AWS credentials — ~/.aws/credentials and session tokens
- SSH keys — unprotected private keys in ~/.ssh/
- Docker config — registry auth tokens in ~/.docker/config.json
- npm/PyPI tokens — ~/.npmrc, ~/.pypirc auth tokens
- GitHub CLI — OAuth tokens in ~/.config/gh/hosts.yml
- Shell history — API keys pasted into bash, zsh, or fish commands
- Kubernetes — ~/.kube/config credentials
- Netrc — ~/.netrc passwords
- 35+ secret patterns — AWS, Stripe, GitHub, OpenAI, Anthropic, Google, Slack, Twilio, SendGrid, database connection strings, private keys, and more
Install
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claudedesktopconfig.json on macOS):
{
"mcpServers": {
"ghosthunt": {
"command": "npx",
"args": ["-y", "ghosthunt"]
}
}
}Restart Claude Desktop. Then ask Claude: "Scan my machine for leaked secrets"
Direct Usage
npx ghosthuntTools
scan_secrets
Full detailed scan. Returns every finding with file paths, line numbers, severity ratings, and remediation steps.
Example prompt: "Run a full GhostHunt scan and show me everything"
scan_summary
Quick health check. Returns your health score (0-100) and a count by severity. Run this first to see if you have a problem.
Example prompt: "Give me a quick GhostHunt health check"
Example Output
# GhostHunt Scan Report
**Health Score: 37/100** (Critical)
- Secrets found: **12**
- Critical: 3 | High: 5 | Medium: 2 | Low: 2
- Locations scanned: 47
- Scan time: 142ms
## Environment Files (.env)
- **[CRITICAL]** Stripe Live Secret Key
- File: `/Users/you/project-a/.env:4`
- Context: `STRIPE_SECRET_KEY`
- Value: `sk_l****_8xQ`
- **[CRITICAL]** OpenAI API Key
- File: `/Users/you/side-project/.env.local:12`
- Context: `OPENAI_API_KEY`
- Value: `sk-p****kFJ9`
## Shell History
- **[HIGH]** Bearer Token in Header
- File: `/Users/you/.zsh_history:8847`
- Context: `curl -H "Authorization: Bearer sk_live_...`
- Value: `sk_l****_m3K`
## Recommendations
1. **Rotate critical secrets immediately.** Any API key marked CRITICAL
should be revoked and regenerated from the provider's dashboard.
2. **Clear your shell history** of sensitive commands.
3. **Audit your .env files.** Ensure they are in .gitignore.Health Score
Your score starts at 100 and drops based on what GhostHunt finds:
A score below 50 means you have secrets that need immediate attention.
Privacy
GhostHunt runs entirely on your local machine. It does not:
- Send any data to any server
- Phone home or track usage
- Store scan results anywhere
- Access the internet
Your secrets stay on your machine. The scan results stay in your Claude conversation.
License
MIT
Nothing above is checked by us. What we check is on the safety report.
Ghosthunt: common questions
- Is Ghosthunt MCP server safe?
- Mostly: it is graded B (72/100). Read the Ghosthunt safety report
- How do I install Ghosthunt?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Ghosthunt need an API key?
- Yes. The registry entry asks for
YOUR_API_KEY. - Is Ghosthunt maintained?
- The last commit was 157 days ago (2026-05-31). The latest release is v1.0.0.
- What can I use instead of Ghosthunt?
- Servers from other publishers that do the same job: Secret Scanner MCP server, Secret Scanner MCP server and Keyspoor MCP server.
- How does Ghosthunt compare with other Security MCP servers?
- safety score 72/100 (higher than 37% of 915 Security servers); tools 2 (the typical Security server has 6); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Ghosthunt
Same job from other publishers: the closest match first, then the best rated.
- not reviewedGrowingA
- not reviewedGrowingA
- KeyspoorOffline secret scanning for AI agents. Redacted findings; scans text and files in a chosen root.not reviewedGrowingA
- Security Headers Csp LintReads security headers and CSP line by line in your config file and names the lines that silently donot reviewedGrowingA
- SkylosDead code, security, secrets detection and code quality for Python, TypeScript, Go.not reviewedEstablishedC