Install
$ agentstack add mcp-roshu18-bearstrike-ai β scanned Β· β verified, works with Claude Code, Cursor, and more.
Security review
β PassedNo issues found. Passed automated security review. Β· v0.1.0 How review works β
- β Prompt-injection patterns
- β Secret / credential exfiltration
- β Dangerous shell & filesystem operations
- β Untrusted network calls
- β Known-malicious package signatures
What it can access
- β Network access Used
- β Filesystem access No
- β Shell / process execution Used
- β Environment & secrets No
- β Dynamic code execution No
From automated source analysis of v0.1.0. βUsedβ means the capability is present in the source β more access means more to trust, not that itβs unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work βAbout
BearStrike AI
High-Signal Pentesting Console (MCP-First, Model-Agnostic)
[](https://www.python.org/) [](LICENSE) [](https://modelcontextprotocol.io/) [](#installation) [](#tooling)
Build fast, low-noise security workflows with queue-first execution, skills-aware planning, and production-grade runtime state.
π BearStrike AI Highlights
BearStrike AI is engineered for high-signal pentesting and bug bounty workflows, cutting through noise with intelligent AI orchestration. Hereβs what makes it stand out:
- π― Target Control + WAF Context: Understand your targetβs defenses at a glance.
- π§ Smart Planner Panel: AI-driven planning prioritizes high-value attack paths.
- β±οΈ Async Jobs + Output Timeline: Monitor scans in real-time with detailed logs.
- π οΈ Tool List with Category/Status Filtering: Manage 150+ integrated security tools effortlessly.
- π§Ή Maintenance Panel for Retention/Cleanup: Keep your workspace clean and efficient.
β¨ Featured On:
[](https://mcpmarket.com/server/bearstrike-ai)
Table of Contents
- [Why BearStrike](#why-bearstrike)
- [Architecture](#architecture)
- [Core Capabilities](#core-capabilities)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [MCP Client Setup](#mcp-client-setup)
- [Tool Use Modes](#tool-use-modes)
- [Common Workflows](#common-workflows)
- [Dashboard](#dashboard)
- [Tooling](#tooling)
- [Skills Playbooks](#skills-playbooks)
- [Data and Retention](#data-and-retention)
- [Project Structure](#project-structure)
- [Troubleshooting](#troubleshooting)
- [Legal and Safety](#legal-and-safety)
Why BearStrike
BearStrike is built for practical bug hunting where signal matters more than scan noise:
- Queue-first execution to prevent MCP request stalls.
- Request dedupe + response caching to reduce repeated scans and token waste.
- Skills-first workflow for planning before offensive steps.
- Durable control plane (
SQLite + file artifacts) for stable state across sessions. - Model/client-agnostic MCP compatibility (Claude Desktop, VS Code, Cursor, more).
- User-driven hunt mode by default (no forced autonomous chatter loops).
Architecture
flowchart TD
U["User / MCP Client"] --> M["BearStrike MCP Server"]
U --> D["Flask Dashboard"]
U --> T["Rich Terminal UI"]
M --> Q["Queue + Guardrails"]
Q --> R["Tool Runner (subprocess)"]
R --> X["Security Tools"]
M --> S["Skills Loader"]
M --> P["Scan Planner + Endpoint Scoring"]
M --> C["Control Plane (SQLite)"]
D --> C
T --> C
C --> O["reports/output//..."]
Core Capabilities
1) MCP Control Layer
stdio+ssetransports.- Queue-first direct calls with short wait + async fallback.
- Concurrency limits, heavy-scan cooldown, and tool timeout profiles.
- Exact exposure checks via
mcp_tool_inventory.
2) Smart Execution Guardrails
- Fingerprint dedupe (
tool + target + params + mode + scope_tag). - Cache TTL profiles (
low_noise,balanced,aggressive). - Per-target heavy tool controls to reduce rate-limit spikes.
3) Intelligence + Planning
- Deterministic endpoint scoring (1-10).
- Priority-band driven planning for high-value paths.
- Curated research ingestion and query support.
4) Dashboard Operations
- Tool registry with category/status filters.
- Async jobs panel with queue state and output preview.
- Planner + prioritized endpoints panel.
- Cache/dedupe/queue metrics + maintenance controls.
Installation
Requirements
- Python
3.10+ - Linux/WSL recommended for full tool compatibility
- Toolchain like
nmap,httpx,subfinder,wafw00f,nuclei(as needed)
Setup
git clone bearstrike-ai
cd bearstrike-ai
python3 -m pip install -r requirements.txt
Configure
Edit config.json:
{
"ai_provider": "anthropic",
"anthropic_api_key": "your-key-here",
"claude_model": "claude-sonnet-4-20250514",
"openai_api_key": "",
"openai_model": "gpt-4o-mini",
"openai_base_url": "https://api.openai.com/v1",
"dashboard_port": 3000,
"mcp_port": 8888,
"auto_hunt": false,
"default_target": "",
"queue_max_concurrency": 2,
"heavy_scan_per_target": 1,
"heavy_scan_cooldown_seconds": 45,
"mcp_direct_wait_seconds": 6,
"research_refresh_interval_hours": 24,
"cache_ttl_profile": {
"low_noise": 7200,
"balanced": 2400,
"aggressive": 600
},
"endpoint_score_thresholds": {
"high": 8,
"medium": 5
}
}
Quick Start
Full stack (Terminal + Dashboard + MCP)
python3 main.py
Start with target
python3 main.py example.com
Standalone mode (no MCP/AI loop)
python3 main.py --standalone
Help
python3 main.py --help
MCP Client Setup
BearStrike supports both MCP transports:
stdiofor Claude Desktop, Cursor, and VS Code MCP clients.ssefor HTTP/SSE-capable MCP clients.
1) Stdio (recommended)
Run manually:
python3 /home/himanshu/xHunt/bearstrike-ai/core/mcp_server.py --transport stdio
2) Claude Desktop (Windows + WSL)
Open Claude Desktop MCP config and add:
{
"mcpServers": {
"bearstrike-ai": {
"command": "wsl",
"args": [
"-d",
"kali-linux",
"python3",
"/home/himanshu/xHunt/bearstrike-ai/core/mcp_server.py",
"--transport",
"stdio"
]
}
}
}
Then restart Claude Desktop and check Developer -> Local MCP Servers.
3) Cursor MCP config
Add BearStrike in Cursor's MCP JSON:
{
"mcpServers": {
"bearstrike-ai": {
"command": "wsl",
"args": [
"-d",
"kali-linux",
"python3",
"/home/himanshu/xHunt/bearstrike-ai/core/mcp_server.py",
"--transport",
"stdio"
]
}
}
}
4) VS Code MCP config
Use the same mcpServers entry in VS Code MCP settings.
5) Generic local Linux config
{
"mcpServers": {
"bearstrike-ai": {
"command": "python3",
"args": [
"/home/himanshu/xHunt/bearstrike-ai/core/mcp_server.py",
"--transport",
"stdio"
]
}
}
}
6) SSE (HTTP clients)
python3 /home/himanshu/xHunt/bearstrike-ai/core/mcp_server.py --transport sse --port 8888
SSE endpoint: http://127.0.0.1:8888/sse
Tool Use Modes
BearStrike supports two dimensions of control:
A) Scan mode (mode)
low_noise: safest profile, longest cache TTL, fewer aggressive calls.balanced: default profile, practical mix of speed and safety.aggressive: shortest TTL and faster probing; higher block/rate-limit risk.
Use low_noise for protected targets and bounty programs.
B) Hunt strategy (strategy)
adaptive: phased and smart (recommended). Runs 1-2 key tools, analyzes signal, then selects next tools.diversified: broader category coverage while still controlled.all: queues a wide set of compatible tools quickly (high volume).
Default recommendation:
- Start:
mode=low_noise,strategy=adaptive - Expand:
mode=balanced,strategy=diversified - Only when needed:
strategy=all
Inspect mode options (MCP)
Use hunt_options to see current defaults and available strategy/mode values.
Common Workflows
1) Minimal safe flow (recommended)
set_targetdetect_wafplan_scanfull_huntwithstrategy=adaptive- Track with
list_jobs, thenjob_result - Generate report with
get_target_report
2) Async-heavy flow (prevents MCP timeout)
- Queue:
start_tool - Monitor:
job_status - Read output:
job_result
This is preferred for long tools (subfinder, nuclei, large crawls).
3) Full campaign flow (broad)
{
"target": "example.com",
"mode": "balanced",
"include_subdomains": true,
"max_subdomains": 60,
"max_tools": 0,
"strategy": "all",
"fanout_tools_per_target": 8,
"verbose": false
}
Notes:
max_tools=0means all compatible installed tools.verbose=falsereduces MCP response chatter and token burn.- If rate-limited, switch to
strategy=adaptiveandmode=low_noise.
Dashboard
Open the URL printed at startup (for example http://127.0.0.1:3001).
Features:
- Target control + WAF context.
- Smart planner panel.
- Async jobs + output timeline.
- Tool list with category/status filtering.
- Maintenance panel for retention/cleanup.
Main APIs:
GET /api/toolsGET /api/dashboardGET /api/jobsPOST /api/jobs/startPOST /api/targetGET /api/endpoints/prioritizedGET /api/research/summaryPOST /api/research/refreshGET /api/cache/statsGET /api/dedupe/statsPOST /api/maintenance/purge
Tooling
BearStrike includes 150+ tool profiles across categories:
- Recon
- Web
- Exploit
- Cloud
- Binary
- Forensics
- Misc
Core MCP helper tools:
healthlist_toolsmcp_tool_inventorytools_statusset_targetdetect_wafexecute_toolstart_tooljob_statusjob_resultlist_jobsplan_scansmart_scanfull_huntscore_endpointresearch_refreshresearch_querycache_statsdedupe_statsqueue_statspurge_old_data
Broad Campaign Example (full_hunt)
Use one call to queue a wide, no-prompt campaign over the main target and discovered subdomains:
{
"target": "example.com",
"mode": "balanced",
"include_subdomains": true,
"max_subdomains": 60,
"max_tools": 0,
"strategy": "diversified",
"fanout_tools_per_target": 12
}
Notes:
max_tools=0means all compatible installed tools.strategy=alluses pure priority order.strategy=diversifiedspreads coverage across categories.
Skills Playbooks
BearStrike includes a skills-first playbook layer under skills/. These are designed to be read before heavy scanning so MCP clients choose high-signal steps first.
Current skill modules:
planning- pre-scan decision flow and prioritiesrecon- recon sequencing and endpoint discoverypentest-tools- tool-selection policy by target and riskbug-hunting- end-to-end bug hunting methodologyexploitation- PoC quality and false-positive eliminationreporting- structured reporting templates and evidence standardsresearch-notes- latest research patterns and bug classestraffic-proxy- interception workflow (mitmproxy/ZAP-style usage)xray-suite- xray/crawlergo/headless-browser specific guidance
Recommended MCP behavior:
- Load
planning+research-notesfirst. - Use
mode=low_noise+strategy=adaptiveby default. - Escalate to broader tool sets only after signal is found.
- Keep
verbose=falsein long hunts to reduce response chatter/token burn.
Data and Retention
Control plane DB: data/bearstrike.db Artifacts: reports/output//...
Retention controls:
- Purge runtime data older than N days (recommended: 7 days).
- Optional full clear-all reset from dashboard/API.
Examples:
purge_old_data(days=7, include_research=false, vacuum=true)purge_old_data(clear_all=true, vacuum=true)
Project Structure
bearstrike-ai/
βββ core/
β βββ mcp_server.py
β βββ control_plane.py
β βββ scan_planner.py
β βββ reporting.py
β βββ strategist.py
β βββ tool_registry.py
β βββ tool_runner.py
βββ dashboard/
β βββ server.py
β βββ templates/index.html
β βββ static/
βββ terminal/
β βββ display.py
β βββ live_feed.py
β βββ colors.py
βββ skills/
βββ tools/
βββ reports/
βββ data/
βββ docs/images/
βββ main.py
βββ config.json
βββ README.md
Visual Identity
Troubleshooting
Only a few MCP tools appear
- Start MCP server without compact mode.
- Restart your MCP client app (tool schemas can be cached).
- Run
mcp_tool_inventoryto verify exposed tools from server side.
MCP timeouts
- Use async flow for heavy scans:
start_tool->job_status->job_result. - Prefer
mode="low_noise"for WAF-protected targets. - Avoid parallel heavy scans on same target.
Dashboard port conflict
- BearStrike auto-selects next free port and prints final URL.
Legal and Safety
Use BearStrike only on systems you own or are explicitly authorized to test.
- No unauthorized testing.
- Follow program policy (HackerOne, Bugcrowd, TryHackMe, private scopes).
- Respect rate limits and safe-disclosure rules.
License
MIT License. See [LICENSE](LICENSE).
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source β we do not rehost the code.
- Author: Roshu18
- Source: Roshu18/bearstrike-ai
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.