# Skarn

> Skarn is a freemium MCP server for security. Scan AI coding session logs and assistant configs for leaked secrets and risky hooks. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI
- **Website:** https://getskarn.com
- **Repository:** https://github.com/skarn-security/skarn-dist
- **MCP Registry name:** com.getskarn/skarn
- **Categories:** security
- **Listing updated:** 2026-11-14

## About

Coding assistants write whole conversations to disk unencrypted, so pasted keys and .env contents stay in the logs. Skarn reads those logs locally, with no upload and no network call by default, and masks every credential it reports.

It links a secret read, an injection and an outbound call into one attack chain, maps findings to MITRE ATLAS in the HTML report, and gives each machine a risk score from 0 to 100. The first command, skarn assess, needs no account or licence.

The free tier is the full local scanner; Pro and Team add paid controls. The registry lists an npm stdio package, and binaries are on GitHub and Homebrew. It covers assistants such as Claude Code, Codex, Cursor, Gemini CLI and Copilot.

## Features

- **Local scanning:** Reads session logs on disk, no egress.
- **Redacted reports:** Markdown or HTML without full secrets.
- **Attack chains:** Links read, injection and outbound call.
- **Risk score:** 0 to 100 per machine.
- **Wide coverage:** Many assistants.

## Good for

- Find credentials pasted into sessions
- Audit risky hooks
- Share a redacted finding
- Score a machine

## Install

### Claude Code (Terminal)

```sh
claude mcp add skarn -- npx -y @skarn-security/skarn
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "skarn": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@skarn-security/skarn"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

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

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

## FAQ

### Does it upload data?

No, none by default.

### Account needed?

Not for skarn assess.

### Free?

Free tier is the full local scanner.

### Modifies sessions?

No, it reads only.

### Is Skarn free?

Skarn has a free plan, with paid plans for more usage or features.

### How do I add Skarn to Claude Code?

Run this command in your terminal: claude mcp add skarn -- npx -y @skarn-security/skarn

### What are the best alternatives to Skarn?

The closest alternatives to Skarn are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

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