AIShield
Scans MCP servers and AI tools for security risks, providing 4-dimensional scoring and badges, with optional guardrail MCP for auto-protection.
README
<div align="center">
🛡️ AIShield
Agent-Native AI Tool Security Scanner
Scan MCP servers, AI skills, GPTs, and prompts for security risks. 4-dimensional scoring. Certified badges. Guardrail MCP for auto-protection.
</div>
🚀 Quick Start
1. MCP Server (Claude Desktop / Cursor)
{
"mcpServers": {
"aishield": {
"command": "npx",
"args": ["aishield-mcp"]
}
}
}
2. Python SDK
pip install aishield
from aishield import AIShield
shield = AIShield()
result = shield.scan("https://github.com/modelcontextprotocol/servers")
print(result.overall_score) # 85
print(result.badge_level) # "gold"
3. Guardrail MCP (Auto-protection)
{
"mcpServers": {
"aishield-guardrail": {
"command": "npx",
"args": ["aishield-guardrail"],
"env": {
"AISHIELD_API_KEY": "your-key"
}
}
}
}
Put aishield-guardrail FIRST in your config. It intercepts all tool installs and blocks unsafe ones.
4. GitHub Action
- uses: aishield/audit@v1
with:
api_key: ${{ secrets.AISHIELD_KEY }}
fail_on_risk: true
🛡️ What AIShield Scans
| Category | Detection |
|---|---|
| Tool Poisoning | Hidden adversarial instructions in tool descriptions |
| Prompt Injection | Malicious prompts that hijack agent behavior |
| Command Execution | child_process, subprocess, os.system |
| Data Exfiltration | Unauthorized network calls, telemetry |
| Credential Leaks | Hardcoded API keys, tokens, passwords |
| Dangerous APIs | File system, network, shell, database access |
| Supply Chain | Malicious dependencies, typosquatting |
| Code Quality | Error handling, input validation, docs |
📊 Scoring
4-dimensional scoring (0-100):
| Dimension | Weight | What it measures |
|---|---|---|
| Security | 40% | Code vulnerabilities, dangerous APIs |
| Privacy | 25% | Data exfiltration, telemetry |
| Quality | 20% | Code quality, documentation |
| Performance | 15% | Resource usage, efficiency |
Badges: 🥇 Gold (≥85) | 🥈 Silver (≥70) | 🥉 Bronze (≥55)
📦 Packages
| Package | Install | Description |
|---|---|---|
aishield-mcp |
npx aishield-mcp |
MCP Server for Claude/Cursor |
aishield-guardrail |
npx aishield-guardrail |
Guardrail MCP (auto-block unsafe tools) |
aishield |
pip install aishield |
Python SDK |
| GitHub Action | uses: aishield/audit@v1 |
CI/CD integration |
| Claude Skill | Plugin install | Claude Code skill |
🔌 API
Submit Audit
curl -X POST https://aishield.ai/api/v1/audit \
-H "Content-Type: application/json" \
-H "X-API-Key: your-key" \
-d '{
"tool_type": "mcp",
"source_url": "https://github.com/user/repo",
"name": "my-mcp-server"
}'
Get Result
curl https://aishield.ai/api/v1/audit/{audit_id}
Get Badge

Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/audit |
Submit audit |
| GET | /api/v1/audit/{id} |
Get audit result |
| GET | /api/v1/tools |
List scanned tools |
| GET | /api/v1/stats |
Global statistics |
| GET | /api/v1/badge-name/{name} |
SVG badge |
| GET | /api/v1/pricing |
Pricing info |
| POST | /api/v1/keys |
Create API key |
| GET | /api/v1/health |
Health check |
💰 Pricing
| Tier | Price | Scans/Day | Features |
|---|---|---|---|
| Free | ¥0 | 5 | Basic scanning, badge |
| Pro | ¥29/month | 200 | Priority queue, batch scan |
| Enterprise | ¥199/month | Unlimited | Custom rules, SSO, SLA |
| Pay-per-scan | ¥1/scan | - | One-time |
Get API key: https://aishield.ai/pricing
🏗️ Architecture
Agent (Claude/Cursor/Cline)
↓ installs MCP tool
Guardrail MCP intercepts
↓ calls AIShield API
AIShield Scanner
├── Static Analysis (30+ regex rules)
├── Dependency Analysis (npm/PyPI)
├── Secrets Detection
└── Semantic Analysis (AI-powered)
↓ returns 4D score + badge
Agent shows result to user
✅ Approved → install
🚫 Blocked → warn user
📈 Roadmap
- [x] MCP Server (stdio)
- [x] Python SDK
- [x] GitHub Action
- [x] Guardrail MCP
- [x] 4-dimensional scoring
- [x] Certified badges
- [ ] OWASP MCP Top 10 alignment
- [ ] Tool Poisoning deep detection
- [ ] Rug Pull detection (git diff monitoring)
- [ ] MCP Trust Framework (MTF) scoring
- [ ] Real-time handshake verification
- [ ] Batch scan 1000+ tools
- [ ] Industry security report
📄 License
MIT © AIShield
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。