Humanbound website
Documentation
Integrations

MCP Server

Drive Humanbound from Claude Code, Cursor, Windsurf, or Copilot via the built-in MCP server — ask about posture, findings, and runs in your IDE.

Humanbound exposes an MCP (Model Context Protocol) server that lets AI coding assistants (Claude Code, Cursor, Windsurf, GitHub Copilot) query your security testing data directly. Ask natural-language questions about posture, findings, coverage, and experiments without leaving your IDE.

Setup

The MCP server is built into the Humanbound CLI and ships as an extra. Install it first:

pip install 'humanbound[mcp]'
zsh users

Quote the extras ('humanbound[mcp]') — unquoted, zsh treats [mcp] as a glob and fails with no matches found.

hb mcp speaks MCP over stdio and is meant to be spawned by an MCP client (Claude Code, Cursor, Windsurf, etc.) — don't run it manually in a terminal.

Claude Code

Register the server with the claude CLI instead of hand-editing JSON:

claude mcp add humanbound -- hb mcp                 # this project, just you (default)
claude mcp add -s user humanbound -- hb mcp         # all your projects
claude mcp add -s project humanbound -- hb mcp      # commit to repo (.mcp.json)

Scopes write to:

ScopeStored inVisible to
local (default)project .claude/settings.local.jsononly you, only this project
user~/.claude.jsononly you, every project
project.mcp.json (committed)anyone who clones the repo

Verify with claude mcp list. Note: claude mcp only configures Claude Code — Claude Desktop reads a separate config.

Other clients

For IDEs/clients that take a JSON config directly:

{
  "mcpServers": {
    "humanbound": {
      "command": "hb",
      "args": ["mcp"]
    }
  }
}

If your client launches with a minimal PATH and can't find hb, replace "hb" with the absolute path from which hb.

Available Tools

ToolDescription
get_postureCurrent security posture score, grade, and trend data for the active project
get_findingsList findings with optional status/severity filters
retest_findingReplay a finding's recorded attacks to verify whether it is fixed
get_coverageTest coverage summary and untested categories
get_experimentsRecent experiments with status, results, and configuration
get_logsConversation logs and verdicts from a specific experiment
get_campaignsCurrent ASCAM campaign status and phase information
hb_create_assessmentCreate and run a custom assessment from a list of test categories; returns as soon as it starts
hb_get_assessmentFetch one assessment — poll this after hb_create_assessment until status is completed, failed, or broken

Example Queries

Once configured, you can ask your AI assistant questions like:

  • "What's my current security posture score?"
  • "Show me all critical findings that are still open"
  • "Retest finding abc123 to check whether my fix holds"
  • "What attack categories haven't been tested yet?"
  • "Did the last experiment find any prompt injection vulnerabilities?"
  • "What ASCAM phase is my project currently in?"
Requirements

Humanbound CLI must be installed and authenticated (hb login). The MCP server uses your existing CLI credentials and active project context.