
mcp-keyscan
Scans agent configs, logs, and shell history for plaintext API keys, returning only redacted previews.
- tool
- 1
- transport
- STDIO
- last updated
- Nov 17, 2026
What it does
- Exposes one read-only tool,
scan_secrets, which returns a redacted text report or redacted JSON so agents never see secret values - Checks Claude, Cursor, VS Code, Codex, Gemini CLI, Cline, and shell histories, using gitleaks rules plus a key-name heuristic
- Runs locally over stdio with no network calls, requiring Node 18 or later and the repo installed via npx
- Designed for auditing an agent's own machine for leaked keys before sharing configs or reports
Tools
1 toolsPublic tool metadata for what this MCP can expose to an agent.
scan_secretsRead-only tool that runs the scan and returns the same redacted report (or redacted JSON), so the agent never sees a secret value.
Read-only tool that runs the scan and returns the same redacted report (or redacted JSON), so the agent never sees a secret value.
No parameter schema in public metadata yet.
Readme
mcp-keyscan
Never prints a secret value. Every key it finds is shown only as a redacted preview (first 4 characters + length), in the terminal, in the JSON and in the shareable report. A test in this repo (npm test) fails if any fixture secret appears in stdout, stderr, the report file or the JSON.
mcp-keyscan finds plaintext API keys in your AI-agent and MCP client configs, agent logs and transcripts, and shell history, then gives you a redacted report you can paste into an issue, a chat or a post, with a one-line fix per finding.
npx github:aether-cell/mcp-keyscan
Local only: no network calls, no telemetry, zero dependencies. Node 18+. Apache-2.0.
Did Claude Code save your key in settings.local.json?
Claude Code's "Yes, and don't ask again" option can write the exact approved command — API key included — into .claude/settings.json or .claude/settings.local.json. The Hacker News, citing Apiiro, reports 1,122 public copies of settings.local.json holding at least one secret (1,379 secrets total) out of 104,185 copies.
Details
- Repository
- github.com/aether-cell/mcp-keyscan
- Categories
- Security, Developer Tools
- Package
https://github.com/aether-cell/mcp-keyscan/releases/download/v1.1.1/mcp-keyscan.mcpb- Transport
- STDIO
- Registry
- MCP registry, active
Similar to mcp-keyscan
More Security
ghost-scan-secretsSkillghostsecurity/skills4.9K installsScans codebases for leaked credentials via a poltergeist-driven pipeline with per-candidate analysis and severity-rated findings.
Psyseal scanMCP serverpsysealLocal, offline scanner for AI agent folders: heartbeat cost, plaintext secrets, and suspicious memory.
CrumpleMCP serverpriberry-data2 starsAudit AI coding agent setups and deployed apps for leaked keys, open data, and risky configuration.
Agent Security Scanner McpMCP serversinewaveai124 starsSecurity scanning for AI-written code, MCP servers, prompts, and suggested packages, via 17 tools.
Oathe McpMCP serveroathe-ai1 starSecurity audit lookups for AI agent skills, MCP servers, and plugins before installation.