H1 Brain

Security

MCP server that connects AI assistants to HackerOne for bug bounty hunting.

Your AI app calls the H1 Brain MCP server, which does the security work and sends the result back to the chat.

About H1 Brain

H1 Brain is a community MCP server from PatrikFehrenbach, filed in our directory under security. MCP server that connects AI assistants to HackerOne for bug bounty hunting.

At a glance

Publisher
PatrikFehrenbach (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
363

How to set up H1 Brain

  1. Follow the install steps in the H1 Brain README; it is written in Python, so have that toolchain ready.
  2. Check the H1 Brain README for keys or settings; the registry lists none that H1 Brain requires.
  3. Add H1 Brain to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the H1 Brain tools to confirm the connection.
  5. Run one read-only task with H1 Brain first, and keep your app asking before each tool call until the results look right.

H1 Brain compared with similar servers

  • Doris by apache has fewer GitHub stars than H1 Brain (362 against 363); both are community servers, and both run locally.
  • Plane by makeplane has more GitHub stars than H1 Brain (380 against 363); both are community servers, and both run locally.
  • SysKnife by lacs-project has fewer GitHub stars than H1 Brain (358 against 363); both are community servers, and both run locally.

Before you connect H1 Brain

  • Give H1 Brain its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each H1 Brain tool call until you trust what it does with them.
  • Treat text that H1 Brain fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for H1 Brain on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for H1 Brain

How marketing and sales teams put H1 Brain to work, by company size. Pick the size closest to yours and start H1 Brain on one use case.

Small business

  • A small business can use H1 Brain to check its domains, logins and site for common gaps before they cost a customer's trust.
  • Owners can ask H1 Brain whether a tool or vendor has known issues before connecting it to customer data.
  • H1 Brain runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can use H1 Brain to review what each connected app can access and remove keys nobody uses.
  • Security and web teams can connect H1 Brain to scan campaign sites and forms before launch, not after an incident.
  • Start H1 Brain on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run H1 Brain in the security team's tooling, so marketing's agents and apps are reviewed like any other system.
  • Large orgs can use H1 Brain to keep evidence for audits, showing which agents reached which data and when.
  • H1 Brain is a community server, so have security review the code and pin a version before H1 Brain touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

H1 Brain README

From PatrikFehrenbach/h1-brain on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

h1-brain

An MCP server that connects your AI assistant to HackerOne. It pulls your bug bounty history, program scopes, and report details into a local SQLite database, then exposes tools that let any MCP-compatible client (Claude Desktop, Claude Code, etc.) search, analyze, and build on your past work.

It also ships with a pre-built database of 3,600+ publicly disclosed bounty-awarded reports from the HackerOne community, full vulnerability write-ups, weakness types, and bounty amounts. The AI uses both your personal data and public knowledge to generate attack briefings.

The primary tool, hack(handle), generates a full hacking session briefing in a single call: fresh scope from the API, your past findings, public disclosures for that program, weakness patterns, untouched assets, and suggested attack vectors, all formatted as actionable instructions that put the AI in offensive mode.

How It Works

For a full walkthrough, check out the three-part Bug Bounty Goldfish series:

  1. Teaching Claude Everything You've Hacked, Why I built h1-brain and how to set it up
  2. What h1-brain Actually Does, Every tool explained, from search to the hack() briefing
  3. Running h1-brain Against a Real Target, A start-to-finish walkthrough on an actual program
graph LR
    A["Claude Desktop / Code"] -->|MCP Protocol| B["h1-brain server"]
    B -->|API calls| C["HackerOne API"]
    B -->|reads / writes| D["Your Reports DB"]
    B -->|reads| E["Public Reports DB"]
    C -->|reports, programs, scopes| B
    D -->|your history + analysis| A
    E -->|community knowledge| A
    style A fill:#ff5c5c,stroke:#ff5c5c,color:#fff
    style B fill:#1a1d27,stroke:#ff5c5c,color:#fff
    style C fill:#1a1d27,stroke:#555,color:#fff
    style D fill:#1a1d27,stroke:#555,color:#fff
    style E fill:#1a1d27,stroke:#555,color:#fff
flowchart TD
    A["hack(handle)"] --> B["Fetch fresh scope from HackerOne API"]
    B --> C["Pull your reports on this program from SQLite"]
    C --> D["Analyze weakness patterns across ALL programs"]
    D --> E["Identify untouched bounty-eligible assets"]
    E --> F["Cross-reference public disclosed reports for this program"]
    F --> G["Generate attack briefing with agent instructions"]
    style A fill:#ff5c5c,stroke:#ff5c5c,color:#fff
    style G fill:#ff5c5c,stroke:#ff5c5c,color:#fff
    style B fill:#1a1d27,stroke:#555,color:#fff
    style C fill:#1a1d27,stroke:#555,color:#fff
    style D fill:#1a1d27,stroke:#555,color:#fff
    style E fill:#1a1d27,stroke:#555,color:#fff
    style F fill:#1a1d27,stroke:#555,color:#fff

Requirements

Setup

git clone https://github.com/PatrikFehrenbach/h1-brain.git
cd h1-brain
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

The public disclosed reports database (disclosed_reports.db) is included in the repo, no extra setup needed.

Connecting to Claude

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "h1-brain": {
      "command": "/path/to/h1-brain/venv/bin/python",
      "args": ["/path/to/h1-brain/server.py"],
      "env": {
        "H1_USERNAME": "your_hackerone_username",
        "H1_API_TOKEN": "your_api_token"
      }
    }
  }
}

