Test MCP Server Connectivity
curl --request POST \
--url https://mcp.enkryptai.com/mcp-playground/test-server \
--header 'X-Enkrypt-MCP-Registry-Server: <x-enkrypt-mcp-registry-server>' \
--header 'apikey: <api-key>'import requests
url = "https://mcp.enkryptai.com/mcp-playground/test-server"
headers = {
"X-Enkrypt-MCP-Registry-Server": "<x-enkrypt-mcp-registry-server>",
"apikey": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Enkrypt-MCP-Registry-Server': '<x-enkrypt-mcp-registry-server>',
apikey: '<api-key>'
}
};
fetch('https://mcp.enkryptai.com/mcp-playground/test-server', 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://mcp.enkryptai.com/mcp-playground/test-server",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Enkrypt-MCP-Registry-Server: <x-enkrypt-mcp-registry-server>",
"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://mcp.enkryptai.com/mcp-playground/test-server"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Enkrypt-MCP-Registry-Server", "<x-enkrypt-mcp-registry-server>")
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.post("https://mcp.enkryptai.com/mcp-playground/test-server")
.header("X-Enkrypt-MCP-Registry-Server", "<x-enkrypt-mcp-registry-server>")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.enkryptai.com/mcp-playground/test-server")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Enkrypt-MCP-Registry-Server"] = '<x-enkrypt-mcp-registry-server>'
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"error": "<string>",
"data": {
"saved_name": "<string>",
"server_version": "<string>",
"tool_count": 123,
"tested_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}🧪 MCP Playground API
Test MCP Server Connectivity
Tests connectivity to an MCP server by spawning it (inside a sandbox), running session.initialize(), and returning the server’s reported name / version / description and connection latency.
The target server is identified by the X-Enkrypt-MCP-Registry-Server header — the gateway fetches its config from GET /mcp-registry/get-server using your apikey and uses the cloud’s 200/401/403 response as the authentication gate. No request body is required.
POST
/
mcp-playground
/
test-server
Test MCP Server Connectivity
curl --request POST \
--url https://mcp.enkryptai.com/mcp-playground/test-server \
--header 'X-Enkrypt-MCP-Registry-Server: <x-enkrypt-mcp-registry-server>' \
--header 'apikey: <api-key>'import requests
url = "https://mcp.enkryptai.com/mcp-playground/test-server"
headers = {
"X-Enkrypt-MCP-Registry-Server": "<x-enkrypt-mcp-registry-server>",
"apikey": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Enkrypt-MCP-Registry-Server': '<x-enkrypt-mcp-registry-server>',
apikey: '<api-key>'
}
};
fetch('https://mcp.enkryptai.com/mcp-playground/test-server', 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://mcp.enkryptai.com/mcp-playground/test-server",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Enkrypt-MCP-Registry-Server: <x-enkrypt-mcp-registry-server>",
"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://mcp.enkryptai.com/mcp-playground/test-server"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Enkrypt-MCP-Registry-Server", "<x-enkrypt-mcp-registry-server>")
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.post("https://mcp.enkryptai.com/mcp-playground/test-server")
.header("X-Enkrypt-MCP-Registry-Server", "<x-enkrypt-mcp-registry-server>")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.enkryptai.com/mcp-playground/test-server")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Enkrypt-MCP-Registry-Server"] = '<x-enkrypt-mcp-registry-server>'
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"error": "<string>",
"data": {
"saved_name": "<string>",
"server_version": "<string>",
"tool_count": 123,
"tested_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Headers
Registry server saved_name
Maximum string length:
32Example:
"my-filesystem-server"
Registry server version (defaults to "v1")
Example:
"v1"

