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.10.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.10.0
File Size Uploaded Provenance Actions
argus_scan-0.10.0.tar.gz 392.8 kB Without provenance Details for argus_scan-0.10.0.tar.gz

Built distribution (wheel)

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

Total release size: 756.7 kB

Release files / argus_scan-0.10.0.tar.gz

Download URL argus_scan-0.10.0.tar.gz
Size 392.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2f698669e36b8d378a76152f89da2459134189139c100e7d6d6f0cfabbc1c4ea
BLAKE2b-256 checksum
How to use checksums
fd97456dd74f1693870f748fadcaf72ba2d7bd8d342636ca8b3a9eec945c0a6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

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

Download URL argus_scan-0.10.0-py3-none-any.whl
Size 363.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38781713bc2a2efad2cc00c60bf14e7c7ade05724cccccbc966b753e4707a07d
BLAKE2b-256 checksum
How to use checksums
3b76f2f55de12347451a41bef8ccbc8edbe5f6dc185413e57cb780293cf392ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for argus-scan 0.10.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