# MCP & Agent Security Auditor

> MCP & Agent Security Auditor is an open-source MCP server for security. Static scanner that flags CWE-mapped security issues in MCP configs, agent hooks. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Web, Self-hosted
- **Website:** https://jashory.github.io/mcp-agent-security-auditor/
- **Repository:** https://github.com/jashory/mcp-agent-security-auditor
- **MCP Registry name:** io.github.jashory/mcp-agent-security-auditor
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-23

## About

This tool reads configuration and code before it ships, looking for weaknesses such as exposed secrets, shell injection sinks, path traversal and open Firebase rules. It runs as a command-line scanner that can emit SARIF for CI pipelines, and it can also be started as a stdio MCP server so an AI client can request scans directly.

The scanner targets three kinds of input: MCP server code, Claude Code style agent hooks and skill files, and Firebase Realtime Database and Firestore rules. Each finding is tied to a named rule and a CWE identifier, which makes results easier to triage. A browser playground on the project page lets you paste configuration content and test detections without installing anything.

It suits developers and security reviewers who build MCP servers or agent integrations and want a pre-release check. It is a static pre-audit aid rather than a full penetration test, so findings should be reviewed by a person before relying on them.

## Features

- **CWE-mapped rule set:** Seven named detection rules, each tagged with the CWE weakness it addresses.
- **Command-line scanning:** Scans a target repository from the terminal and can output results in SARIF format.
- **Stdio MCP server mode:** Runs as a JSON-RPC 2.0 stdio server so AI clients can invoke the scanner as a tool.
- **CI workflow integration:** Provides a GitHub Actions action definition for running scans in pipelines.
- **Firebase rules checks:** Flags wide-open Realtime Database and Firestore rules that allow unauthenticated reads or writes.
- **Browser playground:** Paste configuration content into the project page to test detections in the browser.

## Good for

- Check an MCP server's tool handlers for shell injection and path traversal before release
- Scan Claude Code hooks and skill files for hardcoded secrets and risky execution patterns
- Catch open Firebase security rules in a repository before deploying
- Add a security gate to a CI pipeline that reports findings in SARIF

## Install

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

```sh
claude mcp add mcp-agent-security-auditor -- uvx mcp-agent-security-auditor
```

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": {
    "mcp-agent-security-auditor": {
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-agent-security-auditor": {
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-agent-security-auditor": {
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-agent-security-auditor": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

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 mcp-agent-security-auditor -- uvx mcp-agent-security-auditor
```

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

```toml
[mcp_servers.mcp-agent-security-auditor]
command = "uvx"
args = ["mcp-agent-security-auditor"]
```

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

```json
{
  "mcpServers": {
    "mcp-agent-security-auditor": {
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp-agent-security-auditor uvx -- mcp-agent-security-auditor

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

```json
{
  "mcpServers": {
    "mcp-agent-security-auditor": {
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-agent-security-auditor": {
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

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": {
    "mcp-agent-security-auditor": {
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-agent-security-auditor": {
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

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": {
    "mcp-agent-security-auditor": {
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-agent-security-auditor": {
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-agent-security-auditor": {
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

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": {
    "mcp-agent-security-auditor": {
      "command": "uvx",
      "args": [
        "mcp-agent-security-auditor"
      ]
    }
  }
}
```

## FAQ

### How do I install MCP & Agent Security Auditor?

It can be installed with pip or uv as mcp-agent-security-auditor, run from a git clone with python install.py, or added as an Agent Skill with npx skills add.

### Does the browser playground send my data anywhere?

The playground runs entirely client-side in the browser, and the project page states that pasted content does not leave the user's machine.

### Which output formats are supported?

The command-line scanner supports SARIF output, selected with the --format sarif option.

### Is MCP & Agent Security Auditor free?

Yes. MCP & Agent Security Auditor is open source, so you can use and self-host it for free.

### How do I add MCP & Agent Security Auditor to Claude Code?

Run this command in your terminal: claude mcp add mcp-agent-security-auditor -- uvx mcp-agent-security-auditor

### What are the best alternatives to MCP & Agent Security Auditor?

The closest alternatives to MCP & Agent Security Auditor are MCP Security Guard, MCP Server Auditor, Skill Audit MCP, MCP Server Auditor and mcp-scan.

## 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 Security Guard](https://ai-powered.com/mcp/mcp-security-guard): MCP Security Guard is an open-source MCP server for security.
- [MCP Server Auditor](https://ai-powered.com/mcp/mcp-server-auditor-2): MCP Server Auditor is an open-source MCP server for security.
- [Skill Audit MCP](https://ai-powered.com/mcp/skill-audit-mcp): Skill Audit MCP is an open-source MCP server for security.
- [MCP Server Auditor](https://ai-powered.com/mcp/mcp-server-auditor): MCP Server Auditor is an open-source MCP server for agent approvals.
- [mcp-scan](https://ai-powered.com/mcp/mcp-scan): mcp-scan is an open-source MCP server for security.
- [mcp-guard](https://ai-powered.com/mcp/mcp-guard): mcp-guard is a free MCP server for security.
- [MCP Customs](https://ai-powered.com/mcp/mcp-customs): MCP Customs is an open-source MCP server for security.
- [Swarm](https://ai-powered.com/mcp/swarm-2): Swarm is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/mcp-and-agent-security-auditor
