SkillAgentSearch skills...

spidershield

Scan, rate, and harden MCP servers for AI agent safety

Install / Use

claude mcp add teehooai -- npx -y github:teehooai/spidershield

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

73/100

Category

Security

Supported Platforms

Claude Code
Claude Desktop

Our assessment of spidershield

spidershield scores 73/100 on our quality scale, 1027th of 1,103 Security skills we index.

Its MCP Server is 13 KB long, well organised into 42 sections with 20 code examples: a thorough specification that gives an agent plenty to work with.

It has 10 GitHub stars, so there is little community track record yet; judge it on its content.

Substance
30/30
Structure
20/20
Description
8/15
Adoption
4/20
Freshness
11/15

Maintenance, license and trust

  • The repository was last updated about 7 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
  • Our last check on 2026-10-22 found the source still online.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 86/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

spidershield compared with similar skills

All 4 of these similar skills score higher than spidershield; compare them before choosing.

SkillScoreStarsUpdatedFormat
spidershield (this skill)by teehooai73107mo agoMCP Server
Agent-Reachby Panniantong100109.5k1d agoCLAUDE.md
headroomby headroomlabs-ai10079.0ktodayCLAUDE.md
CowAgentby zhayujie10047.8ktodayCLAUDE.md
Scraplingby D4Vinci10098.7ktodayMCP Server

Frequently asked questions

How do I install spidershield?
Run claude mcp add teehooai -- npx -y github:teehooai/spidershield. The install tabs above show the steps for each supported agent.
Which AI agents does spidershield work with?
It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
Is spidershield safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 86/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is spidershield still maintained?
The repository was last updated about 7 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.

SpiderShield -- Security Scanner & Runtime Guard for MCP Servers

SpiderShield Verified PyPI License: MIT

Security toolkit for MCP servers and AI agents. Static analysis, runtime policy enforcement, DLP, and audit logging -- from development to production.

Security Contributions

SpiderShield has identified and fixed vulnerabilities in these projects (merged PRs):

| Project | Stars | Fix | |---------|-------|-----| | upstash/context7 | 49K+ | Path traversal (CWE-22) | | moeru-ai/airi | 35K+ | Timing attack (CWE-208) | | topoteretes/cognee | -- | Command injection (CWE-78) | | Flux159/mcp-server-kubernetes | 1.3K+ | Timing attack (CWE-208) | | agentic-community/mcp-gateway-registry | -- | Shell injection (CWE-78) |

What SpiderShield does

SpiderShield is a 5-subsystem security toolkit:

| Subsystem | Command / API | What it does | |-----------|---------------|-------------| | Static Scanner | spidershield scan | Score tool descriptions, detect code vulnerabilities, rate overall quality (F/C/B/A/A+) | | Agent Security | spidershield agent-check | 18 config checks, 15 malicious pattern detections, toxic flow analysis, rug pull detection | | Runtime Guard SDK | SpiderGuard(policy="balanced") | Pre/post-execution policy enforcement for tool calls | | MCP Proxy | guard_mcp_server(cmd) | Transparent security proxy between agent and MCP server | | DLP Engine | Built into Guard SDK | Scan tool outputs for PII/secrets, redact or block |

Install

pip install spidershield

Requires Python 3.11+. See SUPPORT.md for version compatibility and optional dependencies.

5-Minute Success Path

# 1. Install
pip install spidershield

# 2. Scan any MCP server
spidershield scan ./your-mcp-server

# 3. See what's wrong and how to fix it
spidershield rewrite ./your-mcp-server --dry-run

# 4. (Optional) Protect at runtime
spidershield proxy -- npx server-filesystem /tmp

For contributors:

git clone https://github.com/teehooai/spidershield && cd spidershield
make verify-oss   # One command: install + lint + type check + test + scan

Quick Start

Static scan (CI / development)

spidershield scan ./your-mcp-server

Example output:

            SpiderShield Scan Report
   modelcontextprotocol/servers/filesystem
+---------------------------------------------+
| Metric                | Value     |   Score |
|-----------------------+-----------+---------|
| License               | MIT       |      OK |
| Tools                 | 14        |      OK |
| Security              | 0 issues  | 10.0/10 |
| Descriptions          |           |  3.2/10 |
| Architecture          |           | 10.0/10 |
| Tests                 | Yes       |      OK |
|                       |           |         |
| Overall               | Rating: B |  7.6/10 |
| Improvement Potential |           |  2.4/10 |
+---------------------------------------------+

