Skip to content
MCP server

Penthera

Offline security checks for code, dependencies and AI agent setup with six read-only tools

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, self-hosted, Web
Runs
Locally
Version
2.4.0
Listing updated
3 days ago

About Penthera

Penthera is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.

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.

Install

Run in a terminal

claude mcp add penthera -- npx -y penthera

Add to claude_desktop_config.json

{
  "mcpServers": {
    "penthera": {
      "command": "npx",
      "args": [
        "-y",
        "penthera"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "penthera": {
      "command": "npx",
      "args": [
        "-y",
        "penthera"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

What it does

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

Pricing

Open source

Free, MIT licensed, no telemetry

Prices change. Check penthera.org before you buy.

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 to Penthera

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools