Skip to main content
Glama
ShieldNet MCP

ShieldNet MCP

by hhhashexe

πŸ›‘οΈ ShieldNet MCP β€” Security Scanner for AI Agents

MCP_HACK//26 Participant

Bring security governance to any AI agent deployment via MCP.

Track: Secure & Govern MCP | MCP_HACK//26

CI npm License: MIT tests Node ≥ 18 MCP Server


What It Does

ShieldNet MCP is a zero-trust guardrail for AI agents. Before your agent connects to any external endpoint (API, webhook, third-party service), ShieldNet scans it and returns an ALLOW / WARN / BLOCK decision β€” with full findings and severity ratings.

  • Scan URLs for 50+ checks across 7 security modules

  • Governance decisions β€” auto-gate agent connections with ALLOW/WARN/BLOCK

  • Security headers audit β€” quick compliance check

  • Side-by-side comparisons β€” which endpoint is safer?

  • Session history β€” track all scans with grades and scores

  • Pre-built prompts β€” security audit & pre-deployment check workflows

Related MCP server: intaris

Why It Matters

AI agents increasingly interact with external APIs and services. Without security governance:

  • An agent could connect to a compromised endpoint

  • Sensitive data could leak through misconfigured CORS

  • Injection attacks could manipulate agent behavior

ShieldNet acts as a security guardrail β€” scan first, connect later.

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚          β”‚       β”‚    agentgateway       β”‚
β”‚  AI Agent│──────▢│  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β•β•β•β•β•β•β•β”
β”‚ (Claude, β”‚       β”‚  β”‚  πŸ”— ShieldNet   β”‚  β”‚      β”‚  External     β”‚
β”‚  GPT,    │◀──────│  β”‚  MCP Server     │──┼─────▢│  Service      β”‚
β”‚  etc.)   β”‚       β”‚  β”‚                 β”‚  β”‚      β”‚  (target URL) β”‚
β”‚          β”‚       β”‚  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚  β”‚      β”‚               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       β”‚  β”‚  β”‚ Scanners  β”‚  β”‚  β”‚      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   β”‚  β””β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”˜  β”‚
                   β”‚     β”‚              β”‚  β”‚
                   β”‚  β”Œβ”€β”€β–Όβ”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β” β”‚
                   β”‚  β”‚Headersβ”‚ β”‚Injection β”‚ β”‚
                   β”‚  β”‚ TLS  β”‚ β”‚Info Disc β”‚ β”‚
                   β”‚  β”‚ Auth β”‚ β”‚Misconfig  β”‚ β”‚
                   β”‚  β”‚Rate  β”‚ β”‚          β”‚ β”‚
                   β”‚  β”‚Limit β”‚ β”‚          β”‚ β”‚
                   β”‚  β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
                   β”‚  ALLOW / WARN / BLOCK  β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Flow:

  1. AI agent requests external connection

  2. agentgateway routes to ShieldNet MCP

  3. ShieldNet runs 7 scanner modules in parallel

  4. Returns ALLOW/WARN/BLOCK + detailed findings

  5. agentgateway enforces the decision

Scanner Modules (7)

#

Module

What It Checks

1

security_headers

HSTS, CSP, X-Frame-Options, Cookie flags, CORS wildcards, info disclosure

2

injection

Reflected XSS, SQLi, SSTI, Command Injection, Path Traversal, SSRF, Open Redirect

3

info_disclosure

25 sensitive paths (.env, .git, package.json, swagger, backups, server-status)

4

tls

HTTP vs HTTPS, SSL/TLS redirect enforcement

5

auth

JWT exposure, JWT alg:none, API keys in source, email harvesting

6

misconfiguration

CORS origin reflection, TRACE method, version disclosure in error pages

7

rate_limiting

20-request burst test (aggressive mode only)

Quick Start

1. Install

git clone https://github.com/hhhashexe/shieldnet-mcp.git
cd shieldnet-mcp
npm install

2. Run a demo scan (no setup needed)

bash demo.sh https://example.com

This launches the MCP server, discovers available tools via tools/list, runs a live scan, and pretty-prints the results with colors. πŸ€™

3. Run the test suite

npm test

75 integration tests covering all 6 MCP tools, 6 tools + 3 resources + 2 prompts.

4. Use as an MCP Server

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "shieldnet": {
      "command": "node",
      "args": ["/path/to/shieldnet-mcp/src/index.js"]
    }
  }
}

With agentgateway

