# GapScan

> GapScan is a freemium MCP server for security. Offline OWASP security scanner that shows which requirements your code misses. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, VS Code, macOS, Linux, Windows, Self-hosted
- **Website:** https://gapscan.dev
- **Repository:** https://github.com/shawaf/gapscan
- **MCP Registry name:** io.github.shawaf/gapscan
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-27

## About

Pointed at a codebase, GapScan runs several open-source scanners locally and merges their output into a single report. Each finding is traced to the OWASP Top 10, ASVS, API Security Top 10 or MASVS control it breaks, so you can see coverage chapter by chapter rather than a flat list of warnings.

Every gap is backed by evidence: a scanner result, a cross-file data-flow path, or the quoted code. Controls with no finding are shown as checked rather than passed, since static analysis cannot prove a codebase is secure. An optional local model can triage findings, and a fix is only offered when a rescan shows the gap gone.

It suits developers and security reviewers who want an auditable view of their code against OWASP without sending that code to a third-party service. It also runs as an MCP server so AI coding assistants can check their own output before review.

## Features

- **Merged multi-scanner results:** Semgrep, OSV-Scanner, Trivy, Gitleaks, Checkov and Bandit findings are combined into one de-duplicated schema.
- **OWASP control mapping:** Each finding is linked to the standard requirements it fails, with coverage shown per standard.
- **Cross-file data-flow tracing:** Attacker-controlled data is followed through helpers and files in Java, Python and JavaScript/TypeScript.
- **Dependency vulnerability watch:** Saved dependency lists are re-checked against fresh vulnerability data and only new advisories are reported.
- **Rescan-verified fixes:** Suggested patches are kept only if an offline rescan confirms the gap is closed.
- **Fully local operation:** Scans run without network calls and the source code never leaves the machine.

## Good for

- Checking AI-generated code against OWASP before committing it
- Producing an offline coverage report for a security or compliance review
- Blocking risky changes in pull requests through a CI check
- Getting alerted when a newly disclosed dependency vulnerability affects an existing project
- Letting an AI coding assistant scan its own output via MCP

## Install

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

```sh
claude mcp add gapscan -- uvx gapscan
```

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

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "gapscan": {
      "command": "uvx",
      "args": [
        "gapscan"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "gapscan": {
      "command": "uvx",
      "args": [
        "gapscan"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "gapscan": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "gapscan"
      ]
    }
  }
}
```

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 gapscan -- uvx gapscan
```

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

```toml
[mcp_servers.gapscan]
command = "uvx"
args = ["gapscan"]
```

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

```json
{
  "mcpServers": {
    "gapscan": {
      "command": "uvx",
      "args": [
        "gapscan"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user gapscan uvx -- gapscan

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

```json
{
  "mcpServers": {
    "gapscan": {
      "command": "uvx",
      "args": [
        "gapscan"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "gapscan": {
      "command": "uvx",
      "args": [
        "gapscan"
      ]
    }
  }
}
```

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

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "gapscan": {
      "command": "uvx",
      "args": [
        "gapscan"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "gapscan": {
      "command": "uvx",
      "args": [
        "gapscan"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "gapscan": {
      "command": "uvx",
      "args": [
        "gapscan"
      ]
    }
  }
}
```

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

## FAQ

### Does GapScan send my code anywhere?

No. Scans run on your own machine with no network calls, and the optional local model also runs locally.

### Is GapScan free?

The single-machine scanner is free and open source under Apache-2.0. A paid team offering is also listed separately.

### Which languages are supported?

Python, JavaScript/TypeScript, Java, Kotlin, Go, Swift, Dart, C# and PHP. Cross-file data-flow tracing covers Java, Python and JavaScript/TypeScript only.

### Does a clean scan mean my code is secure?

No. Controls with no finding are reported as checked, not passed, because static analysis cannot prove security.

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

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

### What are the best alternatives to GapScan?

The closest alternatives to GapScan are Owasp Scan, CodeInspectus, valvur, SecScan and GeekWala Dependency Scanner.

## 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

- [Owasp Scan](https://ai-powered.com/mcp/owasp-scan): Owasp Scan is an open-source MCP server for security.
- [CodeInspectus](https://ai-powered.com/mcp/codeinspectus): CodeInspectus is an open-source MCP server for security.
- [valvur](https://ai-powered.com/mcp/valvur): valvur is an open-source MCP server for security.
- [SecScan](https://ai-powered.com/mcp/secscan): SecScan is a freemium MCP server for security.
- [GeekWala Dependency Scanner](https://ai-powered.com/mcp/geekwala-dependency-scanner): GeekWala Dependency Scanner is a freemium MCP server for security.
- [WebSecAuditor AI Cybersecurity & Vulnerability Auditor](https://ai-powered.com/mcp/websecauditor-ai-cybersecurity-and-vulnerability-auditor): WebSecAuditor AI Cybersecurity & Vulnerability Auditor is an open-source MCP server for security.
- [GSC Scanner](https://ai-powered.com/mcp/gsc-scanner): GSC Scanner is a free MCP server for security.
- [Dependency Risk Audit](https://ai-powered.com/mcp/dependency-risk-audit): Dependency Risk Audit is a freemium MCP server for developer tools.

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