Runtime Guard SDK (production)

Enforce security policies on every tool call at runtime:

from spidershield import SpiderGuard, Decision

guard = SpiderGuard(policy="strict")

result = guard.check("read_file", {"path": "/etc/passwd"})
if result.decision == Decision.DENY:
    print(result.reason)       # "System file access blocked"
    print(result.suggestion)   # "Use application-level files instead"

Policy presets:

| Preset | Behavior | |--------|----------| | strict | Deny by default, explicit allow list | | balanced | Block known-dangerous patterns, allow common operations | | permissive | Warn on suspicious patterns, allow most operations | | Custom YAML | Load your own policy file: SpiderGuard(policy="my-policy.yaml") |

With audit logging and DLP:

guard = SpiderGuard(
    policy="strict",
    audit=True,              # Write audit trail to disk
    audit_dir="./logs",      # Custom audit directory
    dlp="redact",            # Scan outputs for PII/secrets, redact matches
)

# Pre-execution check
result = guard.check("query_db", {"sql": "SELECT * FROM users"})

# Post-execution DLP scan
clean_output = guard.after_check("query_db", raw_result)

With data flywheel (opt-in telemetry to local SQLite):

guard = SpiderGuard(policy="balanced", dataset=True)
# Every check() call feeds the local dataset for scoring calibration

MCP Proxy (transparent protection)

Wrap any MCP server with SpiderShield policy enforcement:

from spidershield import guard_mcp_server

# Proxy between agent and server, enforcing "balanced" policy
guard_mcp_server(
    ["npx", "server-filesystem", "/tmp"],
    policy="balanced",
    audit=True,
)

Or from the CLI:

spidershield proxy -- npx server-filesystem /tmp --policy balanced

Rewrite tool descriptions

SpiderShield can automatically rewrite tool descriptions to be action-oriented, with scenario triggers, parameter examples, and error guidance.

# Preview changes (no files modified)
spidershield rewrite ./your-mcp-server --dry-run

# Apply changes to source files
spidershield rewrite ./your-mcp-server

Before (score 2.9):

"Shows the working tree status"

After (score 9.6):

"Query the current state of the Git working directory and staging area.
 Use when the user wants to check which files are modified, staged, or
 untracked before committing."

The rewriter works offline using templates (zero cost). Set ANTHROPIC_API_KEY for higher-quality LLM-powered rewrites.

Scan results across the MCP ecosystem

| Server | Tools | Security | Descriptions | Overall | Rating | |--------|-------|----------|-------------|---------|--------| | filesystem | 14 | 10.0 | 3.2 | 7.6 | B | | git | 12 | 10.0 | 2.4 | 7.3 | B | | memory | 9 | 10.0 | 2.3 | 7.3 | B | | fetch | 1 | 9.0 | 3.5 | 7.3 | B | | supabase | 30 | 9.0 | 2.3 | 6.4 | B |

Full report: MCP-SECURITY-REPORT.md | Raw data: CURATION-REPORT.md

Try it on an example

The repo includes example MCP servers for instant demo:

git clone https://github.com/teehooai/spidershield
cd spidershield

spidershield scan examples/insecure-server   # Rating: D (3.3/10)
spidershield scan examples/secure-server     # Rating: D (4.7/10)

What SpiderShield checks

Static Scanner

Security (weighted 35%)

  • Path traversal
  • Command injection / dangerous eval
  • SQL injection (Python + TypeScript)
  • SSRF (unrestricted network access)
  • Hardcoded credentials
  • Unsafe deserialization (pickle, yaml.load)
  • Prototype pollution (TypeScript)

Descriptions (weighted 35%)

  • Action verb starts ("List", "Create", "Execute")
  • Scenario triggers ("Use when the user wants to...")
  • Parameter documentation
  • Parameter examples
  • Error handling guidance
  • Disambiguation between similar tools
  • Length (too short = vague, too long = noisy)

Architecture (weighted 30%)

  • Test coverage (gradual: count-based)
  • Error handling (gradual: coverage-based)
  • README quality (gradual: length-based)
  • Type annotations
  • Dependency management
  • Environment configuration

