# MCP Magento Audit

> MCP Magento Audit is an open-source MCP server for e-commerce. Audit Magento 2 projects for upgrade blockers, risky modules and vulnerable packages. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/michalper/mcp-magento-audit
- **MCP Registry name:** io.github.michalper/mcp-magento-audit
- **Categories:** [e-commerce](https://ai-powered.com/categories/e-commerce), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

The question this server targets is the one Magento agencies keep asking: can this client move to a newer PHP and Magento version, and what is in the way. It runs eight tools over stdio and returns structured findings rather than a guess, marking checks it could not run as unverified so a clean result is never mistaken for full coverage.

The README positions it against plain Composer. Security and outdated checks shell out to `composer audit` and `composer outdated`, while custom code in `app/code`, which no vulnerability database covers, is scanned with phpcs, phpstan and rector. It also flags core overrides, ObjectManager misuse and dangling DI or layout references. `build_upgrade_plan` merges these into one list of blockers, and `build_fleet_overview` triages many projects at once.

For projects developed inside DDEV, Warden, Lando or Docker, set MCP_MAGENTO_AUDIT_EXEC_PREFIX so the tool calls run inside the container. Release notes come from magento/magento2 GitHub Releases, and a GITHUB_TOKEN raises the API rate limit. The author describes it as early-stage decision support, not a replacement for testing an upgrade.

## Features

- **Upgrade readiness:** Gives per-package verdicts against a target PHP and Magento version, plus a Rector-based code compatibility check.
- **Custom module scanning:** Runs phpcs, phpstan and rector on app/code and checks for core overrides and dangling references.
- **Dependency security:** Checks installed packages for known advisories through composer audit.
- **Combined upgrade plan:** Merges compatibility, quality and security findings into one blocker list with a ready flag.
- **Fleet overview:** Triages many project paths at once to show which can be upgraded today.
- **Container support:** An exec prefix variable runs checks inside DDEV, Docker Compose and similar setups.

## Good for

- Decide whether a client store can move to a newer Magento version
- Find which custom module should be fixed first before an upgrade
- Check a store's installed packages for known advisories
- Compare upgrade readiness across a portfolio of stores
- Pull release notes for a Magento version without relying on model memory

## Install

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

```sh
claude mcp add mcp-magento-audit -- uvx mcp-magento-audit
```

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

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-magento-audit": {
      "command": "uvx",
      "args": [
        "mcp-magento-audit"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-magento-audit": {
      "command": "uvx",
      "args": [
        "mcp-magento-audit"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-magento-audit": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-magento-audit"
      ]
    }
  }
}
```

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-magento-audit -- uvx mcp-magento-audit
```

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

```toml
[mcp_servers.mcp-magento-audit]
command = "uvx"
args = ["mcp-magento-audit"]
```

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

```json
{
  "mcpServers": {
    "mcp-magento-audit": {
      "command": "uvx",
      "args": [
        "mcp-magento-audit"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp-magento-audit uvx -- mcp-magento-audit

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

```json
{
  "mcpServers": {
    "mcp-magento-audit": {
      "command": "uvx",
      "args": [
        "mcp-magento-audit"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-magento-audit": {
      "command": "uvx",
      "args": [
        "mcp-magento-audit"
      ]
    }
  }
}
```

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

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-magento-audit": {
      "command": "uvx",
      "args": [
        "mcp-magento-audit"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-magento-audit": {
      "command": "uvx",
      "args": [
        "mcp-magento-audit"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-magento-audit": {
      "command": "uvx",
      "args": [
        "mcp-magento-audit"
      ]
    }
  }
}
```

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

## Tools

From the tool list in its README, going by the names, 4 of 8 tools read data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `get_project_status` (name suggests: reads): Magento version, PHP requirement, package count and abandoned packages.
- `check_updates` (name suggests: reads): Per-package verdicts against a target PHP and Magento version.
- `scan_module_risk`: Scans code with phpcs, phpstan and rector plus Magento-specific checks.
- `audit_security`: Checks installed packages for known advisories via composer audit.
- `check_outdated_packages` (name suggests: reads): Lists packages with newer versions via composer outdated.
- `fetch_release_notes` (name suggests: reads): Fetches release notes from magento/magento2 GitHub Releases.
- `build_upgrade_plan`: Combines other tools into a list of upgrade blockers.
- `build_fleet_overview`: Triages many projects against a target PHP and Magento version.

## FAQ

### What does MCP Magento Audit check?

Compatibility with a target PHP and Magento version, quality of custom modules and dependency security.

### Does MCP Magento Audit replace composer audit?

No. It calls composer audit and composer outdated and adds scanning of custom code and combined planning.

### Why do some checks say scanned=false?

The tools need the project's own vendor/bin and composer. If those live inside a container, set MCP_MAGENTO_AUDIT_EXEC_PREFIX, for example `ddev exec --`.

### How do I avoid GitHub rate limits?

Set GITHUB_TOKEN or GH_TOKEN; a read-only token with no scopes is enough.

### Is MCP Magento Audit free?

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

### How do I add MCP Magento Audit to Claude Code?

Run this command in your terminal: claude mcp add mcp-magento-audit -- uvx mcp-magento-audit

### What are the best alternatives to MCP Magento Audit?

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

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## 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.
- [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.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcp-magento-audit
