Skip to main content
GET
/
api
/
servers
List MCP servers
curl --request GET \
  --url https://{organization_id}.mcp.barndoor.ai/api/servers \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Salesforce Production",
    "slug": "salesforce",
    "provider": "salesforce",
    "connection_status": "connected"
  },
  {
    "id": "987fcdeb-51a2-43d1-9f12-123456789abc",
    "name": "Notion Workspace",
    "slug": "notion",
    "provider": "notion",
    "connection_status": "available"
  }
]

Authorizations

Authorization
string
header
required

JWT token obtained through Auth0 OAuth 2.0 flow with PKCE.

The token should be included in the Authorization header: Authorization: Bearer <your-jwt-token>

Use the Barndoor SDK's loginInteractive() function to obtain tokens automatically.

Response

List of available MCP servers

id
string<uuid>
required

Unique identifier for the server

Example:

"123e4567-e89b-12d3-a456-426614174000"

name
string
required

Human-readable name of the server

Example:

"Salesforce Production"

slug
string
required

URL-friendly identifier used in API paths

Example:

"salesforce"

connection_status
enum<string>
required

Current connection status:

  • available: Server is available but not connected
  • pending: Connection is in progress or credentials missing
  • connected: Server is connected and ready to use
  • error: Connection failed or encountered an error
Available options:
available,
pending,
connected,
error
Example:

"connected"

provider
string | null

Third-party provider name

Example:

"salesforce"