io.github.darrenjrobinson/hibp

السجل الرسمي الذكاء الاصطناعي والوكلاء

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

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package @darrenjrobinson/hibp-mcp
Claude Code
claude mcp add hibp -e 'HIBP_API_KEY=<your hibp_api_key>' -e 'HIBP_SUBSCRIPTION_PLAN=<HIBP_SUBSCRIPTION_PLAN>' -- npx -y @darrenjrobinson/hibp-mcp@1.1.0
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "hibp": {
            "command": "npx",
            "args": [
                "-y",
                "@darrenjrobinson/hibp-mcp@1.1.0"
            ],
            "env": {
                "HIBP_API_KEY": "<your hibp_api_key>",
                "HIBP_SUBSCRIPTION_PLAN": "<HIBP_SUBSCRIPTION_PLAN>"
            }
        }
    }
}

متغيرات البيئة

  • HIBP_API_KEY إلزامي سري Your Have I Been Pwned API key from https://haveibeenpwned.com/API/Key
  • HIBP_SUBSCRIPTION_PLAN إلزامي Your HIBP API subscription plan (Pwned 1, Pwned 2, Pwned 3, Pwned 4, or Pwned 5)

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Have I Been Pwned MCP Server
  2. Overview
  3. Installation & Configuration
  4. Usage Examples
  5. Tools
  6. Security Note
  7. Contributing
  8. License
  9. Author

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": "<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
  2. Install dependencies: bash cd HIBP-MCP-Server npm install
  3. Build the project: bash npm run build
  4. 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
  • "Has email address test@example.com appeared in any data breaches?"
  • "What breaches contain the email address test@example.com?"
  • "Show me all breaches for test@example.com"
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
  • "Has test@example.com appeared in any pastes?"
  • "Show me paste data for test@example.com"

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

الأسئلة الشائعة

ما هو io.github.darrenjrobinson/hibp؟

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

كيف أثبّت io.github.darrenjrobinson/hibp؟

يعمل على جهازك. في Claude Code: claude mcp add hibp -e 'HIBP_API_KEY=<your hibp_api_key>' -e 'HIBP_SUBSCRIPTION_PLAN=<HIBP_SUBSCRIPTION_PLAN>' -- npx -y @darrenjrobinson/hibp-mcp@1.1.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.darrenjrobinson/hibp إلى مفتاح API؟

نعم. يتطلب HIBP_API_KEY, HIBP_SUBSCRIPTION_PLAN، وتضبطها في إعداداته.

هل io.github.darrenjrobinson/hibp مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.darrenjrobinson/hibp؟

ينشره darrenjrobinson. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.