← Blog’a dön

← Back to blog

MCP Secret Scanner: find leaked API keys and passwords in your repo

,

MCP guide · Secret Scanner

MCP Secret Scanner: find leaked API keys and passwords in your repo
@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
npm install -g @guardbee/mcp-secret-scanner

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

bash
npx -y @guardbee/mcp-secret-scanner

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
{
  "mcpServers": {
    "guardbee-secret-scanner": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-secret-scanner"
      ]
    }
  }
}

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-…”

Related links

See surface risk with Guardbee

MCP servers speed up security work in chat. Start a 14-day free trial for brand scans and BeeAI.

Start free MCP servers

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.

Paylaş

Share

Sitenizin risk skorunu görün — 14 gün ücretsiz deneme.

See your site’s risk score — 14-day free trial.