Skip to main content
Glama
sparkvibe-io

GuardianShield

by sparkvibe-io

守护之盾

PyPI 版本 Python 许可证 测试

通用的AI安全层——一个开源的MCP服务器,用于代码扫描、PII检测、提示注入防御、秘密检测、依赖审计和审计日志记录。

零依赖 · 27个MCP工具 · 5个安全配置文件 · 108+检测模式

功能特性

  • 代码漏洞扫描 — SQL注入、XSS、命令注入、路径遍历,附带CWE ID和自动修复方案

  • 跨行数据流分析 — DeepEngine通过基于AST的污点传播(Python)和正则表达式(JS/TS)追踪跨多行的从源到汇的污点数据

  • 依赖安全性 — 针对PyPI、npm、Go和Packagist生态系统,通过OSV.dev进行版本感知的CVE匹配

  • 清单解析 — 自动检测11种格式(requirements.txt、package.json、yarn.lock、go.mod、composer.json等)

  • 提示注入防御 — 9+种检测模式,涵盖指令覆盖、角色劫持、ChatML注入

  • PII检测 — 电子邮件、社会安全号码、信用卡、电话、IP——在检测结果中自动进行脱敏处理

  • 秘密检测 — AWS密钥、GitHub令牌、Stripe密钥、JWT、密码、连接字符串

  • 安全配置文件 — 5个内置配置文件(通用、教育、医疗、金融、儿童)

  • 审计日志记录 — 基于SQLite的扫描历史,支持结果检索和筛选

Related MCP server: zentric-protocol-mcp

安装

pip install guardianshield

快速开始

# Register with Claude Code
claude mcp add guardianshield -- guardianshield-mcp

# Or run directly
guardianshield-mcp

编辑器集成

# Claude Code
claude mcp add guardianshield -- guardianshield-mcp

# VS Code (.vscode/mcp.json)
{"servers": {"guardianshield": {"type": "stdio", "command": "guardianshield-mcp"}}}

# Cursor (.cursor/mcp.json)
{"mcpServers": {"guardianshield": {"command": "guardianshield-mcp"}}}

# Claude Desktop (claude_desktop_config.json)
{"mcpServers": {"guardianshield": {"command": "guardianshield-mcp"}}}

MCP工具

扫描

工具

描述

scan_code

扫描源代码中的漏洞和硬编码秘密

scan_file

扫描单个文件(根据扩展名自动检测语言)

scan_directory

递归扫描目录,支持过滤和进度流式传输

scan_input

检查用户/代理输入是否存在提示注入尝试

scan_output

检查AI输出是否存在PII泄露和内容违规

check_secrets

检测硬编码的秘密和凭证

scan_files

一次调用中扫描多个文件

scan_diff

解析统一差异并仅扫描新增的行

依赖安全

工具

描述

check_dependencies

通过OSV.dev检查包的已知CVE(PyPI、npm、Go、Packagist)

sync_vulnerabilities

同步本地OSV漏洞数据库

parse_manifest

将任何支持的清单文件(11种格式)解析为依赖对象

scan_dependencies

扫描目录中的清单文件并检查所有依赖是否存在漏洞

误报管理

工具

描述

mark_false_positive

将发现标记为误报(标记未来的匹配项)

list_false_positives

列出带有可选筛选器的活跃误报记录

unmark_false_positive

通过指纹移除误报记录

引擎管理

工具

描述

list_engines

列出可用分析引擎及其功能

set_engine

设置用于代码扫描的活跃分析引擎

三个内置引擎:regex(逐行模式匹配,默认启用)、deep(跨行污点追踪)和semantic(结构感知的置信度调整)。

CI与开发者工作流

工具

描述

export_sarif

以SARIF 2.1.0 JSON格式导出发现结果,用于GitHub代码扫描和CI

save_baseline

将当前发现结果保存为基线,用于增量扫描

scan_with_baseline

扫描代码并仅报告与基线相比的新发现结果

check_quality_gate

根据严重性阈值评估发现结果(通过/失败/警告)

scan_files

一次调用中扫描多个文件

scan_diff

解析统一差异并仅扫描新增的行

配置与工具

工具

描述

get_profile

获取当前安全配置文件配置

set_profile

切换安全配置文件(通用、教育、医疗、金融、儿童)

test_pattern

针对样本代码测试正则表达式模式,用于自定义模式开发

audit_log

查询安全审计日志

get_findings

检索带筛选器的历史发现结果

shield_status

获取健康状态、配置和OSV缓存统计信息

配置

设置环境变量以自定义行为:

变量

描述

默认值

GUARDIANSHIELD_PROFILE

默认安全配置文件

general

GUARDIANSHIELD_AUDIT_PATH

SQLite审计数据库路径

~/.guardianshield/audit.db

GUARDIANSHIELD_DEBUG

启用调试日志记录(1

禁用

文档

完整文档:sparkvibe-io.github.io/GuardianShield

许可证

Apache 2.0

Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
8Releases (12mo)
Commit activity

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

  • A
    license
    -
    quality
    B
    maintenance
    Predeploy security scanner for AI-generated code. 80+ vulnerability patterns across secrets, auth, injection, config, Supabase, and logging. Runs locally, code never leaves your machine. Optional x402 witnessed attestation.
    136
    Apache 2.0
  • F
    license
    -
    quality
    B
    maintenance
    Security middleware for LLM apps and AI agent pipelines. Detects prompt injection attacks (22 signatures, 7 languages) and anonymizes PII (17 entity types). Deterministic, sub-25ms, GDPR Art.30 compliant.
  • A
    license
    -
    quality
    B
    maintenance
    Provides AI coding assistants with real-time security scanning superpowers, including SAST, secrets detection, dependency CVE scanning, and web vulnerability assessment.
    18
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • Threat modeling, code/cloud/pipeline scanning, shadow-AI discovery, compliance checks and fixes.

  • Pay-per-call cybersecurity for AI agents: vuln scans, threat intel, compliance, code security.

  • The WAF for agents. Pattern-based + heuristic firewall scans prompts, RAG documents, tool argume...

View all MCP Connectors

Latest Blog Posts

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/sparkvibe-io/GuardianShield'

If you have feedback or need assistance with the MCP directory API, please join our Discord server