Skip to main content Announcing Tool Policies: AI agent permissions down to the field Read the announcement
Live 18 Actions

Have I Been Pwned MCP Server
for AI Agents

Connect your AI agent to StackOne's Have I Been Pwned MCP server and give it ready-to-use MCP tools out of the box. Auth, tool execution, and security all managed.

Have I Been Pwned logo
Have I Been Pwned MCP Server
Built by StackOne StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

Coverage

18 Agent Actions

Agents can read and write in Have I Been Pwned. Extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Have I Been Pwned MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Have I Been Pwned tool response scanned for prompt injection in milliseconds, with 88.7% accuracy, all running on CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Have I Been Pwned call.

Tools Discovery →

What is the Have I Been Pwned MCP Server?

A Have I Been Pwned MCP server lets AI agents read and write Have I Been Pwned data through the Model Context Protocol, Anthropic's open standard for connecting LLMs to external tools. StackOne's Have I Been Pwned MCP server ships with pre-built actions, fully extensible via the Connector Builder, plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Have I Been Pwned MCP Tools

Every StackOne action for Have I Been Pwned, ready for your agent. Read and write, scoped to exactly what you need.

Other (18)

  • Send Domain Verification Email

    Sends a verification email to an alias on the domain so domain control can be approved by link.

  • List Account Breaches

    Returns the breaches an email address, username, or phone number appears in.

  • Search Account Breach Range

    Returns breached email hash suffixes and their breach names for a 6-character SHA-1 prefix (k-anonymity).

  • List Breaches

    Returns the full catalogue of breaches loaded into Have I Been Pwned.

  • Get Breach

    Returns the full breach model for a single breach by its Name.

  • Get Latest Breach

    Returns the breach most recently added to Have I Been Pwned.

  • List Data Classes

    Returns the alphabetical list of data class names seen across breaches.

  • List Data Class Descriptions

    Returns the alphabetical list of data classes seen across breaches, with a description of each.

  • List Domain Breached Emails

    Returns every breached email alias on a verified domain and the breaches each alias appears in.

  • List Subscribed Domains

    Returns the verified domains linked to the API key, with breach counts.

  • Search Pwned Password Range

    Returns pwned password hash suffixes and their breach counts for a 5-character hash prefix (k-anonymity).

  • List Account Pastes

    Returns the pastes an email address has appeared in.

  • List Stealer Logs By Email

    Returns the website domains an email address's credentials were captured on by info-stealer malware.

  • List Stealer Logs By Website Domain

    Returns the email addresses whose credentials were captured on a website domain by info-stealer malware.

  • List Stealer Logs By Email Domain

    Returns the email aliases on a domain that appear in stealer logs, mapped to the website domains they were captured on.

  • Get Subscription Status

    Returns the plan, rate limit, expiry, and capabilities of the subscription behind the API key.

  • Generate Domain DNS Token

    Generates the TXT record value used to verify control of a domain via DNS.

  • Verify Domain DNS Token

    Checks the domain's hibp-verify TXT record and marks the domain verified when it matches.

Set Up Your Have I Been Pwned MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Have I Been Pwned in under 10 lines of code.

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

Have I Been Pwned MCP Server FAQ

Does StackOne have a Have I Been Pwned MCP server?
Yes. StackOne offers a hosted Have I Been Pwned MCP server, and every action is tested and QA'd by StackOne. Connect it to Claude, Cursor, and any other MCP client, or to any agent framework through the AI Action SDK. It ships with managed agent authentication, prompt injection defense, and tool discovery with server-side execution that preserve your agent's context window and keep reasoning performance.
Have I Been Pwned MCP server vs direct API integration: what's the difference?
A Have I Been Pwned MCP server and direct API integration serve different use cases. Direct API integration is for software-to-software work, where backend code calls Have I Been Pwned. A Have I Been Pwned MCP server is for AI agents that discover and call Have I Been Pwned at runtime, such as MCP clients like Claude and Cursor, plus framework agents built with OpenAI, LangChain, or Vercel AI. StackOne provides both.
How does Have I Been Pwned authentication work for AI agents?
Have I Been Pwned authentication for AI agents works through a StackOne Connect Session. Create one via the dashboard or the SDK to get an auth link and ready-to-paste config for Claude Desktop, Cursor, and other MCP clients. Your user authenticates their own Have I Been Pwned account; StackOne handles token exchange, storage, and refresh. Credentials never reach the LLM, and each user is isolated via origin_owner_id.
Are Have I Been Pwned MCP tools vulnerable to prompt injection?
Yes. Have I Been Pwned MCP tools can be vulnerable to indirect prompt injection. Any tool that reads user-written content, such as documents, messages, tickets, records, or free-text fields, is a potential vector. StackOne Defender scans every tool response before it enters the agent's context. It runs regex patterns in ~1ms, then a MiniLM classifier in ~4ms. Accuracy is 88.7%, and it runs entirely on CPU.
What is the context bloat of a Have I Been Pwned agent and how do I avoid it?
Context bloat happens when Have I Been Pwned tool schemas and API responses eat your Have I Been Pwned agent's memory, preventing it from reasoning effectively. A single Have I Been Pwned query can return a massive JSON response, and connecting multiple tools compounds the problem. Tools Discovery reduces it by loading only the tools relevant to each query.
Can I limit which actions my Have I Been Pwned agent can access?
Yes. You can limit which actions your Have I Been Pwned agent can access directly from the StackOne dashboard. Toggle actions on or off, or restrict them to specific accounts, with no code changes to your agent. Session tokens can be scoped to exact actions so if one leaks, exposure stays contained.
Can I create custom agent actions for my Have I Been Pwned MCP server?
Yes. You can create custom agent actions for your Have I Been Pwned MCP server using Connector Builder. It's an integration agent your coding assistant (Claude Code, Cursor, or Copilot) can invoke to research Have I Been Pwned's API, generate production-ready connector YAML, test against the live API, and validate before you ship.
When should I NOT use a Have I Been Pwned MCP server?
Skip a Have I Been Pwned MCP server if your integration is purely software-to-software, because direct Have I Been Pwned API integration is simpler when no AI agent is involved. For deterministic, compliance-critical operations (financial transactions, regulatory reporting), direct API gives you predictable behavior without agent-driven decision-making. MCP shines when AI agents need to dynamically discover and call Have I Been Pwned actions at runtime.
What AI frameworks and AI clients does the StackOne Have I Been Pwned MCP server support?
The StackOne Have I Been Pwned MCP server supports both. MCP clients (paste-and-go apps): Claude Desktop, Claude Code, Cursor, VS Code, Goose. Agent frameworks (code SDKs you build with): OpenAI Agents SDK, Anthropic, Vercel AI, Google ADK, CrewAI, Pydantic AI, LangChain, LangGraph, Azure AI Foundry.

Put your AI agents to work

All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.