targets:
  - name: shieldnet-security
    provider:
      type: mcp
      config:
        command: node
        args: ["src/index.js"]

See agentgateway.yaml for full configuration.

Raw JSON-RPC (stdio)

echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"my-agent","version":"0.1"}}}
{"jsonrpc":"2.0","method":"notifications/initialized"}
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"scan_url","arguments":{"url":"https://example.com"}}}' | node src/index.js

MCP Tools

Tool

Description

scan_url

Comprehensive scan β€” 7 modules, 50+ checks, A-F grade

assess_risk

Scan + governance decision (ALLOW/WARN/BLOCK) with confidence score

check_headers

Quick security headers audit β€” PASS/WARN/FAIL verdict

scan_history

Session scan history with grades

compare_scans

Side-by-side comparison of two URLs

governance_policy

View policy or evaluate a score against thresholds

MCP Resources

Resource

Description

shieldnet://attack-vectors

Full attack vector database

shieldnet://scan-history

Session scan history

shieldnet://governance-policy

ALLOW/WARN/BLOCK thresholds

MCP Prompts

Prompt

Description

security_audit

Full audit with executive report

pre_deployment_check

Gate check before deployment

Security Governance

ShieldNet makes ALLOW/WARN/BLOCK decisions based on:

ALLOW  β†’ Score β‰₯ 70, no critical findings
WARN   β†’ Score 50-69, or high-severity findings
BLOCK  β†’ Score < 50, or any critical vulnerabilities

Real-World Proof

ShieldNet has been used in production security audits:

  • 3 CVEs discovered and responsibly disclosed

  • PayLock.xyz audit: 36 verified findings (4 Critical, 17 High)

  • Published on npm as shieldnet (v0.3.2)

License

MIT β€” see LICENSE

Available Tools

6 tools
assess_riskA

Security governance gate: scan a URL and return an ALLOW/WARN/BLOCK decision with confidence score. Use as a guardrail before an AI agent connects to any external service.

Inputs: url (required), context.

check_headersA

Quick security headers audit β€” checks HSTS, CSP, CORS, X-Frame-Options, cookie flags, and more.

Inputs: url (required).

compare_scansB

Compare security posture of two URLs side by side β€” useful for evaluating which endpoint is safer.

Inputs: url1 (required), url2 (required).

governance_policyB

View the security governance policy or evaluate a score against ALLOW/WARN/BLOCK thresholds.

Inputs: score, action.

scan_historyA

View history of security scans performed in this session with grades and scores.

Inputs: limit.

scan_urlA

Run a comprehensive security scan on a URL. Checks 7 modules: security headers, injection (XSS/SQLi/SSTI/command injection/path traversal), CORS, info disclosure (25 sensitive paths), TLS, authentication issues, and misconfigurations. Returns findings with severity ratings and a security grade (A-F). Use 'aggressive' mode to also test rate limiting.

Inputs: url (required), mode.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation3/5

    scan_url and assess_risk both scan a URL and could be confused, though assess_risk explicitly returns a governance decision. check_headers overlaps heavily with the headers module inside scan_url, creating ambiguity about which tool to call. Descriptions help clarify intent, but some boundaries remain fuzzy.

    Naming Consistency4/5

    Most tools follow a clear verb_noun snake_case pattern: scan_url, check_headers, scan_history, compare_scans, assess_risk. governance_policy deviates by using a noun_noun name rather than a verb-led action name like view_policy, but the overall naming style is still predictable.

    Tool Count5/5

    Six tools is a well-scoped set for a security scanning and governance server. Each tool has a distinct role within the workflow, and the count is neither bloated nor too thin.

    Completeness4/5

    The tool surface covers scanning, risk assessment, governance policy, history, and comparison, which are the core needs for this domain. A minor gap is that users cannot retrieve detailed findings from a past scan, only grades and scores, but agents can work around this by re-scanning.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      A 7-layer security system for AI agents that detects and blocks prompt injection, data exfiltration, and malicious tool calls. It enables real-time scanning of inputs, outputs, and tool definitions to protect agentic workflows from emerging AI-specific threats.
      1
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Guardrails service for AI agents that evaluates every tool call for safety and alignment before execution, providing default-deny policy, LLM safety evaluation, and audit trail.
      133 PyPI
      22
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      A security checkpoint for AI agents that intercepts and polices tool calls with allow/block/ask verdicts, taint tracking, and audit logging.
      Apache 2.0