ExposureGuard MCP服务器
一 MCP(模型上下文协议) 将AI助手连接到 ExposureGuard 域安全扫描API。
工具
| 工具 | 说明 |
|---|---|
scan_domain | 全面安全扫描——8次检查、A-F级、分数、发现、报告URL(~8s) |
get_grade | 缓存成绩查找(最长24小时)-快速,无新扫描触发 |
get_remediation | 复制粘贴所有失败检查的修复片段 |
get_dependencies | 域加载的第三方脚本/资源 |
设置
1.获取API密钥
注册地址: getexposureguard.com 从 仪表盘.
2.安装
# Option A: pip install (recommended)
pip install -e /path/to/exposureguard-mcp
# Option B: just install deps
pip install mcp httpx3.配置您的AI客户端
克劳德桌面
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)或 %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"exposureguard": {
"command": "python",
"args": ["-m", "exposureguard_mcp.server"],
"env": {
"EXPOSUREGUARD_API_KEY": "your-api-key-here"
}
}
}
}如果您是作为软件包安装的,您还可以使用:
{
"mcpServers": {
"exposureguard": {
"command": "exposureguard-mcp",
"env": {
"EXPOSUREGUARD_API_KEY": "your-api-key-here"
}
}
}
}光标
编辑 .cursor/mcp.json 在您的项目根目录中(或全局位于 ~/.cursor/mcp.json):
{
"mcpServers": {
"exposureguard": {
"command": "python",
"args": ["-m", "exposureguard_mcp.server"],
"env": {
"EXPOSUREGUARD_API_KEY": "your-api-key-here"
}
}
}
}帆板运动
编辑 ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"exposureguard": {
"command": "python",
"args": ["-m", "exposureguard_mcp.server"],
"env": {
"EXPOSUREGUARD_API_KEY": "your-api-key-here"
}
}
}
}VS代码(副本)
编辑 .vscode/mcp.json 在您的项目中:
{
"servers": {
"exposureguard": {
"type": "stdio",
"command": "python",
"args": ["-m", "exposureguard_mcp.server"],
"env": {
"EXPOSUREGUARD_API_KEY": "your-api-key-here"
}
}
}
}4.使用示例
连接后,询问您的AI助手:
- “扫描example.com查看安全问题”
- “cloudflare.com的安全等级是多少?”
- “演示如何修复我的site.com上的安全问题”
- “shopify.com加载哪些第三方脚本?”
独立运行
export EXPOSUREGUARD_API_KEY=your-api-key-here
python -m exposureguard_mcp.server服务器使用MCP协议通过stdio进行通信——它被设计为由MCP客户端启动,而不是交互式使用。
速率限制
费率限制取决于您的ExposureGuard计划。如果你点击429响应,服务器将返回一条消息,建议你在 getexposureguard.com/pricing.
出版
PyPI
pip install build twine
python -m build
twine upload dist/*然后用户安装: pip install exposureguard-mcp
npm
npm publish然后用户安装: npx exposureguard-mcp
许可证
麻省理工学院
