curl --request GET \
--url https://{host}/api/registry/v1/server-directory \
--header 'Authorization: Bearer <token>'import requests
url = "https://{host}/api/registry/v1/server-directory"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/api/registry/v1/server-directory', 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://{host}/api/registry/v1/server-directory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{host}/api/registry/v1/server-directory"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/api/registry/v1/server-directory")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/registry/v1/server-directory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"runtime": {},
"configuration_schema": {},
"tool_manifest": [
{}
],
"name": "<string>",
"description": "<string>",
"icon": "<string>",
"slug": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"protocol": "mcp",
"source": "barndoor",
"provider": "custom",
"provider_options": "<unknown>",
"scopes": [
"<string>"
],
"oauth_metadata": {},
"protected_resource_metadata": {},
"allow_oauth_override": false,
"meta": {},
"auth_params": "<unknown>",
"credential_schema": "<unknown>",
"public": false,
"requires_auth": false,
"requires_auth_observed_at": "2023-11-07T05:31:56Z",
"categories": [],
"active_server_ids": [
"<string>"
],
"credential_modes": {
"automatic": "cimd",
"managed": true,
"default": "managed"
},
"registered_mcp_servers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"enabled": true,
"configuration": {},
"name": "<string>",
"slug": "<string>",
"oauth_base_url_override": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"uses_managed_credentials": true,
"ema_enabled": false,
"scopes": [
"<string>"
],
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp_server_directory_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"meta": "<unknown>",
"tools_fetch_status": "<string>",
"tools_fetch_error": "<unknown>",
"tools_fetched_at": "2023-11-07T05:31:56Z",
"tools_fetch_requested_at": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z",
"mcp_server_directory": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"runtime": {},
"configuration_schema": {},
"tool_manifest": [
{}
],
"name": "<string>",
"description": "<string>",
"icon": "<string>",
"slug": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"protocol": "mcp",
"source": "barndoor",
"provider": "custom",
"provider_options": "<unknown>",
"scopes": [
"<string>"
],
"oauth_metadata": {},
"protected_resource_metadata": {},
"allow_oauth_override": false,
"meta": {},
"auth_params": "<unknown>",
"credential_schema": "<unknown>",
"public": false,
"requires_auth": false,
"requires_auth_observed_at": "2023-11-07T05:31:56Z"
},
"mcp_server_service_connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp_server_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error_message": "<string>",
"connected_at": "2023-11-07T05:31:56Z",
"last_accessed_at": "2023-11-07T05:31:56Z",
"connected_by_user_id": "<string>",
"account_email": "<string>",
"error_reason": "authorization_not_completed"
},
"connection_status": "pending",
"connection_error_reason": "authorization_not_completed",
"url": "<string>",
"proxy_url": "<string>",
"can_manage_policies": true,
"attention_tier": "pending_publish",
"publish_blockers": [
"not_operationally_available"
],
"cascaded_fields": [
"<string>"
],
"deleted_at": "2023-11-07T05:31:56Z",
"credential_mode": "managed",
"uses_cimd": false,
"tools_count": 123,
"resources_count": 123
}
]
}
],
"pagination": {
"page": 123,
"limit": 123,
"total": 123,
"pages": 123,
"previous_page": 123,
"next_page": 123
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}List Server Directory
List server directories with pagination.
curl --request GET \
--url https://{host}/api/registry/v1/server-directory \
--header 'Authorization: Bearer <token>'import requests
url = "https://{host}/api/registry/v1/server-directory"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/api/registry/v1/server-directory', 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://{host}/api/registry/v1/server-directory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{host}/api/registry/v1/server-directory"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/api/registry/v1/server-directory")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/registry/v1/server-directory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"runtime": {},
"configuration_schema": {},
"tool_manifest": [
{}
],
"name": "<string>",
"description": "<string>",
"icon": "<string>",
"slug": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"protocol": "mcp",
"source": "barndoor",
"provider": "custom",
"provider_options": "<unknown>",
"scopes": [
"<string>"
],
"oauth_metadata": {},
"protected_resource_metadata": {},
"allow_oauth_override": false,
"meta": {},
"auth_params": "<unknown>",
"credential_schema": "<unknown>",
"public": false,
"requires_auth": false,
"requires_auth_observed_at": "2023-11-07T05:31:56Z",
"categories": [],
"active_server_ids": [
"<string>"
],
"credential_modes": {
"automatic": "cimd",
"managed": true,
"default": "managed"
},
"registered_mcp_servers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"enabled": true,
"configuration": {},
"name": "<string>",
"slug": "<string>",
"oauth_base_url_override": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"uses_managed_credentials": true,
"ema_enabled": false,
"scopes": [
"<string>"
],
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp_server_directory_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"meta": "<unknown>",
"tools_fetch_status": "<string>",
"tools_fetch_error": "<unknown>",
"tools_fetched_at": "2023-11-07T05:31:56Z",
"tools_fetch_requested_at": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z",
"mcp_server_directory": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"runtime": {},
"configuration_schema": {},
"tool_manifest": [
{}
],
"name": "<string>",
"description": "<string>",
"icon": "<string>",
"slug": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"protocol": "mcp",
"source": "barndoor",
"provider": "custom",
"provider_options": "<unknown>",
"scopes": [
"<string>"
],
"oauth_metadata": {},
"protected_resource_metadata": {},
"allow_oauth_override": false,
"meta": {},
"auth_params": "<unknown>",
"credential_schema": "<unknown>",
"public": false,
"requires_auth": false,
"requires_auth_observed_at": "2023-11-07T05:31:56Z"
},
"mcp_server_service_connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp_server_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error_message": "<string>",
"connected_at": "2023-11-07T05:31:56Z",
"last_accessed_at": "2023-11-07T05:31:56Z",
"connected_by_user_id": "<string>",
"account_email": "<string>",
"error_reason": "authorization_not_completed"
},
"connection_status": "pending",
"connection_error_reason": "authorization_not_completed",
"url": "<string>",
"proxy_url": "<string>",
"can_manage_policies": true,
"attention_tier": "pending_publish",
"publish_blockers": [
"not_operationally_available"
],
"cascaded_fields": [
"<string>"
],
"deleted_at": "2023-11-07T05:31:56Z",
"credential_mode": "managed",
"uses_cimd": false,
"tools_count": 123,
"resources_count": 123
}
]
}
],
"pagination": {
"page": 123,
"limit": 123,
"total": 123,
"pages": 123,
"previous_page": 123,
"next_page": 123
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
A Barndoor API key, sent as Authorization: Bearer <key>. Keys are prefixed bdai_ and are opaque — do not attempt to decode one. Interchangeable with an OAuth 2.0 access token.
Query Parameters
Search server directories by name or description
Filter by category slug(s)
Order by field: name or created_at (default: name)
Order direction: asc or desc (default: asc)
Include server instances for the current user's organization
BCP-4300: false drops catalogs that run locally through the Barndoor CLI (embedded and local sources) before pagination, so page counts match what an org without the local-cli-mcp-tooling flag is shown. Defaults to true (unchanged listing).
Page number (1-based)
x >= 1Number of items per page (max 100)
1 <= x <= 100Filter by source: barndoor, third_party, internal, custom_third_party, custom_internal, local, embedded, or aliases 'custom' / 'local' (which expand to their component sources)