htb-mcp-server

Provides an MCP (Model Context Protocol) server over stdio that exposes tools for interacting with the HackTheBox Labs API v4, including challenge/machine listing and management, flag submission, user profile/progress retrieval, and a server status health check.

Evaluated Apr 04, 2026 (16d ago)
Repo ↗ DevTools mcp hackthebox ctf tooling stdio go jwt api-integration
⚙ Agent Friendliness
69
/ 100
Can an agent use this?
🔒 Security
69
/ 100
Is it safe for agents?
⚡ Reliability
38
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
80
Documentation
70
Error Messages
--
Auth Simplicity
85
Rate Limits
65

🔒 Security

TLS Enforcement
95
Auth Strength
80
Scope Granularity
40
Dep. Hygiene
45
Secret Handling
75

Token is supplied via environment variable (good); README advises not committing tokens and claims sensitive info is not exposed in error messages. However, there is no explicit discussion of TLS enforcement in code/docs (implied by HTTPS base URL), no described fine-grained scopes, and no dependency/security audit information is provided.

⚡ Reliability

Uptime/SLA
10
Version Stability
45
Breaking Changes
40
Error Recovery
55
AF Security Reliability

Best When

You want a local/agent-run MCP tool that standardizes HackTheBox API actions for LLM/agent workflows.

Avoid When

You need externally hosted HTTP APIs/webhooks, fine-grained per-user audit trails, or you cannot safely provide and protect the HTB token in the environment where the MCP process runs.

Use Cases

  • Use an AI assistant to list HackTheBox challenges and machines with filtering/pagination
  • Start HackTheBox machines and retrieve connection details/IPs for follow-on automation
  • Submit user/root flags for verification workflows
  • Fetch user profile and progress stats to guide learning
  • Search across HackTheBox content (challenges/machines/users)
  • Run an automated health check for the MCP/HTB integration

Not For

  • Direct browser-based access to HackTheBox (no native UI)
  • Highly sensitive operations without careful token handling/logging controls
  • Use cases requiring a public REST/GraphQL endpoint for remote clients (this is primarily MCP/stdio)

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

Methods: Bearer token (JWT format) via HTB_TOKEN environment variable
OAuth: No Scopes: No

Uses an HTB API token as Bearer auth to https://labs.hackthebox.com/api/v4. No OAuth flow described; scope/granularity details are not provided in the README.

Pricing

Free tier: No
Requires CC: No

Pricing is not described for this package; costs would depend on HackTheBox account/API usage and your own hosting.

Agent Metadata

Pagination
page-based via tool-described pagination/filtering (details not specified)
Idempotent
False
Retry Guidance
Documented

Known Gotchas

  • Flag submission and challenge/machine start actions may be non-idempotent; repeated calls could cause unintended state changes
  • Rate limiting exists and may require the agent to throttle; README suggests reducing request frequency/increasing RATE_LIMIT_PER_MINUTE but does not specify header-based backoff logic
  • Pagination/filtering arguments are described only at a high level; exact schemas/arg names are not included in the README excerpt
  • Health check mentions a curl to /health on localhost:3000, but the MCP server description indicates stdio transport; this discrepancy may confuse operators integrating MCP clients

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for htb-mcp-server.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-04-04.

8642
Packages Evaluated
17761
Need Evaluation
586
Need Re-evaluation
Community Powered