Hibp

io.github.darrenjrobinson由 GitHub 帳號 darrenjrobinson 發布v1.1.0更新於 Oct 24, 2026

A Model Context Protocol (MCP) server for the Have I Been Pwned (HIBP) API

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理查詢 Have I Been Pwned API,取得外洩帳號、外洩事件詳情、貼文內容與已外洩密碼。

可以做什麼
檢查某個電子郵件地址是否出現在已知資料外洩中,可依網域篩選並選擇是否包含未驗證的外洩,回應可選擇截斷。依名稱查詢特定外洩事件的詳情,列出所有已外洩網站,並列出外洩的資料類別。檢查某個電子郵件地址是否出現在貼文內容中。檢查密碼是否已外洩,密碼在本機雜湊,僅傳送雜湊的前五個字元。
適用情境
適合在安全審查、事件排查或日常帳號衛生檢查中查詢帳號或密碼是否外洩,並希望以自然語言提問而不直接呼叫 HIBP API 的情境。
執行需求
透過 npx 在本機執行,需要 Node.js(建議 v22.10.0 或更高版本)。需要在 HIBP_API_KEY 中提供 Have I Been Pwned API 金鑰,並在 HIBP_SUBSCRIPTION_PLAN 中指定訂閱方案(Pwned 1 至 Pwned 5)。需要能存取 HIBP API 的網路。
安裝前請注意
HIBP API 金鑰是付費訂閱憑證,以環境變數形式傳入,請勿放入共用設定。電子郵件地址和查詢內容會傳送給第三方 HIBP 服務。密碼檢查會在本機雜湊且只傳送五字元雜湊前綴,但仍應避免在可能被記錄的對話中輸入真實密碼。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Hibp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Have I Been Pwned MCP Server

[npm version] [npm downloads] [license]

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

Option 1: NPM Installation (Recommended)

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

Option 2: Local Development

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

Environment Variables

NameDescription
HIBP_API_KEYYour Have I Been Pwned API key
HIBP_SUBSCRIPTION_PLANYour 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

  • "Has the password 'Password123' been exposed in any breaches?"
  • "Is my password 'MySecurePass2024' safe to use?"
  • "Check if this password has been compromised: 'TestPass1234'"

Checking Pastes

Tools

HIBP-Breaches

Query breached accounts and breaches from the Have I Been Pwned API.

Parameters:

  • operation: The HIBP operation to perform (getAllBreachesForAccount, getAllBreachedSites, getBreachByName, getDataClasses)
  • account: Email address to check for breaches (required for getAllBreachesForAccount)
  • domain: Domain to filter breaches by (optional)
  • name: Breach name to get details for (required for getBreachByName)
  • includeUnverified: Whether to include unverified breaches (optional)
  • truncateResponse: Whether to truncate the response (optional)

HIBP-Pastes

Query pastes containing account data from the Have I Been Pwned API.

Parameters:

  • account: Email address to check for pastes (required)

HIBP-PwnedPasswords

Check if a password has been exposed in data breaches using the Pwned Passwords API.

Parameters:

  • password: Password to check (will be hashed locally before sending and only the first 5 characters sent)

Security Note

Passwords checked through the HIBP-PwnedPasswords tool are never sent in plain text. They are hashed locally using SHA-1, and only the first 5 characters of the hash are sent to the API using k-anonymity.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

Author

Darren J Robinson

來源:Readme.MD,提交 ba087b6

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v1.1.0最新Oct 14, 2026
  2. v1.0.4Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分