Skip to main content

argus-scan (Python)

An MCP server that gives AI assistants (Claude, Cursor, etc.) the ability to run comprehensive security scans on your codebase.

What It Does

Exposes the following MCP tools for use by any MCP-compatible AI client:

Tool Description Scanners
scan_sast Static code analysis Semgrep, Bandit, ESLint-security
scan_dast Dynamic web app scanning OWASP ZAP, Nikto
scan_sca Dependency vulnerability scanning Trivy, Safety, pip-audit, npm audit
scan_secrets Leaked secrets & credentials Gitleaks, detect-secrets, TruffleHog
scan_iac IaC misconfiguration scanning Checkov, Trivy config, Terrascan
scan_container Container image scanning Trivy
scan_all Full scan (all of the above) All tools
apply_fix Preview or apply fix for one finding (only when user asks) ESLint, Semgrep
get_scan_report Reformat scan JSON as Markdown —
check_tools Check tool availability —

Scans never modify files. Upload to the cloud dashboard is optional when ARGUS_API_KEY is set.

Installation

Full suite

pip install argus-scan
pip install "argus-scan[all-tools]"   # optional: semgrep, bandit, checkov, ansible-lint…

Includes argus-languages automatically (Java, PHP, Flutter, Terraform, Ansible built-in scanning).

Lightweight code scan only

pip install argus-languages
argus-languages scan /path/to/project

CLI usage (no MCP)

argus scan code /path/to/project     # built-in multi-language (argus-languages)
argus scan sast /path/to/project     # + Semgrep, Bandit, ESLint if installed
argus scan sca /path/to/project      # dependencies
argus scan secrets /path/to/project
argus scan iac /path/to/infra
argus scan terraform /path/to/tf
argus scan ansible /path/to/playbooks
argus scan all /path/to/project --fail-on high
argus scan all /path/to/project --upload      # cloud dashboard (ARGUS_API_KEY)
argus scan sast . --no-upload                 # skip cloud upload
argus tools
argus mcp --config                            # MCP JSON with cloud env template

Run the MCP Server

argus mcp
# or: argus-mcp

The server communicates via stdio (standard MCP transport).

Configure in Cursor / Claude Desktop

Add to your MCP configuration (~/.cursor/mcp.json or claude_desktop_config.json):

{
  "mcpServers": {
    "argus": {
      "command": "argus-mcp",
      "env": {
        "ARGUS_API_URL": "http://localhost:4000/v1",
        "ARGUS_API_KEY": "arg_live_PASTE_YOUR_KEY"
      }
    }
  }
}

Omit env for local-only scans. After each scan, results upload automatically when the API key is set.

Or with uvx (no installation required):

{
  "mcpServers": {
    "argus": {
      "command": "uvx",
      "args": ["--from", "argus-scan", "argus-mcp"]
    }
  }
}

Fix on request

  • Scans — detect only; no file changes
  • apply_fix — call with apply=false for guidance, apply=true after user confirms (ESLint / Semgrep autofix)
  • Secrets, SCA, IaC, DAST — guidance only; use AI or manual edits

VS Code extension: Quick Fix lightbulb on Problems panel findings.

Cloud dashboard upload

Env var Default Purpose
ARGUS_API_KEY — Required to upload (arg_live_… from dashboard)
ARGUS_API_URL http://localhost:4000/v1 API base URL
ARGUS_FAIL_ON high Severity for status: failed in uploads

See docs/AGENT-UPLOAD.md.

External Tool Dependencies

The MCP server wraps these external tools. Install the ones you need:

SAST

pip install semgrep bandit flake8 flake8-bandit   # Python SAST
npm install -g eslint eslint-plugin-security       # JS/TS SAST

DAST

docker pull ghcr.io/zaproxy/zaproxy:stable         # OWASP ZAP (recommended)
brew install nikto                                  # Nikto

SCA

# Trivy (cross-platform)
brew install trivy
# OR
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh

pip install safety pip-audit                        # Python SCA

Secret Scanning

brew install gitleaks trufflehog                   # macOS
pip install detect-secrets                          # cross-platform

IaC

pip install checkov                                 # Checkov
brew install terrascan                              # Terrascan

Example: Ask Claude to Scan Your Code

Once configured, you can ask:

  • "Scan /path/to/myproject for security vulnerabilities"
  • "Check my Python code for OWASP Top 10 issues using Semgrep"
  • "Are there any hardcoded secrets in this repository?"
  • "Fix the SQL injection finding in routes.py line 42"
  • "Run a full security audit of my codebase"

Development

git clone https://github.com/GabrielOkiri/argus-mcp
cd argus-scan/packages/python
pip install -e ".[dev]"
pytest

License

MIT

Metadata

Release files for argus-scan 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for argus-scan 0.12.0
File Size Uploaded Provenance Actions
argus_scan-0.12.0.tar.gz 459.8 kB Without provenance Details for argus_scan-0.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for argus-scan 0.12.0
File Interpreter ABI Platform Actions
argus_scan-0.12.0-py3-none-any.whl Python 3 none any Details for argus_scan-0.12.0-py3-none-any.whl

Total release size: 879.2 kB

Release files / argus_scan-0.12.0.tar.gz

Download URL argus_scan-0.12.0.tar.gz
Size 459.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d16ff7434f0e9b6eae9fa15332edd2bad80646970999f3ff15c5e22eec0e649e
BLAKE2b-256 checksum
How to use checksums
97d4cce9b8d2aa431e3e0dab0cc26ea0d294aef626556b2cf4e89768e3e6cd5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / argus_scan-0.12.0-py3-none-any.whl

Download URL argus_scan-0.12.0-py3-none-any.whl
Size 419.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8612b92084d0f6bed6579785d2d985764550c42bcf7e8b55da0cf5e9acbb5514
BLAKE2b-256 checksum
How to use checksums
37b65a92e2c1abec37731a46106d076fda5d7d43e7f6883189a00c10585dcdff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for argus-scan 0.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page