Skip to main content
GET
/
mcp-hub
/
dashboard-stats
Get MCP Hub Scan Statistics
curl --request GET \
  --url https://api.enkryptai.com/mcp-hub/dashboard-stats \
  --header 'apikey: <api-key>'
import requests

url = "https://api.enkryptai.com/mcp-hub/dashboard-stats"

headers = {"apikey": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {apikey: '<api-key>'}};

fetch('https://api.enkryptai.com/mcp-hub/dashboard-stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enkryptai.com/mcp-hub/dashboard-stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.enkryptai.com/mcp-hub/dashboard-stats"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("apikey", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.enkryptai.com/mcp-hub/dashboard-stats")
.header("apikey", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.enkryptai.com/mcp-hub/dashboard-stats")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "total_servers_scanned": 25268,
  "mcps_scanned_this_month": 4,
  "servers_with_vulnerabilities": 18472,
  "total_tools_scanned": 268213,
  "avg_tools_per_server": 10.6,
  "total_vulnerabilities": 143524,
  "avg_vulnerabilities_per_server": 5.7,
  "critical_risk_rate": 7,
  "servers_with_critical_issues": 1834,
  "vulnerabilities_by_severity": {
    "critical": {
      "count": 7855,
      "percentage": 5.5
    },
    "high": {
      "count": 7855,
      "percentage": 5.5
    },
    "medium": {
      "count": 7855,
      "percentage": 5.5
    },
    "low": {
      "count": 7855,
      "percentage": 5.5
    }
  },
  "top_vulnerability_types": [
    {
      "type": "prompt_injection",
      "count": 30070,
      "percentage": 21
    }
  ]
}
{
"detail": "<string>"
}
{
"code": 403,
"error": "Forbidden",
"message": "MCP Hub APIs are an enterprise feature not enabled for your organization. Contact us at support@enkryptai.com for access.",
"request_id": "<string>",
"time": 123
}

Authorizations

apikey
string
header
required

Response

Aggregate scan statistics

Aggregate MCP Hub scan statistics across all scanned servers.

total_servers_scanned
integer
Example:

25268

mcps_scanned_this_month
integer
Example:

4

servers_with_vulnerabilities
integer
Example:

18472

total_tools_scanned
integer
Example:

268213

avg_tools_per_server
number
Example:

10.6

total_vulnerabilities
integer
Example:

143524

avg_vulnerabilities_per_server
number
Example:

5.7

critical_risk_rate
number

Percentage of scanned servers with at least one critical-severity vulnerability.

Example:

7

servers_with_critical_issues
integer
Example:

1834

vulnerabilities_by_severity
object

Vulnerability counts grouped by severity.

top_vulnerability_types
MCPHubVulnerabilityTypeStat ยท object[]

Vulnerability counts grouped by detector/type, ordered by count descending.