keypeek
Read-only CLI and MCP server that shows which secrets AI coding agents can read
keypeek is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, macOS, Linux
- Runs
- Locally
- Version
- 0.2.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add keypeek -- npx -y @evalogical/keypeekAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"keypeek": {
"command": "npx",
"args": [
"-y",
"@evalogical/keypeek"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"keypeek": {
"command": "npx",
"args": [
"-y",
"@evalogical/keypeek"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"keypeek": {
"command": "npx",
"args": [
"-y",
"@evalogical/keypeek"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"keypeek": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@evalogical/keypeek"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add keypeek -- npx -y @evalogical/keypeekOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.keypeek]
command = "npx"
args = ["-y", "@evalogical/keypeek"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"keypeek": {
"command": "npx",
"args": [
"-y",
"@evalogical/keypeek"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "keypeek": { "command": "npx", "args": [ "-y", "@evalogical/keypeek" ] } } }Or run: gemini mcp add -s user keypeek npx -- -y @evalogical/keypeek
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "keypeek": { "command": "npx", "args": [ "-y", "@evalogical/keypeek" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "keypeek": { "command": "npx", "args": [ "-y", "@evalogical/keypeek" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "keypeek": { "command": "npx", "args": [ "-y", "@evalogical/keypeek" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "keypeek": { "command": "npx", "args": [ "-y", "@evalogical/keypeek" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "keypeek": { "command": "npx", "args": [ "-y", "@evalogical/keypeek" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "keypeek": { "command": "npx", "args": [ "-y", "@evalogical/keypeek" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "keypeek": { "command": "npx", "args": [ "-y", "@evalogical/keypeek" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About keypeek
The README describes keypeek as a command-line scanner that looks in agent transcripts, shell history, .env files and the shell environment for API keys that tools like Claude Code, Cursor and Codex could reach. It reports findings with a score from 0 to 100 and a letter grade, and it redacts every value down to a 4-character prefix, its length and a hash fingerprint.
The scan is designed to change nothing: it does not write, move or delete files, makes no network calls and has no telemetry. The package is MIT licensed, runs on macOS and Linux with Node 20 or newer, and has no runtime dependencies. Output can be plain text or JSON, and a --fail-on flag returns an exit code for use in scripts.
It is aimed at developers who let AI agents work inside their projects and want to know what has accumulated in old chats, history files and forgotten .env files. The site and README also offer an MCP server mode, so an agent can request the score and counts, with file paths only when asked.
What it does
- Multi-surface secret scan
- Checks agent transcripts, shell history, .env files and the process environment in one run.
- Redacted output only
- Shows a 4-character prefix, the length and a hash fingerprint instead of full secret values.
- Ranked severity score
- Assigns a 0 to 100 score and letter grade, weighting transcript exposure above unused .env entries.
- Read-only by design
- Never writes, moves or deletes files, and makes no network requests according to the README.
- Script-friendly CLI
- Provides JSON output and a --fail-on flag with exit codes for pre-flight checks.
- MCP server mode
- Runs a read-only MCP tool that returns only counts by default, with paths available on request.
Good for
- Check a laptop for API keys left in agent chat transcripts before handing it to an AI agent
- Find plaintext keys in old .env files across project folders
- Run a pre-flight audit of shell history for accidentally typed credentials
- Give a coding agent a read-only way to report its own secret exposure score
Pricing
Open source
Free and open source under MIT; no paid plan mentioned.
Prices change. Check keypeek.vercel.app before you buy.
keypeek FAQ
Does keypeek send my data anywhere?
The README and website say no: the package has no network code and no telemetry, and the site has no analytics.
Can keypeek show full secret values?
No. Output holds only a 4-character prefix, the length and a hash fingerprint.
Does keypeek work on Windows?
Windows is not tested yet; macOS and Linux are the supported platforms.
Can keypeek miss secrets?
Yes. Detection is pattern-based, so new key formats can be missed, and Cursor's chat database is not scanned yet.
Is keypeek free?
Yes. keypeek is open source, so you can use and self-host it for free.
How do I add keypeek to Claude Code?
Run this command in your terminal: claude mcp add keypeek -- npx -y @evalogical/keypeek
What are the best alternatives to keypeek?
The closest alternatives to keypeek are mcp-keyscan, Secret Scanner, Secret Scan, Keyspoor and Phantom Secrets.
Where this comes from
- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.