FFUF & Arjun API Route Verification MCP
Rate-limited endpoint and query-parameter validation server strictly bounded to authorized staging environments.
Prerequisites & Step-by-Step Installation
Copy & run inside isolated labBefore You Start (Prerequisites)
- + ffuf (>= 2.1) and arjun installed in a staging QA workstation
- + Curated safe wordlist directory with size/rate caps
- + Written staging/QA target authorization
Install ffuf and verify curated wordlist paths
go install github.com/ffuf/ffuf/v2@latest
ffuf -V
Enforce --max-threads 5 and auto-calibration (-ac) to avoid false positives or target overload.
Register scope-locked FFUF MCP wrapper
claude mcp add ffuf-mcp -- ffuf-mcp --scope-host https://staging.example.internal --max-threads 5
Rejects requests aimed at any hostname outside --scope-host.
ffuf -V
Client Integration & Configuration Files
Review scope limits before wiringclaude mcp add ffuf-api-discovery-mcp-server -- ffuf-mcp --scope-host https://staging.example.internal --max-threads 5 --wordlist-dir /usr/share/seclists-safe
{
"mcpServers": {
"ffuf-api-discovery-mcp-server": {
"command": "ffuf-mcp",
"args": [
"--scope-host",
"https://staging.example.internal",
"--max-threads",
"5",
"--wordlist-dir",
"/usr/share/seclists-safe"
],
"env": {
"TOOLWAR_SAFE_MODE": "strict",
"AUTH_TOKEN": "YOUR_SCOPED_TOKEN_HERE"
}
}
}
}
{
"mcpServers": {
"ffuf-api-discovery-mcp-server": {
"command": "ffuf-mcp",
"args": [
"--scope-host",
"https://staging.example.internal",
"--max-threads",
"5",
"--wordlist-dir",
"/usr/share/seclists-safe"
]
}
}
}
services:
ffuf-api-discovery-mcp-server:
image: toolwar-sandbox/mcp-runner:latest
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
How to Use & Defensive Workflow
Authorized assessment protocolTypical Scenario: Check whether legacy backup endpoints, debug swagger docs, or hidden query parameters remain reachable on staging builds.
- 01. Confirm the target staging URL matches --scope-host.
- 02. Run calibrated small-wordlist checks (-ac) with strict thread limits.
- 03. Inspect confirmed HTTP 200/403 hits and remove unintended debug routes in router config.
Check https://staging.example.internal/api/ using our small curated API-routes list with auto-calibration enabled and summarize exposed unexpected routes.
Bind the MCP server exclusively inside a read-only workspace or isolated container (`read_only: true`, `--cap-drop=ALL`). Enforce strict CIDR/directory allowlists and never expose local MCP stdio or SSE ports on untrusted network interfaces without mutual authentication.
Technical Architecture & Deployment Brief
Overview & Role in Security Engineering
FFUF & Arjun API Route Verification MCP (Security MCP Server) is engineered to support practitioners focused on shadow API route verification, undocumented parameter discovery, and clean calibration filtering in authorized QA tests. Within the ToolWar ecosystem, it serves as an explicit bridge between AI reasoning layers and verifiable cybersecurity telemetry.
Technical Architecture & Data Flow
The Model Context Protocol (MCP) separates the language model reasoning layer from privileged binary execution. Rather than letting an AI assistant invoke unconstrained shell commands, this server exposes typed, schema-validated read/inspection tools with explicit scope boundaries.
Unlike ad-hoc prompt wrappers that execute unconstrained strings directly in a shell, structured integration enforces typed parameter validation, bounded scope allowlists, and explicit separation between untrusted analyzed artifacts (source files, telemetry logs, network banners, or binary samples) and system-level control instructions.
Recommended Deployment Practice
- Isolate the Execution Boundary: Deploy integrations inside ephemeral containers or dedicated analysis VMs so untrusted repositories, binaries, or HTTP responses cannot affect primary workstations.
- Enforce Least-Privilege Scoping: Use read-only filesystem mounts, non-privileged service tokens, and target CIDR allowlists before enabling interactive assistant sessions.
- Verify Outputs Deterministically: Pair this connector with least-privilege runtime profiles and inspect every returned JSON schema before forwarding findings into automated tickets or dashboards.
Integration & Operational Caveats
- Treat all external content ingested by an LLM (including code comments, HTML titles, log lines, and MCP responses) as potential prompt-injection vectors.
- Review configuration JSON and
SKILL.mdmanifests carefully before binding credentials or running inside automated CI/CD pipelines.