🔒 CyberMCP
基于模型上下文协议(MCP)的人工智能网络安全API测试
 ](https://nodejs.org/) 
CyberMCP是一个模型上下文协议(MCP)服务器,使AI代理能够对后端API执行全面的安全测试。它提供了14个专门的安全工具和10个资源,用于识别身份验证绕过、注入攻击、数据泄漏和安全配置错误等漏洞。
🚀 快速开始
# Clone and setup
git clone https://github.com/your-username/CyberMCP.git
cd CyberMCP
npm install
npm run build
# Test the server
npm run test-server
# Start interactive testing
npm run test-interactive✨ 特性
- 🔐 认证测试 -JWT分析、旁路检测、OAuth2流
- 💉 注入测试 -SQL注入、XSS漏洞检测
- 📊 数据保护 -敏感数据泄露、路径遍历检查
- ⏱️ 速率限制 -DoS漏洞评估
- 🛡️ 安全标头 -OWASP安全标头验证
- 📚 综合资源 -安全检查表和测试指南
🛠️ 安全工具(共14个)
| 类别 | 工具 |
|---|---|
| 认证 | basic_auth, token_auth, oauth2_auth, api_login, auth_status, clear_auth, jwt_vulnerability_check, auth_bypass_check |
| 注入测试 | sql_injection_check, xss_check |
| 数据保护 | sensitive_data_check, path_traversal_check |
| 基础设施 | rate_limit_check, security_headers_check |
🎯 IDE集成
CyberMCP与所有主要的人工智能IDE兼容:
- 克劳德桌面 -直接MCP集成
- 光标IDE -内置MCP支持
- 风帆冲浪(Codeium) -本地MCP协议
- VS代码+临床 -基于扩展的集成
📖 完整安装指南 -每个IDE的详细配置
📋 用法示例
"Use basic_auth with username 'admin' and password 'secret123'
then use auth_bypass_check on https://api.example.com/users
to test for authentication bypass vulnerabilities"AI代理将:
- 配置身份验证凭据
- 测试受保护端点是否存在绕过漏洞
- 提供详细的安全分析和建议
📊 测试与验证
# Comprehensive tool testing
npm run test-tools
# Manual interactive testing
npm run test-interactive
# Quick setup verification
npm run quick-start
# MCP Inspector (GUI)
npm run inspector📁 项目结构
CyberMCP/
├── src/ # TypeScript source code
│ ├── tools/ # 14 security testing tools
│ ├── resources/ # Security checklists & guides
│ └── utils/ # Authentication & utilities
├── docs/ # Documentation
├── scripts/ # Testing & utility scripts
├── examples/ # Configuration examples
├── dist/ # Built JavaScript (generated)
└── README.md # This file🔧 发展
# Development mode with hot reload
npm run dev
# Build TypeScript
npm run build
# Start server (stdio mode)
npm start
# Start HTTP server
TRANSPORT=http PORT=3000 npm start📖 文档
🤝 贡献
- 分叉存储库
- 创建要素分支:
git checkout -b feature/new-security-tool - 进行更改并添加测试
- 提交拉取请求
📄 许可证
此项目根据MIT许可证获得许可-请参阅 许可证 文件以获取详细信息。
🔗 资源
- 模型上下文协议 -MCP官方文件
- OWASP API安全 -API安全最佳实践
- MCP TypeScript SDK -发展框架
______________________________________________________________________
🔒 通过AI驱动的测试保护您的API!
*如需支持和提问,请 创建问题.*
