这是一个与 Have I Been Pwned API 集成的模型上下文协议(MCP)服务器,能帮您快速检查账户或密码是否在数据泄露中被泄露,为您的账户安全保驾护航。
此 MCP 服务器提供了四个主要工具:
要自动为 Claude Desktop 安装 hibp-mcp-server,可使用以下命令:
npx -y --安装@smithery/hibp-mcp-server
git clone https://github.com/ClaudeAI/hibp-mcp-server.git
cd hibp-mcp-server
npm install
在安装完成后,您可以通过以下方式运行服务器:
node index.js
默认情况下,服务器将在 http://localhost:3000
上运行。
请求:
http://localhost:3000/api/check-email?email=user@example.com
响应:
{
"result": {
"passwordLeaks": false,
"breaches": []
}
}
请求:
http://localhost:3000/api/check-password?password=your_password_here
响应:
{
"result": {
"passwordLeaks": false
}
}
将 API 密钥作为环境变量提供:
HIBP_API_KEY=your_api_key_here
获取 API 密钥:haveibeenpwned.com/API/Key
本项目采用 MIT 许可证。