# Penthera

> Penthera is an open-source MCP server for security. Offline security checks for code, dependencies and AI agent setup with six read-only tools. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, Web
- **Website:** https://penthera.org
- **Repository:** https://github.com/danoszz/penthera
- **MCP Registry name:** io.github.danoszz/penthera
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-14

## About

Findings come from 132 readable rules rather than a model, each pointing at file and line so a person can verify it, and the README is candid that it catches known classes of problems and does not replace a human pentester. It looks at three areas: your code, your dependencies, and the configuration of AI coding tools such as Cursor settings and MCP configs.

Code, package and AI-setup checks make no outside connections by default; scanning a live URL contacts the site you name. The MCP server exposes six read-only tools, is pinned to a version in the suggested install line so it never updates silently, and needs Node.js 22 or later. The same package also runs as a guided terminal command that asks before changing anything and never commits or pushes, or as an agent skill.

The author publishes benchmarks against other free scanners, and the README says there is no telemetry and no runtime dependencies. It is MIT licensed.

## Features

- **Rule-based findings:** 132 readable rules, each reporting evidence at file and line.
- **Agent config audit:** Checks AI coding tool setup such as Cursor folders and MCP configuration.
- **Dependency checks:** Reviews packages for known supply-chain problems.
- **Offline by default:** Code, package and AI setup checks open no outside connections.
- **Fix with approval:** Fixes what it can only with your OK and never commits or pushes.
- **Three ways to run:** Available as a CLI, an agent skill or an MCP server.

## Good for

- Scan a repo for security problems from inside a coding agent
- Audit the MCP and editor settings in an AI-assisted project
- Check dependencies after a supply-chain incident
- Produce a prioritised list of what to fix first
- Check a live site's headers such as CSP and HTTPS

## Install

### Claude Code (Terminal)

```sh
claude mcp add penthera -- npx -y penthera
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "penthera": {
      "command": "npx",
      "args": [
        "-y",
        "penthera"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "penthera": {
      "command": "npx",
      "args": [
        "-y",
        "penthera"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "penthera": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "penthera"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "penthera": {
      "command": "npx",
      "args": [
        "-y",
        "penthera"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "penthera": {
      "command": "npx",
      "args": [
        "-y",
        "penthera"
      ]
    }
  }
}
```

## FAQ

### Does it send my code anywhere?

The README says code, package and AI setup checks make no outside connections by default; a URL scan contacts the site you name.

### What does it need?

Node.js 22 or later; no account or install is required with npx.

### Can the MCP tools change my files?

The README describes the six MCP tools as read-only.

### Is it a replacement for a pentester?

No. The README says it finds known classes of problems, not novel ones.

### What licence is it?

MIT.

### Is Penthera free?

Yes. Penthera is open source, so you can use and self-host it for free.

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

Run this command in your terminal: claude mcp add penthera -- npx -y penthera

### What are the best alternatives to Penthera?

The closest alternatives to Penthera are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

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