Guardbee.ai
@guardbee/mcp-secret-scanner

Secret Scanner

Secret scanner for code, git history and AI agent transcripts: 76 provider patterns, entropy checks, live key verification and SARIF, as a CLI and an MCP server

v1.1.1MIT · Open sourceNode.js · stdio
Install
$ npx -y @guardbee/mcp-secret-scanner
Claude Desktop / Cursor config
{
  "mcpServers": {
    "secret-scanner": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-secret-scanner"
      ]
    }
  }
}
@guardbee/mcp-secret-scanner

@guardbee/mcp-secret-scanner hunts for exposed API keys, tokens, passwords, and private keys in source trees and .env files. Ask Claude if a project is leaking secrets — no Guardbee API key required.

What does it do?

A fast local leak check before commit or review. Covers AWS, GitHub, Stripe, OpenAI, Slack, and many more patterns.

Who is it for?

  • Developers preventing secret leaks in Node/Python apps
  • Teams doing a local pre-PR hygiene check
  • Anyone building a security assistant in Claude/Cursor

What it is not

  • Replacing centralized secret management in CI
  • Breaking into encrypted vaults

Features

FeatureDescription
40+ patternsCloud, SCM, payments, AI, messaging, DB URLs, JWTs, private keys
File & directorySingle file or recursive scan
Smart skipsnode_modules, .git, dist, .next, etc.
RedactionMatches are partially masked
AllowlistIgnore known test values

MCP tools

ToolDescription
scan_textScan arbitrary text
scan_fileSingle file
scan_directoryRecursive directory
list_patternsActive pattern list

Install with npm

Global install (handy for Claude Desktop / Cursor):

bash
<code class="language-bash">npm install -g @guardbee/mcp-secret-scanner</code>

or via npx (recommended with -y in config):

bash
<code class="language-bash">npx -y @guardbee/mcp-secret-scanner</code>

npm: @guardbee/mcp-secret-scanner

It only accesses the local filesystem — pass an explicit path to Claude.

Claude Desktop configuration

Config file paths:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Merge this block, then restart Claude Desktop:

claude_desktop_config.json
<code class="language-json">{
  "mcpServers": {
    "guardbee-secret-scanner": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-secret-scanner"
      ]
    }
  }
}</code>

Cursor and other MCP clients

In Cursor, add the same command / args / env under Settings → MCP. stdio MCP servers use the same contract as Claude Desktop.

Example prompts in Claude

  1. “Scan my project for secrets: /Users/me/my-app”
  2. “Does this .env contain secrets?”
  3. “Is this text safe: export API_KEY=sk-…”

Frequently asked questions

False positives?+

Possible — use allowlists and rotate anything truly sensitive.

Does it scan git history?+

Default directory scans skip .git and focus on the working tree.

API key needed?+

No — fully local.

More in this category

See your security posture in minutes

Add your domain, run a read-only scan and get a prioritised list of fixes. No installation required.

Secret Scanner MCP server (@guardbee/mcp-secret-scanner) · GuardBee