scopeguard-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@scopeguard-mcpCheck if https://example.com is in scope for an assessment."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ScopeGuard MCP
ScopeGuard is a policy-first defensive security operations server for MCP. It gives AI clients useful repository and web-security analysis while keeping authorization, execution, target scope, and auditability under operator control.
It is designed as a safer, maintainable alternative to broad shell-driven pentest orchestrators. “Better” here means stronger trust boundaries and engineering quality—not more autonomous exploitation.
The comparison below uses the public HexStrike AI v6 repository as the reference baseline. ScopeGuard is built on the official MCP Python SDK 2.x.
Why ScopeGuard
Boundary | ScopeGuard | HexStrike AI v6 reference inspected |
Protocol | Official MCP Python SDK 2.x | FastMCP dependency below 1.0 |
Architecture | Small modules with explicit domain boundaries | Two main Python scripts totaling about 22k lines |
Client transport | Local stdio only | MCP client plus local Flask execution API |
Authorization | Expiring engagements, target scopes, capabilities | Caller-supplied targets sent to execution endpoints |
Execution | Operator-created execute engagement and server-side environment gate | Tool call can directly launch commands |
Process control | No arbitrary shell or command tool | Broad subprocess wrappers |
Audit | SQLite WAL plus a verifiable SHA-256 hash chain | Conventional logs |
Secret handling | Findings are fingerprinted; matched values are never returned | Tool output may contain raw secrets |
Quality | CI matrix, linting, packaging, 90% coverage floor | No test or CI suite visible in the inspected tree |
ScopeGuard does not include exploit generation, password attacks, payload generation, credential capture, or autonomous attack-chain execution.
Related MCP server: Symbiotic MCP Server
Included tools
health— safety posture, supported capabilities, and audit-chain statuscreate_dry_run_engagement— create an expiring, non-executing scope from MCPrevoke_engagement— stop an engagement immediatelycheck_scope— normalize and evaluate a URL, domain, IP/CIDR, or file targetplan_assessment— produce a bounded web or repository baseline plananalyze_headers— inspect caller-supplied HTTP headers without making a requestscan_repository— read-only built-in Python risk and secret checkslist_audit_eventsandverify_audit_chain— inspect and verify evidence
Quick start
Python 3.11 or newer is required.
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install -e .
scopeguard doctor
scopeguard-mcpConfigure an MCP client to launch the local stdio server:
{
"mcpServers": {
"scopeguard": {
"command": "/absolute/path/to/scopeguard-mcp/.venv/bin/scopeguard-mcp",
"env": {
"SCOPEGUARD_STATE_DIR": "/absolute/path/to/scopeguard-state"
}
}
}
}Authorization workflow
MCP clients can create only dry-run engagements. They can check scope, build plans,
and perform offline header analysis, but repository execution remains planned.
For a real read-only repository scan, the operator must create an execute engagement outside the model and launch the server with execution enabled:
export SCOPEGUARD_STATE_DIR=/absolute/path/to/scopeguard-state
export SCOPEGUARD_ALLOWED_ROOTS=/absolute/path/to/authorized-repositories
export SCOPEGUARD_EXECUTION_ENABLED=true
scopeguard create-engagement \
--title "Repository security baseline" \
--ticket SEC-1234 \
--target file:/absolute/path/to/authorized-repositories/example \
--capability scan:repository \
--capability audit:read \
--mode execute \
--expires-in-minutes 60
scopeguard-mcpThe returned engagement ID is required by scan_repository. Both the engagement file
scope and SCOPEGUARD_ALLOWED_ROOTS must contain the requested path. Symlinks are
resolved before either policy is evaluated.
Capabilities
Capability | Allows |
| Bounded web/repository planning for an in-scope target |
| Offline analysis of supplied HTTP headers |
| Built-in read-only scan, subject to both execution gates |
| Reading engagement-specific audit events |
Configuration
Variable | Default | Purpose |
|
| SQLite state and audit database |
| current directory | Path-separated operator allowlist |
|
| Enables execute engagements when |
|
| Repository scan file ceiling |
|
| Per-file read ceiling |
The MCP server intentionally exposes only stdio. A future network transport must ship with standards-based authentication, request-size limits, and explicit deployment guidance; binding an unauthenticated security service to a port is not accepted here.
Repository analyzer
The dependency-free analyzer currently detects:
Python
eval/execos.system/os.popensubprocesscalls withshell=Trueunsafe Pickle deserialization
yaml.loadwithout a safe loaderprivate-key blocks, AWS access keys, GitHub tokens, and likely hard-coded secrets
Secret values are never returned. Findings contain only rule metadata, location, and a short one-way fingerprint for correlation.
Development
pip install -e ".[dev]"
ruff check .
pytest
python -m buildThe test suite includes a real in-memory MCP v2 discovery and tool-call round trip.
See ARCHITECTURE.md, SECURITY.md, and CONTRIBUTING.md for design and project policy.
Responsible use
Use ScopeGuard only on repositories and systems you own or are explicitly authorized to assess. The project is defensive tooling, not authorization to test a target.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceA production-grade security auditing MCP server that wraps semgrep (SAST) and gitleaks (secret detection) to enable one-click code security scanning via MCP stdio protocol.19MIT

Symbiotic MCP Serverofficial
AlicenseAqualityDmaintenanceEnables security analysis of code and infrastructure files via MCP, using Symbiotic CLI for scanning vulnerabilities.4MIT- Alicense-qualityDmaintenanceSecurity scanning MCP server. Semgrep integration, SARIF parsing, baseline diffing, framework-aware ruleset selection, and automated finding triage.121MIT
- AlicenseAqualityAmaintenanceSecurity scanning for MCP servers from the inside out. Provides runtime inspection, AST-based static analysis, config audit, dependency analysis, and OWASP MCP Top 10 compliance in a single MCP server.55215MIT
Related MCP Connectors
Scan any public GitHub MCP-server repo for security issues. 37 MCP-specific L1 rules, 8 languages.
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Remote MCP for A2A caller identity, scope policy, verdict receipts, and audit history.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mzatylny/scopeguard-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server