DH

darrenjrobinson/hibp-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6 stars 4 forks 质量 78 趋势 8MIT

用于Have I Been Pwned(HIBP) API的模型上下文协议(MCP)服务器,允许您使用自然语言查询破损数据.

概览

用于Have I Been Pwned(HIBP) API的模型上下文协议(MCP)服务器,允许您使用自然语言查询破损数据. 这个MCP服务器提供了与"我曾经被Pwned API"互动的工具,允许您: - 检查电子邮件地址是否出现数据漏洞 - 获取具体漏洞的细节 - 检查已知数据漏洞中是否有密码被曝光 - 检查电子邮件地址是否出现在粘贴中 您的浏览器不支持视频标签 。 1. 安装节点.js(v22.1.0或更高建议) 2. 从 [[T0] 获取您的 HIBP API 密钥 3. 配置您的 MCP 客户端( 如 Claude 桌面) : 一旦配置,你可以向克洛德询问有关数据被破坏的自然语言问题. 以下是一些例子: - “电子邮件地址测试@example.com是否出现在任何数据漏洞中?”.

概述(AI 翻译)

用于Have I Been Pwned(HIBP) API的模型上下文协议(MCP)服务器,允许您使用自然语言查询破损数据.

□ 概览

这个MCP服务器提供了与"我曾经被Pwned API"互动的工具,允许您:

  • 检查电子邮件地址是否有数据漏洞
  • 了解具体违法行为的细节
  • 检查在已知数据被破坏时密码是否已被曝光
  • 检查邮件地址是否出现在粘贴中

GitHub 重现

国家防范机制一揽子计划

博客

您的浏览器不支持视频标签 。

□ 安装和配置

备选1:国家预防机制的安装(建议)

  1. 安装节点.js (v22.10.0或以上建议)
  2. 从 [[T0] 获取您的 HIBP API 密钥
  3. 配置您的 MCP 客户端( 如 Claude 桌面) :

备选2:地方发展

  1. 克隆此存储器:

  2. 安装依赖性:

  3. 建设项目:

  4. 配置您的 MCP 客户端 :

环境变量

名称 名称 |-|-|-. HIBP_API_KEY 您的API 密钥

□ 用法实例

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Have I Been Pwned MCP Server

A Model Context Protocol (MCP) server for the Have I Been Pwned (HIBP) API that allows you to query breach data using natural language.

Overview

This MCP server provides tools to interact with the Have I Been Pwned API, allowing you to:

  • Check if an email address has been in a data breach
  • Get details about specific breaches
  • Check if a password has been exposed in known data breaches
  • Check if an email address appears in pastes

GitHub Repo

NPM Package

Blog

Your browser does not support the video tag.

Installation & Configuration

  1. Install Node.js (v22.10.0 or higher recommended)
  2. Get your HIBP API key from https://haveibeenpwned.com/API/Key
  3. Configure your MCP client (e.g., Claude Desktop ) with:
{
  "mcpServers": {
    "HIBP-MCP": {
      "command": "npx",
      "args": ["-y", "@darrenjrobinson/hibp-mcp"],
      "env": {
        "HIBP_API_KEY": "",
        "HIBP_SUBSCRIPTION_PLAN": "Pwned 1"
      }
    }
  }
}

Option 2: Local Development

  1. Clone this repository:
git clone https://github.com/darrenjrobinson/HIBP-MCP-Server.git
  1. Install dependencies:
cd HIBP-MCP-Server
npm install
  1. Build the project:
npm run build
  1. Configure your MCP client with:
{
  "mcpServers": {
    "HIBP-MCP": {
      "command": "node",
      "args": ["path/to/hibp-mcp/build/main.js"],
      "env": {
        "HIBP_API_KEY": "",
        "HIBP_SUBSCRIPTION_PLAN": "Pwned 1"
      }
    }
  }
}

Environment Variables

Name Description
HIBP_API_KEY Your Have I Been Pwned API key
HIBP_SUBSCRIPTION_PLAN Your HIBP API subscription plan (Pwned 1, Pwned 2, Pwned 3, Pwned 4, or Pwned 5)

Usage Examples

Once configured, you can ask Claude natural language questions about data breaches. Here are some examples:

Checking Email Breaches

Checking Specific Breaches

  • “Tell me about the LinkedIn data breach”
  • “What data was exposed in the Adobe breach?”
  • “List all known data breaches”

Checking Passwords

在 GitHub 查看完整 README

安装

npx -y @darrenjrobinson/hibp-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "HIBP-MCP": { "command": "npx", "args": ["-y", "@darrenjrobinson/hibp-mcp"], "env": { "HIBP_API_KEY": "<your-hibp-api-key>", "HIBP_SUBSCRIPTION_PLAN": "Pwned 1" } } } }