Skip to main content
GET
/
mcp-registry
/
get-server
Get MCP Registry Server
curl --request GET \
  --url https://api.enkryptai.com/mcp-registry/get-server \
  --header 'X-Enkrypt-MCP-Registry-Server: <x-enkrypt-mcp-registry-server>' \
  --header 'apikey: <api-key>'
import requests

url = "https://api.enkryptai.com/mcp-registry/get-server"

headers = {
"X-Enkrypt-MCP-Registry-Server": "<x-enkrypt-mcp-registry-server>",
"apikey": "<api-key>"
}

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

print(response.text)
const options = {
method: 'GET',
headers: {
'X-Enkrypt-MCP-Registry-Server': '<x-enkrypt-mcp-registry-server>',
apikey: '<api-key>'
}
};

fetch('https://api.enkryptai.com/mcp-registry/get-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://api.enkryptai.com/mcp-registry/get-server",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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://api.enkryptai.com/mcp-registry/get-server"

req, _ := http.NewRequest("GET", 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.get("https://api.enkryptai.com/mcp-registry/get-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://api.enkryptai.com/mcp-registry/get-server")

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

request = Net::HTTP::Get.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
{
  "saved_name": "<string>",
  "server_version": "<string>",
  "job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "source_url": "<string>",
  "source_version": "<string>",
  "server_name": "<string>",
  "description": "<string>",
  "mcp_config": {
    "config": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/tmp"
      ],
      "env": {
        "OPENAI_API_KEY": "sk-...",
        "LOG_LEVEL": "info"
      }
    },
    "oauth_config": {
      "enabled": true,
      "is_remote": true,
      "OAUTH_VERSION": "2.1",
      "OAUTH_GRANT_TYPE": "authorization_code",
      "OAUTH_CLIENT_ID": "<string>",
      "OAUTH_CLIENT_SECRET": "<string>",
      "OAUTH_TOKEN_URL": "<string>",
      "OAUTH_AUTHORIZATION_URL": "<string>",
      "OAUTH_REDIRECT_URI": "<string>",
      "OAUTH_AUDIENCE": "<string>",
      "OAUTH_ORGANIZATION": "<string>",
      "OAUTH_SCOPE": "read write",
      "OAUTH_RESOURCE": "<string>",
      "OAUTH_USE_PKCE": true,
      "OAUTH_CODE_CHALLENGE_METHOD": "S256",
      "OAUTH_TOKEN_EXPIRY_BUFFER": 300,
      "OAUTH_USE_BASIC_AUTH": true,
      "OAUTH_ENFORCE_HTTPS": true,
      "OAUTH_TOKEN_IN_HEADER_ONLY": true,
      "OAUTH_VALIDATE_SCOPES": true,
      "OAUTH_USE_MTLS": true,
      "OAUTH_CLIENT_CERT_PATH": "<string>",
      "OAUTH_CLIENT_KEY_PATH": "<string>",
      "OAUTH_CA_BUNDLE_PATH": "<string>",
      "OAUTH_REVOCATION_URL": "<string>",
      "OAUTH_ADDITIONAL_PARAMS": {},
      "OAUTH_CUSTOM_HEADERS": {}
    },
    "tools": {},
    "denied_tools": [
      "delete_*",
      {
        "name": "write_file",
        "reason": "destructive"
      }
    ],
    "input_guardrails_config": {
      "enabled": true,
      "guardrail_name": "<string>",
      "additional_config": {},
      "block": []
    },
    "output_guardrails_config": {
      "enabled": true,
      "guardrail_name": "<string>",
      "additional_config": {},
      "block": []
    }
  },
  "registry_id": "<string>",
  "registry_name": "<string>",
  "project_name": "<string>",
  "is_active": true,
  "is_sample": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}

Authorizations

apikey
string
header
required

Headers

X-Enkrypt-MCP-Registry-Server
string
required

Registry server saved_name

Maximum string length: 32
Example:

"my-filesystem-server"

X-Enkrypt-MCP-Registry-Server-Version
string
default:v1

Registry server version (defaults to "v1")

Example:

"v1"

Response

Registry server details

saved_name
string

User-given name for the server

server_version
string

Server version

job_id
string<uuid> | null

MCP Hub server identifier (optional)

source_url
string | null

Source URL

source_version
string | null

Source version or commit hash

server_name
string | null

Server package name

description
string | null

Server description

mcp_config
object | null

MCP server configuration template. Shape mirrors a single entry of secure-mcp-gateway's mcp_configs.<id>.mcp_config[] array, so the registry server's mcp_config is directly consumable by the gateway runtime.

registry_id
string

Hashed ID of the parent registry this server belongs to

registry_name
string

Name of the parent registry (defaults to "default")

project_name
string

Project name

is_active
boolean

Whether the server is enabled (distinct from is_deleted)

is_sample
boolean

Whether this is a sample server

created_at
string<date-time>

Creation timestamp

updated_at
string<date-time>

Last update timestamp

created_by
string<uuid> | null

User ID who created this server

updated_by
string<uuid> | null

User ID who last updated this server