Skip to Content
IntegrationsMCP Server

Detectify MCP Server

The Detectify MCP Server is a remote Model Context Protocol  server that exposes your Detectify data to AI coding agents and other MCP clients. Once connected, an agent can query your attack surface, assets, vulnerabilities, scan profiles, and compliance data directly through a set of read-only tools — for example, “list the most severe assets in my team” or “show the evidence for this finding”.

Access is authenticated per team with OAuth 2.1 + PKCE. You log in through your browser and pick the team the agent acts on behalf of.

Environment

  • Server URL: https://mcp.detectify.com/mcp
  • Public client ID: 5aaebbc4-eeca-4ede-a03e-682a495082f6

The server uses the Streamable HTTP transport. The client ID is a public OAuth client shared across every supported harness — there is no client secret.

Client setup

Before you start, confirm a team admin has enabled MCP access on the MCP page in the Detectify app. Without it, the OAuth login will fail no matter which client you use.

Adding the server takes two steps: register it with your MCP client, then complete the OAuth login. The registration step differs per client, but the authentication step is the same OAuth 2.1 + PKCE flow in every case. Select your client below.

1. Register the server

claude mcp add --transport http detectify \ https://mcp.detectify.com/mcp \ --callback-port 54321 \ --client-id=5aaebbc4-eeca-4ede-a03e-682a495082f6

2. Authenticate

Inside a Claude Code session run /mcp, pick detectify from the list, and choose Authenticate. Claude Code opens a browser where you log in to Detectify, consent, and pick your team.

Verify with /mcp — the server should show as connected.

Troubleshooting

  • You only see a login page at https://detectify.com/oauth2/consent?consent_challenge=XYZ… — do a hard reload of the /oauth2 page (⇧⌘R).
  • Browser never opens / callback times out — confirm nothing else is bound to the loopback port the agent uses (54321 for Claude Code, Codex, Copilot CLI, OpenCode, and Pi). Because these share port 54321, don’t run two OAuth flows at the same time.
  • Codex login hangs after clicking Allow — you likely clicked the first of two authorization URLs Codex printed. Confirm scopes is set on the detectify entry in ~/.codex/config.toml so only one URL is printed, then re-run codex mcp login detectify.
  • Copilot CLI callback times out — check the browser’s authorize URL shows redirect_uri=http://127.0.0.1:54321/. A random port means auth.redirectPort wasn’t applied (config not saved, or the field dropped in a newer Copilot build). If a previous attempt cached a bad redirect, clear ~/.copilot/mcp-oauth-config/ and retry.
  • Cursor rejects the request with invalid_scope — the auth.scopes field is missing from the detectify entry in ~/.cursor/mcp.json.

Available tools

The server exposes read-only tools grouped by area. Tool names are shown exactly as the server advertises them to your MCP client.

Team and account

ToolWhat it’s for
GetCurrentTeamWhich Detectify team you’re acting as (name and team token).
ListUsersTeam members with their role and last-login time.

Asset inventory

ToolWhat it’s for
ListAssetsFlat list of assets (domains, IPs, ranges); scope to all, roots only, subassets only, or one root’s subassets.
ListMonitoredAssetsAssets with per-asset surface aggregates (IPs, countries, ASNs, open ports, technologies).
GetAssetDetailsFull drill-down on one asset (surface state, named IPs, ports, DNS, technologies).
ListAssetClassificationsWhat kind of thing each asset is (web app, API, redirect, 4xx/5xx) and which scanners cover it.
ListMostSevereAssetsAssets ranked by the severity of vulnerabilities found on them (for prioritization).

Surface data (network / DNS / IP)

ToolWhat it’s for
ListPortsPorts across the surface. Use group_by to choose a per-port-number rollup with asset/IP counts (port, default) or row-level records showing which assets/IPs expose each port (instance).
ListProtocolsService endpoints (scheme, service, transport, port, IP). Use group_by to choose row-level endpoints (instance, default) or a per-scheme rollup with counts (scheme).
ListDnsQueriesDNS records observed for monitored assets (queried name, response, record types).
ListIpsByCountryIP footprint grouped by country, with per-country IP/domain/ASN counts.
ListConnectorsCloud/DNS connectors feeding Detectify (AWS, GCP, Cloudflare, etc.).

Technology inventory

ToolWhat it’s for
ListTechnologiesTechnologies detected across the surface. Use group_by to choose assets per technology (name, default), per name and version (name_version), or one row per technology instance per asset (asset) — for example, to find every asset running a given technology.

Vulnerabilities and findings

ToolWhat it’s for
ListVulnerabilitiesThe team’s findings, with filtering (severity, status, asset, scan source, custom tag), sorting, and pagination.
GetVulnerabilityDetailsFull evidence for one finding (request/response, CWE, OWASP, CVSS) — built for false-positive triage.
GetVulnerabilitySeveritySummaryTeam-wide severity breakdown counts (critical/high/medium/low + total).
ListVulnerabilityCustomTagsCustom tags defined on the team, so findings can be filtered or labeled by tag name.
ListVulnerabilityDefinitionsCatalog of what Detectify can detect (is a given CVE or class covered?).

Scan profiles and scan results

ToolWhat it’s for
ListApplicationScanProfilesApplication Scanning profiles with each one’s latest scan status/result and next run.
GetApplicationScanHistoryScan-by-scan history for a single Application Scanning profile.
ListApiScanningProfilesAPI Scanning profiles (target, rate limit, last scan, severity summary).
ListApiScanTestsThe vulnerability tests the latest scan ran against one API Scanning profile — what it checks for, not what it found. API Scanning findings are available through ListVulnerabilities.

PCI ASV Scanning

ToolWhat it’s for
ListAsvScanProfilesApproved Scanning Vendor (PCI external-scan) profiles.
ListAsvReportsPer-scan PCI compliance reports for one ASV profile (high/medium/low counts, pass/fail).

Policies and compliance breaches

ToolWhat it’s for
ListPoliciesSecurity policies configured for the team (name, severity, trigger rules).
ListPolicyBreachesAssets currently violating a policy (open compliance breaches).
GetBreachesOverTimeTime-series of policy breaches by severity (for trend charts; max 30-day window).

WAF / scan interference

ToolWhat it’s for
ListWafFindingsRequests blocked or altered by a WAF in front of a monitored asset (“is a WAF blocking our scans?”).
GetWafFindingDetailsFull detail for one interference finding (risk, remediation, blocked request/response).
Last updated on