License (pass/fail gate, not weighted)

  • MIT, Apache-2.0, BSD = OK
  • GPL, AGPL = warning
  • Missing = fail

Agent Security Checker

Scan AI agent installations for security misconfigurations and malicious skills.

spidershield agent-check ~/.openclaw

What it checks:

  • 10 configuration security checks (auth, sandbox, SSRF, permissions, etc.)
  • 20+ malicious skill patterns (reverse shells, credential theft, prompt injection)
  • Toxic flow detection -- flags skills that can read sensitive data AND send it externally
  • Typosquat detection for skill names
  • Excessive permission requests

Advanced options:

# Verify skill integrity (rug pull detection)
spidershield agent-check --verify

# Only approved skills allowed
spidershield agent-check --allowlist approved.json

# Strict mode: fail on any finding
spidershield agent-check --policy strict

# Ignore specific rules
spidershield agent-check --ignore TS-W001 --ignore typosquat

# Auto-fix configuration issues
spidershield agent-check --fix

# SARIF output for GitHub Code Scanning
spidershield agent-check --format sarif > results.sarif

Skill pinning (rug pull protection):

spidershield agent-pin add ~/.openclaw/skills/my-skill/SKILL.md
spidershield agent-pin add-all
spidershield agent-pin verify    # detect tampered skills
spidershield agent-pin list

46 standardized issue codes across 4 categories:

| Code | Category | Example | |------|----------|---------| | TS-E001~E015 | Error (malicious) | Reverse shell, credential theft, prompt injection | | TS-W001~W011 | Warning (suspicious) | Typosquat, toxic flow, unapproved skill | | TS-C001~C018 | Config | No auth, sandbox disabled, SSRF enabled | | TS-P001~P002 | Pin | Verified, tampered |

Rating scale (SpiderRating)

| Rating | Score | Meaning | |--------|-------|---------| | A | 9.0+ | Exemplary | | B | 7.0+ | Production-ready | | C | 5.0+ | Usable, needs improvements | | D | 3.0+ | Significant issues | | F | <3.0 | Unsafe, do not deploy |

Formula (MCP servers): description × 0.38 + security × 0.34 + metadata × 0.28 Formula (Skills): description × 0.45 + security × 0.35 + metadata × 0.20

JSON output

spidershield scan ./server --format json
spidershield scan ./server --format json -o report.json

GitHub Action

Add SpiderShield to your CI pipeline. Available on the GitHub Marketplace.

Basic usage

# .github/workflows/security.yml
name: SpiderShield Security Scan
on: [push, pull_request]

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: teehooai/spidershield@v1
        with:
          target: '.'
          fail-below: '6.0'

With outputs

- uses: actions/checkout@v4
- id: scan
  uses: teehooai/spidershield@v1
  with:
    target: '.'
    fail-below: '6.0'
    format: 'json'
- run: |
    echo "Score: ${{ steps.scan.outputs.score }}"
    echo "Rating: ${{ steps.scan.outputs.rating }}"

Action inputs

| Input | Description | Default | |-------|-------------|---------| | target | Path to MCP server directory | . | | fail-below | Fail if score is below this threshold (0-10) | 0 (never fail) | | format | Output format (table or json) | table |

Action outputs

| Output | Description | |--------|-------------| | score | Overall scan score (0-10) | | rating | Rating: F / C / B / A / A+ | | tool-count | Number of tools detected |

Commands

| Command | Description | |---------|-------------| | spidershield scan <path> | Scan and rate an MCP server | | spidershield rewrite <path> | Rewrite tool descriptions | | spidershield harden <path> | Suggest security hardening (advisory only) | | spidershield eval <original> <improved> | Compare tool selection accuracy | | spidershield agent-check [dir] | Scan an AI agent for security issues | | spidershield agent-pin <cmd> | Manage skill pins for rug pull detection | | spidershield guard -- <cmd> | Wrap any subprocess with security guard | | spidershield proxy -- <cmd> | MCP proxy with policy enforcement | | spidershield policy list\|show\|validate | Manage security policies | | spidershield audit show\|stats | View guard audit logs | | spidershield dataset stats | View data flywheel statistics | | `spidershield dataset benchmark-

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars10
CategorySecurity
Updated6mo ago
Forks2

Languages

Python

Trust signals

86/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

2 low1 info