# keypeek

> keypeek is an open-source MCP server for security. Read-only CLI and MCP server that shows which secrets AI coding agents can read. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux
- **Website:** https://keypeek.vercel.app
- **Repository:** https://github.com/evalogical-inc/keypeek
- **MCP Registry name:** io.github.Evalogical-Inc/keypeek
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-19

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add keypeek -- npx -y @evalogical/keypeek
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "keypeek": {
      "command": "npx",
      "args": [
        "-y",
        "@evalogical/keypeek"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "keypeek": {
      "command": "npx",
      "args": [
        "-y",
        "@evalogical/keypeek"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "keypeek": {
      "command": "npx",
      "args": [
        "-y",
        "@evalogical/keypeek"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add keypeek -- npx -y @evalogical/keypeek
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.keypeek]
command = "npx"
args = ["-y", "@evalogical/keypeek"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "keypeek": {
      "command": "npx",
      "args": [
        "-y",
        "@evalogical/keypeek"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user keypeek npx -- -y @evalogical/keypeek

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "keypeek": {
      "command": "npx",
      "args": [
        "-y",
        "@evalogical/keypeek"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "keypeek": {
      "command": "npx",
      "args": [
        "-y",
        "@evalogical/keypeek"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "keypeek": {
      "command": "npx",
      "args": [
        "-y",
        "@evalogical/keypeek"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "keypeek": {
      "command": "npx",
      "args": [
        "-y",
        "@evalogical/keypeek"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "keypeek": {
      "command": "npx",
      "args": [
        "-y",
        "@evalogical/keypeek"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "keypeek": {
      "command": "npx",
      "args": [
        "-y",
        "@evalogical/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.

## Alternatives

- [mcp-keyscan](https://ai-powered.com/mcp/mcp-keyscan): mcp-keyscan is an open-source MCP server for security.
- [Secret Scanner](https://ai-powered.com/mcp/secret-scanner-3): Secret Scanner is an open-source MCP server for security.
- [Secret Scan](https://ai-powered.com/mcp/secret-scan): Secret Scan is an open-source MCP server for security.
- [Keyspoor](https://ai-powered.com/mcp/keyspoor): Keyspoor is an open-source MCP server for security.
- [Phantom Secrets](https://ai-powered.com/mcp/phantom-secrets): Phantom Secrets is an open-source MCP server for security.
- [MCPVetter](https://ai-powered.com/mcp/mcpvetter): MCPVetter is a freemium MCP server for security.
- [Vibe Code Security Scanner](https://ai-powered.com/mcp/vibe-code-security-scanner): Vibe Code Security Scanner is a paid MCP server for security.
- [q-ring](https://ai-powered.com/mcp/q-ring): q-ring is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/keypeek