Restart Claude Desktop after saving.

Claude Code
claude mcp add h1-brain \
  -e H1_USERNAME=your_hackerone_username \
  -e H1_API_TOKEN=your_api_token \
  -- /path/to/h1-brain/venv/bin/python /path/to/h1-brain/server.py

First Run

After connecting, populate your personal database:

  1. fetch_rewarded_reports, Pulls all your bounty-awarded reports with full vulnerability write-ups. This is the most important step.
  2. fetch_programs, Pulls all programs you have access to, both public and private (the result reports the split).

These only need to be run once. Re-run periodically to sync new reports.

To pull your full history on a specific program, including non-rewarded reports (informative, triaged, duplicate, new, etc.) and every comment/activity thread, use fetch_program_reports(handle). Pass an out_dir to also export each report as a markdown file.

The public disclosed reports are ready to query immediately, no setup needed.

Tools

hack(handle)

The primary entry point. One call does everything:

  1. Fetches fresh program scopes from the HackerOne API
  2. Pulls your past rewarded reports for that program
  3. Cross-references your full report history for weakness patterns
  4. Identifies untouched bounty-eligible assets
  5. Pulls public disclosed reports for this program, what other researchers found and got paid for
  6. Suggests attack vectors based on weaknesses that paid elsewhere but haven't been found here
  7. Returns an attack briefing that puts the AI in offensive mode

Briefing structure:

  • Scope, bounty-eligible and non-bounty assets with severity caps
  • Your Past Findings, rewarded reports with severity, weakness type, and bounty amounts
  • Weakness Types That Worked, what's been rewarded here before
  • Untouched Scope, bounty-eligible assets with zero findings from you
  • Suggested Attack Vectors, weaknesses rewarded on other programs but not yet found here
  • Public Disclosed Reports, what other researchers found on this program, weakness patterns from public disclosures
  • Instructions, puts the AI in attack mode with specific directives
Your Reports

These query your personal data (h1_data.db). No API calls, instant results.

Tool Description
search_reports(query, program, weakness, severity, limit) Search your rewarded reports by title, program, weakness type, or severity
get_report(report_id) Full report details with vulnerability write-up and attachments
get_report_thread(report_id) Full comment/activity timeline (oldest→newest) for a report, as stored by fetch_program_reports
get_report_summary() Reports grouped by program with totals
search_programs(query, bounty_only, visibility, limit) Search your stored programs; each result is tagged [public] or [private]. Set visibility to "private" or "public" to filter.
search_scopes(program, asset, bounty_only, limit) Search in-scope assets across programs
fetch_attachment(report_id, attachment_id?) Fresh download URLs for report attachments (expire in ~1 hour)
Public Disclosed Reports

These query the pre-built database of 3,600+ bounty-awarded public disclosures (disclosed_reports.db).

Tool Description
search_disclosed_reports(query, program, weakness, limit) Full-text search across public reports, titles and vulnerability write-ups
get_disclosed_report(report_id) Full details of a public disclosed report
Data Sync
Tool Description
fetch_rewarded_reports Sync your bounty-awarded reports from the API
fetch_program_reports(handle, out_dir?, include_internal?) Sync all your reports for a program, every state, not just rewarded, each with its full comment/activity timeline. Optionally export one markdown file per report (plus raw/<id>.json and index.md) to out_dir.
fetch_programs Sync your accessible programs, public and private (private = invite-only / soft_launched). Re-run once after upgrading to populate the public/private flag.
fetch_program_scopes(handle) Sync scopes for a program (called automatically by hack())

Architecture

server.py              MCP server
hack_instructions.md   Attack briefing instructions (loaded by hack())
h1_data.db             Your personal reports, programs, scopes, activity timelines (auto-created, gitignored)
disclosed_reports.db   3,600+ public disclosed bounty reports (ships with repo)
requirements.txt       Python dependencies (mcp, httpx)
Two Databases
Database Contains Source
h1_data.db Your personal reports, programs, scopes, attachments, activity timelines HackerOne API (your account)
disclosed_reports.db Public disclosed reports that paid a bounty Pre-built, ships with repo

The AI knows the difference. Your personal tools (search_reports, get_report) query your data. Public tools (search_disclosed_reports, get_disclosed_report) query community data. hack() uses both.

Public Reports Database

The disclosed_reports.db contains publicly disclosed HackerOne reports that:

  • Paid a bounty
  • Have actual vulnerability write-ups (redacted/empty reports are excluded)

Each report includes: title, vulnerability details, weakness type, program, asset, CVEs, and bounty amount (when available).

Author

Patrik Grobshäuser, LinkedIn · X

License

MIT

Questions about H1 Brain

What is the H1 Brain MCP server?

MCP server that connects AI assistants to HackerOne for bug bounty hunting. H1 Brain is maintained by PatrikFehrenbach on GitHub at PatrikFehrenbach/h1-brain, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the H1 Brain MCP server?

H1 Brain doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (PatrikFehrenbach/h1-brain). Like most servers, H1 Brain ends with a command or URL you paste into your AI app's MCP config.

Does H1 Brain need an API key?

The registry lists no required keys for H1 Brain. Check the H1 Brain README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is H1 Brain an official MCP server?

No. H1 Brain is a community server maintained by PatrikFehrenbach. Community servers can be excellent; read the code and the open issues before you give H1 Brain access to company data.

What license is H1 Brain under?

H1 Brain is released under the MIT license, according to its GitHub repository. The license covers the code of H1 Brain; the service it connects to has its own terms.