Skip to content
MCP server

aegismcp-security MCP Server

Active MCP Security Engine & Runtime Firewall — live introspection, runtime proxy, cross-server rules, executive reporting, Python/JS taint tracking.

aegismcp-security scores 45 (Fair), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Security. GitHub shows 18 stars. Package registries report about 993 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by cyberlynxxxMITPython18 stars
Trust score
45Fair
Trust score 45 of 100, Fair

Fair trust

45 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 45 comes from

0 + 20 + 4 + 10 + 4 + 7 = 45. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "cyberlynxxx-aegismcp": {      "command": "uvx",      "args": [        "aegismcp-security"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About


What It Detects

Built-in Rules (MCP Config Files)

Rule IDSeverityDescription
AMCP001CRITICALDirect shell execution (bash, sh, cmd, powershell)
AMCP002MEDIUMUnpinned npx packages (supply-chain risk)
AMCP003HIGHOverly broad or sensitive filesystem paths (/, .ssh, .env)
AMCP004CRITICALHardcoded API keys and tokens in env
AMCP005CRITICALTool poisoning & indirect prompt injection patterns
AMCP006MEDIUMAbnormally long tool descriptions used to hide payloads
AMCP007CRITICALInvisible Unicode character smuggling (zero-width, bidi, tags)
AMCP008HIGHHigh-entropy unknown secrets detected via Shannon entropy

AST Rules (Python MCP Server Source)

Rule IDSeverityDescription
AMCP101HIGH / CRITICALCommand injection (subprocess, os.system, os.popen)
AMCP102CRITICALDynamic code execution (eval, exec)
AMCP103HIGHSSRF — dynamic URLs in HTTP calls (requests, httpx, etc.)
AMCP104HIGHPath traversal — user-controlled file paths
AMCP105CRITICALInsecure deserialization (pickle.loads, yaml.load without SafeLoader)

Cross-Server Rules (Multi-Server Analysis)

Rule IDSeverityDescription
AMCP201HIGHTool shadowing — duplicate tool names across servers
AMCP202MEDIUMSchema drift — tool signatures changed between lockfile and live
AMCP203MEDIUMOver-permissive tool input schemas (unconstrained dangerous params)

Runtime Proxy Rules (Active Firewall)

Rule IDSeverityDescription
AMCP301CRITICALPrompt injection in tool call arguments
AMCP302HIGHCommand injection patterns in arguments
AMCP303HIGHPath traversal in arguments
AMCP304HIGHSSRF patterns in URL arguments
AMCP305MEDIUMRate limit exceeded
AMCP306MEDIUMSuspicious argument patterns (entropy, encoding)
AMCP307LOWTool call audit logging
AMCP308CRITICALFail-closed: blocked by default unless explicitly allowed
AMCP309CRITICALServer-to-client response inspection (indirect prompt injection, secret leakage, invisible Unicode)

Features

Live MCP Server Introspection (inspect)

New in v3.0.0 — Connect to running MCP servers via stdio or HTTP/SSE and run real-time security checks:

# Connect via stdio (spawn server)
aegismcp inspect --command "python server.py" --sarif live.sarif --fail-on HIGH

# Connect via HTTP/SSE
aegismcp inspect --url http://localhost:8000/mcp --html live-report.html

# Connect using platform config (Claude Desktop, Cursor, etc.)
aegismcp inspect --config-file ~/Library/Application\ Support/Claude/claude_desktop_config.json

# Create lockfile from live server tools
aegismcp inspect --command "python server.py" --lock-output live.lock.json

Real-time checks performed:

  • AMCP005 Tool poisoning in live tool descriptions
  • AMCP006 Abnormally long descriptions hiding payloads
  • AMCP007 Invisible Unicode characters
  • AMCP201 Tool shadowing (duplicate names)
  • AMCP203 Over-permissive input schemas

Runtime MCP Security Proxy (proxy)

New in v3.0.0 — A transparent MCP proxy/firewall that sits between clients and servers, enforcing security policies in real-time with bidirectional protection:

# Run proxy between client and server (stdio)
aegismcp proxy --command "python server.py" --policy proxy-policy.yaml

# Run proxy with HTTP upstream
aegismcp proxy --url http://upstream:8000/mcp --port 8080

# Enable audit logging
aegismcp proxy --command "python server.py" --audit-log audit.log --fail-closed

Proxy capabilities:

  • Prompt injection detection (AMCP301/AMCP309) — Blocks hidden LLM directives in arguments and responses
  • Anti-evasion normalizer — Multi-stage URL/Base64/Hex decoding, Unicode NFKC normalization
  • Weighted scoring engine — STRICT/BALANCED modes with configurable thresholds via policy
  • Command injection prevention (AMCP302) — Detects shell metacharacters, command substitution
  • Path traversal blocking (AMCP303) — Stops ../, absolute paths, directory traversal
  • SSRF protection (AMCP304) — Blocks private/internal IPs, localhost, metadata endpoints, alternative formats
  • Rate limiting (AMCP305) — Configurable requests/second per client
  • Audit logging (AMCP307) — JSONL structured logs for SIEM integration
  • Fail-closed defaults (AMCP308) — Blocks unknown tools unless explicitly allowed
  • Server-to-client response inspection (AMCP309) — Detects indirect prompt injection, secret leakage, invisible Unicode in tool results

Rug-Pull Protection (lock / verify) — Enhanced

Lockfiles store SHA-256 hashes of server configs and live tool definitions.

# Create lockfile from static config (v2.x compatible)
aegismcp lock samples/vulnerable_mcp.json -o aegismcp.lock.json

# Create lockfile from LIVE server (NEW v3.0.0)
aegismcp lock --live --command "python server.py" -o aegismcp.lock.json
aegismcp lock --live --url http://localhost:8000/mcp -o aegismcp.lock.json

# Verify static config against lockfile
aegismcp verify samples/vulnerable_mcp.json -l aegismcp.lock.json

# Verify LIVE server against lockfile (NEW v3.0.0) — catches runtime rug-pulls!
aegismcp verify --live --command "python server.py" -l aegismcp.lock.json
aegismcp verify --live --url http://localhost:8000/mcp -l aegismcp.lock.json

Python AST Scanning (ast-scan)

Static analysis of Python MCP server source code for runtime vulnerabilities:

# Excludes test files by default (tests/, test_*.py, *_test.py)
aegismcp ast-scan path/to/server.py --sarif ast-report.sarif --fail-on HIGH

# Include test files explicitly
aegismcp ast-scan path/to/server.py --include-tests --fail-on HIGH

# Export HTML report
aegismcp ast-scan path/to/server.py --html ast-report.html

Cross-Server Analysis

Scan multiple MCP configs together to detect cross-server risks:

# Scan directory of configs for shadowing and drift
aegismcp scan configs/ --cross-server --sarif cross.sarif

SARIF Export & CI/CD

All scan commands support SARIF 2.1.0 output:

aegismcp scan samples/vulnerable_mcp.json --sarif report.sarif --fail-on HIGH
aegismcp ast-scan server.py --sarif ast.sarif --fail-on CRITICAL
aegismcp inspect --command "python server.py" --sarif live.sarif
aegismcp verify --live --command "python server.py" -l lock.json --sarif verify.sarif

Use --fail-on LEVEL (LOW, MEDIUM, HIGH, CRITICAL) to gate CI pipelines.

HTML Executive Reports

New in v3.0.0 — Beautiful, interactive HTML reports with dark/light themes:

aegismcp scan samples/vulnerable_mcp.json --html report.html
aegismcp ast-scan server.py --html ast-report.html
aegismcp inspect --command "python server.py" --html live-report.html

Features: severity filters, searchable findings, collapsible details, print-optimized CSS, copy-to-clipboard SARIF/JSON.

Extensible RuleRegistry

Built-in rules + custom regex rules loaded from config. No code changes needed for new patterns.

Windows Compatible

All CLI output uses [OK]/[FAIL] markers (no Unicode symbols), colored output works in modern terminals.


Quick Start

# Install from PyPI
pip install aegismcp-security

# Install from GitHub (for bleeding edge)
pip install git+https://github.com/cyberlynxxx/aegismcp.git

# Or from source (editable)
git clone https://github.com/cyberlynxxx/aegismcp
cd aegismcp
pip install -e .

# With dev dependencies (for testing)
pip install -e ".[dev]"

Scan your MCP configs

# Auto-discover platform configs (Claude Desktop, Cursor, Windsurf, VS Code)
aegismcp scan --auto

# Scan a specific config file
aegismcp scan samples/vulnerable_mcp.json

# Export SARIF for GitHub Code Scanning
aegismcp scan samples/vulnerable_mcp.json --sarif report.sarif --fail-on HIGH

# Cross-server analysis
aegismcp scan configs/ --cross-server --html cross-report.html

Live introspection (v3.0.0)

# Inspect a running server via stdio
aegismcp inspect --command "python server.py" --fail-on HIGH --html live.html

# Inspect via HTTP/SSE
aegismcp inspect --url http://localhost:8000/mcp --sarif live.sarif

# Create lockfile from live server
aegismcp inspect --command "python server.py" --lock-output live.lock.json

Runtime proxy (v3.0.0)

# Proxy stdio server with security enforcement
aegismcp proxy --command "python server.py" --policy proxy-policy.yaml --audit-log audit.log

# Proxy HTTP upstream
aegismcp proxy --url http://upstream:8000/mcp --port 8080 --fail-closed

Lock & verify (rug-pull protection)

# Create lockfile from static config
aegismcp lock samples/vulnerable_mcp.json -o aegismcp.lock.json

# Create lockfile from LIVE server (catches runtime tool definitions)
aegismcp lock --live --command "python server.py" -o aegismcp.lock.json

# Verify static config
aegismcp verify samples/vulnerable_mcp.json -l aegismcp.lock.json

# Verify LIVE server (detects runtime rug-pulls!)
aegismcp verify --live --command "python server.py" -l aegismcp.lock.json

Scan Python MCP server source

# Scan for command injection, SSRF, path traversal, insecure deserialization
aegismcp ast-scan path/to/server.py --fail-on HIGH --html ast-report.html

# Include test files if needed
aegismcp ast-scan path/to/server.py --include-tests --fail-on HIGH

GitHub Action

Use AegisMCP Security Scanner in your GitHub Actions workflows:

# .github/workflows/security-scan.yml
name: Security Scan

on:
  pull_request:
  push:
    branches: [main]

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Run AegisMCP Scan
        uses: cyberlynxxx/aegismcp@v4.0.0
        with:
          target: .
          format: sarif
          fail-on: HIGH

      - name: Upload SARIF to GitHub Code Scanning
        uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: aegismcp-results.sarif
          category: aegismcp

CLI Reference

aegismcp [--config CONFIG] [--no-color] <COMMAND>
CommandDescription
scanScan MCP config file(s) or directory
inspectv3.0.0 Live MCP server introspection via stdio/HTTP
proxyv3.0.0 Runtime MCP security proxy/firewall
lockCreate lockfile from MCP config or live server
verifyVerify MCP config or live server against lockfile
ast-scanScan Python MCP server source code for vulnerabilities
--versionShow version number

scan

aegismcp scan [TARGET] [--auto] [--cross-server] [--sarif FILE] [--html FILE] [--fail-on LEVEL] [--no-auto-discover]
OptionDescription
TARGETPath to MCP config file or directory (optional if --auto or auto_discover: true in config)
--autoAuto-discover platform MCP configs
--cross-serverEnable cross-server analysis (shadowing, drift)
--sarif FILEExport SARIF report
--html FILEExport HTML executive report
--fail-on LEVELExit with error if findings ≥ LEVEL (LOW/MEDIUM/HIGH/CRITICAL)
--no-auto-discoverDisable platform auto-discovery

inspect (v3.0.0)

aegismcp inspect [--command CMD] [--url URL] [--config-file FILE] [--sarif FILE] [--html FILE] [--lock-output FILE] [--fail-on LEVEL] [--timeout SEC]
OptionDescription
--command CMDCommand to spawn MCP server (stdio)
--url URLHTTP/SSE endpoint for MCP server
--config-file FILEPath to platform MCP config file (Claude Desktop, Cursor, etc.)
--sarif FILEExport SARIF report
--html FILEExport HTML executive report
--lock-output FILECreate lockfile from live server tools
--fail-on LEVELExit with error if findings ≥ LEVEL
--timeout SECConnection timeout (default: 10s)

proxy (v3.0.0)

aegismcp proxy [--command CMD] [--url URL] [--port PORT] [--policy FILE] [--audit-log FILE] [--fail-closed] [--rate-limit RPS]
OptionDescription
--command CMDCommand to spawn upstream MCP server (stdio)
--url URLHTTP/SSE upstream MCP server
--port PORTLocal port for HTTP proxy mode (default: 8080)
--policy FILEPath to proxy policy YAML file
--audit-log FILEPath to audit log (JSONL format)
--fail-closedBlock unknown tools by default
--rate-limit RPSRequests per second limit (default: 100)

Proxy Policy Options (proxy-policy.yaml)

SettingDescription
prompt_injection_modebalanced (default) or strict - weighted scoring threshold
blocked_response_patternsList of regex patterns that trigger response blocking
max_decode_depthMaximum iterations for normalization decoding (default: 5)

lock

aegismcp lock <CONFIG_FILE> [-o OUTPUT] [--live] [--command CMD] [--url URL]
OptionDescription
CONFIG_FILEPath to MCP config file (not needed with --live)
-o, --outputOutput lockfile path (default: ./aegismcp.lock.json)
--liveCreate lockfile from live server instead of static config
--command CMDSpawn server command for live mode
--url URLHTTP/SSE URL for live mode

verify

aegismcp verify <CONFIG_FILE> [-l LOCKFILE] [--live] [--command CMD] [--url URL] [--sarif FILE]
OptionDescription
CONFIG_FILEPath to MCP config file (not needed with --live)
-l, --lockfilePath to lockfile (default: ./aegismcp.lock.json)
--liveVerify live server instead of static config
--command CMDSpawn server command for live mode
--url URLHTTP/SSE URL for live mode
--sarif FILEExport SARIF report

ast-scan

aegismcp ast-scan <TARGET> [--sarif FILE] [--html FILE] [--fail-on LEVEL] [--include-tests]
OptionDescription
TARGETPath to Python file or directory
--sarif FILEExport SARIF report
--html FILEExport HTML executive report
--fail-on LEVELExit with error if findings ≥ LEVEL (default: HIGH)
--include-testsInclude test files/directories (tests/, test_*.py, *_test.py)

Proxy Policy Configuration

Create a proxy-policy.yaml to customize runtime enforcement:

# proxy-policy.yaml
fail_closed: true                    # Block unknown tools by default
prompt_injection_mode: "balanced"    # STRICT or BALANCED - weighted scoring mode
allowed_tools:                       # Explicitly allowlisted tools
  - "safe_read"
  - "safe_write"
rate_limit: 50                       # Requests per second per client
block_patterns:                      # Custom block patterns
  - pattern: "internal\\.api\\.com"
    message: "Internal API access blocked"
audit_log: "audit.log"               # JSONL audit log path
log_level: "INFO"                    # DEBUG, INFO, WARNING, ERROR

Example Output

[CRITICAL] AMCP001 - Direct Shell Execution Allowed
  Location: samples/vulnerable_mcp.json:mcpServers.unsafe-shell
  Detail:   Server 'unsafe-shell' invokes shell 'bash' directly.
  Fix:      Replace shell wrappers with a dedicated, scoped MCP server binary.

[HIGH] AMCP103 - Potential SSRF (Server-Side Request Forgery)
  File:     server.py:33:15
  Detail:   HTTP request with dynamic URL detected (requests.get)
  Fix:      Validate URLs against allowlist, block private/internal IPs

[CRITICAL] AMCP301 - Prompt Injection Detected (Runtime Proxy)
  Tool:     dangerous_tool
  Argument: command="rm -rf / ; ignore previous instructions"
  Action:   BLOCKED

Summary: 9 findings (6 CRITICAL, 2 HIGH, 1 MEDIUM) in 1 file(s)

Benchmarks

AegisMCP v3.1.0 includes a comprehensive benchmarking suite (scripts/benchmark.py) measuring True Positive Rate (TPR), False Positive Rate (FPR), and latency.

ComponentMetricResultNotes
AST Scanner (Python)TPR100% (54/54)All injected vulnerabilities detected
FPR0% (0/38)Zero false positives on clean code
Runtime ProxyLatency P993ms500 calls, stdio transport
Throughput~300 req/sSingle-threaded, no rate limiting
Cross-Server AnalysisTool Shadowing100% detectionDuplicate names across 1000 tools
Permissive Schemas100% detectionUnconstrained dangerous params
Config ScannerTPR (balanced)~30%Rules target tool descriptions/env, not raw payloads
TPR (strict)~30%Same limitation by design

Note: Config scanner TPR appears lower because rules (AMCP005-AMCP008) are designed to analyze tool descriptions and environment variables in MCP config files, not arbitrary payload strings. The benchmark test feeds raw attack payloads directly, which is not the intended threat model.

Running Benchmarks

# Run full benchmark suite
python scripts/benchmark.py

# Run specific benchmarks
python -m pytest tests/test_stress_v3.py -v -k "benchmark"

Project Structure

aegismcp/
├── LICENSE                    # MIT License
├── aegismcp.yaml              # Example policy config
├── proxy-policy.yaml          # Example proxy policy
├── assets/
│   ├── banner-dark.svg        # Dark mode banner
│   └── banner-light.svg       # Light mode banner
├── samples/
│   ├── vulnerable_mcp.json    # Test config with all rule triggers
│   └── test_server.py         # Test Python server with AST vulnerabilities
├── tests/                     # Pytest test suite
│   ├── conftest.py
│   ├── test_scan.py
│   ├── test_lock_verify.py
│   ├── test_ast_scanner.py
│   ├── test_inspector.py
│   ├── test_proxy.py
│   ├── test_reporter.py
│   └── test_stress_v3.py      # v3.0.0 stress/e2e tests
├── .github/workflows/
│   └── ci.yml                 # GitHub Actions CI (Linux + Windows, Python 3.10/3.12)
├── src/aegismcp/
│   ├── __main__.py            # CLI entry point
│   ├── cli.py                 # Command implementations
│   ├── config.py              # aegismcp.yaml loader
│   ├── discovery.py           # Cross-platform auto-discovery
│   ├── lockfile.py            # SHA-256 lockfile (rug-pull protection)
│   ├── ast_scanner.py         # AST visitor for Python vulnerabilities
│   ├── scanner.py             # Main scanner engine
│   ├── sarif.py               # SARIF 2.1.0 exporter
│   ├── rules_core.py          # Finding dataclass
│   ├── inspector.py           # Live MCP introspection (JSON-RPC 2.0)
│   ├── proxy.py               # Runtime MCP security proxy
│   ├── reporter.py            # HTML/SARIF/Console reporters
│   ├── cross_server.py        # Cross-server analysis (shadowing, drift)
│   ├── html_report.py         # HTML report generator
│   └── rules/
│       ├── __init__.py        # Auto-registers built-in rules
│       ├── registry.py        # RuleRegistry class
│       └── builtins/
│           └── __init__.py    # AMCP001-AMCP008, AMCP101-AMCP105, AMCP201-AMCP203, AMCP301-AMCP308

License

MIT License — see LICENSE for details.


Contributing

Issues and PRs welcome! See CONTRIBUTING.md for guidelines.

Frequently asked questions

What is aegismcp-security MCP Server?

Active MCP Security Engine & Runtime Firewall — live introspection, runtime proxy, cross-server rules, executive reporting, Python/JS taint tracking.

How do I install aegismcp-security MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. aegismcp-security MCP Server runs locally from the PyPI package aegismcp-security with the command uvx aegismcp-security.

Is aegismcp-security MCP Server free and open source?

Yes. aegismcp-security MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does aegismcp-security MCP Server support remote (HTTP) connections?

No remote endpoint is listed for aegismcp-security MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is aegismcp-security MCP Server's trust score calculated?

aegismcp-security MCP Server scores 45 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server