Bulk-create MCP Registry Servers (atomic)
curl --request POST \
--url https://api.enkryptai.com/mcp-registry/bulk-add-servers \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"servers": [
{
"saved_name": "my-filesystem-server",
"server_version": "v1",
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"mcp_config": {
"config": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/tmp"
]
}
}
},
{
"saved_name": "my-github-server",
"server_version": "v1",
"mcp_config": {
"config": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
]
}
}
}
]
}
'import requests
url = "https://api.enkryptai.com/mcp-registry/bulk-add-servers"
payload = { "servers": [
{
"saved_name": "my-filesystem-server",
"server_version": "v1",
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"mcp_config": { "config": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
} }
},
{
"saved_name": "my-github-server",
"server_version": "v1",
"mcp_config": { "config": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"]
} }
}
] }
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({
servers: [
{
saved_name: 'my-filesystem-server',
server_version: 'v1',
job_id: '550e8400-e29b-41d4-a716-446655440000',
mcp_config: {
config: {
command: 'npx',
args: ['-y', '@modelcontextprotocol/server-filesystem', '/tmp']
}
}
},
{
saved_name: 'my-github-server',
server_version: 'v1',
mcp_config: {config: {command: 'npx', args: ['-y', '@modelcontextprotocol/server-github']}}
}
]
})
};
fetch('https://api.enkryptai.com/mcp-registry/bulk-add-servers', 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/bulk-add-servers",
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([
'servers' => [
[
'saved_name' => 'my-filesystem-server',
'server_version' => 'v1',
'job_id' => '550e8400-e29b-41d4-a716-446655440000',
'mcp_config' => [
'config' => [
'command' => 'npx',
'args' => [
'-y',
'@modelcontextprotocol/server-filesystem',
'/tmp'
]
]
]
],
[
'saved_name' => 'my-github-server',
'server_version' => 'v1',
'mcp_config' => [
'config' => [
'command' => 'npx',
'args' => [
'-y',
'@modelcontextprotocol/server-github'
]
]
]
]
]
]),
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-registry/bulk-add-servers"
payload := strings.NewReader("{\n \"servers\": [\n {\n \"saved_name\": \"my-filesystem-server\",\n \"server_version\": \"v1\",\n \"job_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"mcp_config\": {\n \"config\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-filesystem\",\n \"/tmp\"\n ]\n }\n }\n },\n {\n \"saved_name\": \"my-github-server\",\n \"server_version\": \"v1\",\n \"mcp_config\": {\n \"config\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-github\"\n ]\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-registry/bulk-add-servers")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"servers\": [\n {\n \"saved_name\": \"my-filesystem-server\",\n \"server_version\": \"v1\",\n \"job_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"mcp_config\": {\n \"config\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-filesystem\",\n \"/tmp\"\n ]\n }\n }\n },\n {\n \"saved_name\": \"my-github-server\",\n \"server_version\": \"v1\",\n \"mcp_config\": {\n \"config\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-github\"\n ]\n }\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/mcp-registry/bulk-add-servers")
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 \"servers\": [\n {\n \"saved_name\": \"my-filesystem-server\",\n \"server_version\": \"v1\",\n \"job_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"mcp_config\": {\n \"config\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-filesystem\",\n \"/tmp\"\n ]\n }\n }\n },\n {\n \"saved_name\": \"my-github-server\",\n \"server_version\": \"v1\",\n \"mcp_config\": {\n \"config\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-github\"\n ]\n }\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"registry_name": "<string>",
"count": 123,
"data": [
{
"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>"
}{
"error": "<string>"
}๐๏ธ MCP Registry Servers API
Bulk-create MCP Registry Servers (atomic)
Insert up to 100 registry servers in a single atomic batch. All-or-nothing โ if any row fails validation or violates a constraint (e.g., duplicate saved_name), no rows are inserted and the request returns an error. All servers in the batch are scoped to the default registry; the registry is auto-created if it does not exist.
POST
/
mcp-registry
/
bulk-add-servers
Bulk-create MCP Registry Servers (atomic)
curl --request POST \
--url https://api.enkryptai.com/mcp-registry/bulk-add-servers \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"servers": [
{
"saved_name": "my-filesystem-server",
"server_version": "v1",
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"mcp_config": {
"config": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/tmp"
]
}
}
},
{
"saved_name": "my-github-server",
"server_version": "v1",
"mcp_config": {
"config": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
]
}
}
}
]
}
'import requests
url = "https://api.enkryptai.com/mcp-registry/bulk-add-servers"
payload = { "servers": [
{
"saved_name": "my-filesystem-server",
"server_version": "v1",
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"mcp_config": { "config": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
} }
},
{
"saved_name": "my-github-server",
"server_version": "v1",
"mcp_config": { "config": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"]
} }
}
] }
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({
servers: [
{
saved_name: 'my-filesystem-server',
server_version: 'v1',
job_id: '550e8400-e29b-41d4-a716-446655440000',
mcp_config: {
config: {
command: 'npx',
args: ['-y', '@modelcontextprotocol/server-filesystem', '/tmp']
}
}
},
{
saved_name: 'my-github-server',
server_version: 'v1',
mcp_config: {config: {command: 'npx', args: ['-y', '@modelcontextprotocol/server-github']}}
}
]
})
};
fetch('https://api.enkryptai.com/mcp-registry/bulk-add-servers', 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/bulk-add-servers",
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([
'servers' => [
[
'saved_name' => 'my-filesystem-server',
'server_version' => 'v1',
'job_id' => '550e8400-e29b-41d4-a716-446655440000',
'mcp_config' => [
'config' => [
'command' => 'npx',
'args' => [
'-y',
'@modelcontextprotocol/server-filesystem',
'/tmp'
]
]
]
],
[
'saved_name' => 'my-github-server',
'server_version' => 'v1',
'mcp_config' => [
'config' => [
'command' => 'npx',
'args' => [
'-y',
'@modelcontextprotocol/server-github'
]
]
]
]
]
]),
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-registry/bulk-add-servers"
payload := strings.NewReader("{\n \"servers\": [\n {\n \"saved_name\": \"my-filesystem-server\",\n \"server_version\": \"v1\",\n \"job_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"mcp_config\": {\n \"config\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-filesystem\",\n \"/tmp\"\n ]\n }\n }\n },\n {\n \"saved_name\": \"my-github-server\",\n \"server_version\": \"v1\",\n \"mcp_config\": {\n \"config\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-github\"\n ]\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-registry/bulk-add-servers")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"servers\": [\n {\n \"saved_name\": \"my-filesystem-server\",\n \"server_version\": \"v1\",\n \"job_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"mcp_config\": {\n \"config\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-filesystem\",\n \"/tmp\"\n ]\n }\n }\n },\n {\n \"saved_name\": \"my-github-server\",\n \"server_version\": \"v1\",\n \"mcp_config\": {\n \"config\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-github\"\n ]\n }\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/mcp-registry/bulk-add-servers")
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 \"servers\": [\n {\n \"saved_name\": \"my-filesystem-server\",\n \"server_version\": \"v1\",\n \"job_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"mcp_config\": {\n \"config\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-filesystem\",\n \"/tmp\"\n ]\n }\n }\n },\n {\n \"saved_name\": \"my-github-server\",\n \"server_version\": \"v1\",\n \"mcp_config\": {\n \"config\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-github\"\n ]\n }\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"registry_name": "<string>",
"count": 123,
"data": [
{
"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>"
}{
"error": "<string>"
}Authorizations
Body
application/json
Array of 1-100 server payloads. The whole batch is atomic โ if any item fails validation or violates a unique constraint, no rows are inserted.
Required array length:
1 - 100 elementsShow child attributes
Show child attributes
โI

