# Megalinter

> Megalinter is an open-source MCP server for developer tools. Runs MegaLinter from an assistant, then parses SARIF and JSON reports into summaries. 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/downatthebottomofthemolehole/megalinter-mcp
- **MCP Registry name:** io.github.DownAtTheBottomOfTheMoleHole/megalinter
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-18

## About

This community-maintained server wraps MegaLinter through mega-linter-runner and says it is sanctioned by Ox Security as a complement to the official tools. It needs Docker or a compatible container runtime, and works locally or inside CI systems such as GitHub Actions, GitLab CI, Azure DevOps, CircleCI and Jenkins.

The README counts 15 tools: 10 core and 5 short aliases. Short prompts go through megalinter_quick_action, where a quick scan runs the ci_light flavour on changed files, a full scan runs the all flavour, and a security scan runs the security flavour. Discovery tools list flavours, filter linters by language, security focus or auto-fix support, group security linters by SAST, secrets, container and IaC, and list report formats.

After a run, megalinter_parse_reports reads JSON or SARIF artefacts, megalinter_get_issue_summary totals issues by linter and severity, and megalinter_get_security_recommendations produces shift-left remediation guidance. megalinter_write_config creates a minimal .mega-linter.yml. Default scans time out after 20 minutes.

## Features

- **Quick actions:** One tool turns short requests into scan, config or summary workflows.
- **Scan presets:** Quick, full, security and fix modes map to MegaLinter flavours.
- **Linter discovery:** Filter linters by language, security focus and auto-fix support.
- **Report parsing:** Reads JSON and SARIF report artefacts.
- **Issue summaries:** Totals issues by linter and severity.
- **Security guidance:** Generates remediation steps from security findings.

## Good for

- Run a quick lint of changed files from an assistant
- Run a security-only scan
- Summarise errors from the last run
- Generate a baseline MegaLinter config
- Find auto-fixable linters for a language

## Install

### Claude Code (Terminal)

```sh
claude mcp add megalinter -- npx -y @downatthebottomofthemolehole/megalinter-mcp-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "megalinter": {
      "command": "npx",
      "args": [
        "-y",
        "@downatthebottomofthemolehole/megalinter-mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "megalinter": {
      "command": "npx",
      "args": [
        "-y",
        "@downatthebottomofthemolehole/megalinter-mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "megalinter": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@downatthebottomofthemolehole/megalinter-mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "megalinter": {
      "command": "npx",
      "args": [
        "-y",
        "@downatthebottomofthemolehole/megalinter-mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "megalinter": {
      "command": "npx",
      "args": [
        "-y",
        "@downatthebottomofthemolehole/megalinter-mcp-server"
      ]
    }
  }
}
```

## Tools

- `megalinter_quick_action`: Route a short request to a scan, config, summary or discovery workflow.
- `scan`: Alias for a quick scan.
- `summary`: Alias for summarising errors from the last run.
- `parse`: Alias for parsing a report.
- `help_quick`: Alias for context-aware help.
- `megalinter_help_quick`: Suggest commands based on the current repository.
- `megalinter_run`: Run MegaLinter with configurable runtime options.
- `megalinter_write_config`: Generate a baseline .mega-linter.yml.
- `megalinter_list_flavors`: List common MegaLinter flavours.
- `megalinter_get_linters`: Discover linters by language, security focus and auto-fix.
- `megalinter_get_security_info`: Group security linters by category.
- `megalinter_get_reporters`: List report output formats and CI reporters.
- `megalinter_parse_reports`: Parse JSON or SARIF report artefacts.
- `megalinter_get_issue_summary`: Aggregate issues by linter and severity.
- `megalinter_get_security_recommendations`: Produce security remediation guidance.

## FAQ

### What does it need?

Docker or a compatible container runtime, plus Node.js.

### Is it official?

The README says it is community-maintained and sanctioned by Ox Security.

### How many tools does it expose?

15: 10 core tools and 5 convenience aliases.

### Which report formats can it parse?

JSON and SARIF.

### Is Megalinter free?

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

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

Run this command in your terminal: claude mcp add megalinter -- npx -y @downatthebottomofthemolehole/megalinter-mcp-server

### What are the best alternatives to Megalinter?

The closest alternatives to Megalinter are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## 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.
- [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.
- [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.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers 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.

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