DOCUMENTATION
QShield API & MCP reference
Everything QShield can do programmatically, the full REST API and the full MCP tool catalog, in one place. Both surfaces call the same underlying logic, so nothing here drifts from what the dashboard shows.
72 endpoints
Authentication, API keys, organizations & projects, connectors, scans, findings & evidence, reports, and public survey data.
Browse the reference →MCP SERVER39 tools
Give Claude Code, Claude Desktop, or any MCP-capable client direct access to this workspace: read findings conversationally, or let an agent act on your behalf.
Set up the MCP server →Authentication model
QShield has two independent ways to authenticate, for two different kinds of caller.
Session (browser / interactive)
POST /api/v1/auth/login exchanges an email and password (plus a TOTP code, if MFA is enabled) for a short-lived JWT. Send it as Authorization: Bearer <token> on every subsequent request. This is what the web dashboard uses; every session-scoped endpoint in the REST reference expects this.
API key (programmatic / MCP)
Generated from Settings → API keys, scoped read_only or read_write. Used exclusively by the MCP server today (passed as the QSHIELD_API_KEY environment variable), re-validated against the database on every call so revocation takes effect immediately. See the MCP auth model for the full detail.
Rate limits
Two independent limiting layers, matched to how each surface is actually called:
- REST authentication endpoints: IP-keyed.
loginandmfa/verifyat 5/minute,signupat 5/hour,verify-emailat 10/hour. Everything else has no HTTP-layer rate limit today. - MCP tool calls: per-API-key, 60 calls per rolling 60 seconds, enforced in-process by the MCP server. Configurable via
QSHIELD_MCP_RATE_LIMIT; see the MCP docs for how this scopes across multiple running server instances.
Response format
All REST responses are JSON. List endpoints return a bare array unless the endpoint's reference entry shows a specific response shape (pagination, summary wrappers, etc.). Errors follow FastAPI's default shape: { "detail": "..." }, with the HTTP status code carrying the category (400 validation, 401/403 auth, 404 not found, 409 conflict, 422 request-body validation, 429 rate limited, 5xx server error).