Scan MCP Servers from Config JSON
curl --request POST \
--url https://api.enkryptai.com/mcp-hub/scan/hosted/config \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"mcp_config": {
"mcpServers": {
"example-server": {
"transport": "sse",
"url": "https://mcp.example.com/sse",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
}
}
'import requests
url = "https://api.enkryptai.com/mcp-hub/scan/hosted/config"
payload = { "mcp_config": { "mcpServers": { "example-server": {
"transport": "sse",
"url": "https://mcp.example.com/sse",
"headers": { "Authorization": "Bearer <token>" }
} } } }
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mcp_config: {
mcpServers: {
'example-server': {
transport: 'sse',
url: 'https://mcp.example.com/sse',
headers: {Authorization: 'Bearer <token>'}
}
}
}
})
};
fetch('https://api.enkryptai.com/mcp-hub/scan/hosted/config', 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/scan/hosted/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mcp_config' => [
'mcpServers' => [
'example-server' => [
'transport' => 'sse',
'url' => 'https://mcp.example.com/sse',
'headers' => [
'Authorization' => 'Bearer <token>'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/mcp-hub/scan/hosted/config"
payload := strings.NewReader("{\n \"mcp_config\": {\n \"mcpServers\": {\n \"example-server\": {\n \"transport\": \"sse\",\n \"url\": \"https://mcp.example.com/sse\",\n \"headers\": {\n \"Authorization\": \"Bearer <token>\"\n }\n }\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.enkryptai.com/mcp-hub/scan/hosted/config")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mcp_config\": {\n \"mcpServers\": {\n \"example-server\": {\n \"transport\": \"sse\",\n \"url\": \"https://mcp.example.com/sse\",\n \"headers\": {\n \"Authorization\": \"Bearer <token>\"\n }\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/mcp-hub/scan/hosted/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mcp_config\": {\n \"mcpServers\": {\n \"example-server\": {\n \"transport\": \"sse\",\n \"url\": \"https://mcp.example.com/sse\",\n \"headers\": {\n \"Authorization\": \"Bearer <token>\"\n }\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body[
{
"job_id": "<string>",
"endpoint_url": "<string>",
"user_email": "<string>",
"job_status": "<string>",
"message": "<string>"
}
]{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}๐ MCP Hub API
Scan MCP Servers from Config JSON
Parse an MCP config JSON (Claude/Cursor format with mcpServers key) and create one scan job per server entry. Each entry produces an independent hosted scan.
POST
/
mcp-hub
/
scan
/
hosted
/
config
Scan MCP Servers from Config JSON
curl --request POST \
--url https://api.enkryptai.com/mcp-hub/scan/hosted/config \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"mcp_config": {
"mcpServers": {
"example-server": {
"transport": "sse",
"url": "https://mcp.example.com/sse",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
}
}
'import requests
url = "https://api.enkryptai.com/mcp-hub/scan/hosted/config"
payload = { "mcp_config": { "mcpServers": { "example-server": {
"transport": "sse",
"url": "https://mcp.example.com/sse",
"headers": { "Authorization": "Bearer <token>" }
} } } }
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mcp_config: {
mcpServers: {
'example-server': {
transport: 'sse',
url: 'https://mcp.example.com/sse',
headers: {Authorization: 'Bearer <token>'}
}
}
}
})
};
fetch('https://api.enkryptai.com/mcp-hub/scan/hosted/config', 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/scan/hosted/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mcp_config' => [
'mcpServers' => [
'example-server' => [
'transport' => 'sse',
'url' => 'https://mcp.example.com/sse',
'headers' => [
'Authorization' => 'Bearer <token>'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/mcp-hub/scan/hosted/config"
payload := strings.NewReader("{\n \"mcp_config\": {\n \"mcpServers\": {\n \"example-server\": {\n \"transport\": \"sse\",\n \"url\": \"https://mcp.example.com/sse\",\n \"headers\": {\n \"Authorization\": \"Bearer <token>\"\n }\n }\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.enkryptai.com/mcp-hub/scan/hosted/config")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mcp_config\": {\n \"mcpServers\": {\n \"example-server\": {\n \"transport\": \"sse\",\n \"url\": \"https://mcp.example.com/sse\",\n \"headers\": {\n \"Authorization\": \"Bearer <token>\"\n }\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/mcp-hub/scan/hosted/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mcp_config\": {\n \"mcpServers\": {\n \"example-server\": {\n \"transport\": \"sse\",\n \"url\": \"https://mcp.example.com/sse\",\n \"headers\": {\n \"Authorization\": \"Bearer <token>\"\n }\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body[
{
"job_id": "<string>",
"endpoint_url": "<string>",
"user_email": "<string>",
"job_status": "<string>",
"message": "<string>"
}
]{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
Request body for scanning every server defined in a Claude/Cursor-style MCP config JSON.
MCP config JSON with the standard mcpServers key (Claude/Cursor format)
Example:
{
"mcpServers": {
"example-server": {
"transport": "sse",
"url": "https://mcp.example.com/sse",
"headers": { "Authorization": "Bearer <token>" }
}
}
}Mark all child scans as private
โI

