A FastAPI-based MCP server that integrates with BurpSuite for web security testing, providing proxy interception, HTTP logging, vulnerability analysis, and active/passive scanning capabilities
Server has 6 tools with clearly defined Pydantic models and descriptions, but exhibits critical gaps in schema completeness, parameter documentation, and error handling. Tool names follow verb_noun conventions (intercept_request, get_proxy_history), which is good. However, parameter descriptions are inconsistent or missing, output schemas lack pagination guidance for list operations, and error responses do not provide recovery guidance. The tool definitions are visible in main.py but several parameters lack type clarity in descriptions (e.g., 'filter' object has no field-level documentation). No tool uses enums to constrain values despite multiple parameters accepting predefined options (e.g., scan_type: 'active' or 'passive'). Error handling returns generic HTTP exceptions without actionable recovery steps. Security considerations (secrets in parameters, input validation, audit trails) are not evident.
Analyzes HTTP logs and generates comprehensive statistics including request counts, unique URLs, status code distribution, content type distribution, average response time, vulnerability summary, top endpoints, and suspicious patterns
Retrieves HTTP logs with optional filtering by method, status code, URL pattern, content type, time range, and vulnerabilities
Retrieves the complete history of intercepted HTTP requests and responses
Retrieves the status and results of an active or completed security scan
Intercepts HTTP requests and sends them through the BurpSuite proxy, capturing request/response details, headers, and analyzing for vulnerabilities
Initiates an active or passive security scan of a target URL with optional scan configurations
Parameter 'filter' object lacks field-level documentation. Callers cannot know which filter fields are valid, their types, or constraints. E.g., in get_logs and analyze_logs_endpoint, 'filter' is described as 'Optional LogFilter' but LLMs do not see the LogFilter schema fields in the tool description.
scan_type parameter in start_scan accepts 'active' or 'passive' but is defined as a free-form string without enum constraint. LLMs may hallucinate invalid scan types.
get_logs accepts a 'limit' parameter with max=1000, but tool description does not explain pagination strategy or whether results are capped. Without clear pagination limits and next_cursor guidance, large result sets will blow context windows.
get_proxy_history() has an empty input schema and no description of what it returns (structure, size limits). Callers cannot reason about downstream tool usage.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 55 | <=2025-11-25 | v2 |
Error handling is minimal. Code raises generic HTTPException without recovery guidance. E.g., if start_scan fails, the LLM receives no hint about what went wrong or how to retry. No error categorization (retryable vs. user-fixable vs. fatal).
intercept_request accepts 'body' parameter typed as 'any' without validation or description of expected format. LLMs cannot determine whether to pass JSON, form data, or raw bytes.
Tools like get_logs and analyze_logs_endpoint return complex nested structures (LogEntry with nested vulnerabilities array, LogAnalysis with suspicious_patterns) but do not document response schemas for the LLM. No guidance on which fields are always present vs. optional.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk levels. intercept_request and start_scan are WRITE operations that should be marked destructive; get_* tools should be marked read-only.
Security: No evidence of input validation or sanitization. LLMs could pass malicious URLs, header injection payloads, or command injection strings to intercept_request. The 'url' parameter is not validated before use in requests.request().
No audit logging. Tool calls (which parameters, by whom, at what time, with what result) are not logged for compliance or debugging. Only server-level logging via Python logging is present.