Skip to main content
POST
Register an MCP server

Authorizations

X-Api-Key
string
header
default:LANGSMITH_API_KEY
required

Body

application/json
name
string
required

Human-readable name for the MCP server.

url
string<uri>
required

MCP server URL. Must be a valid HTTPS endpoint.

headers
object[]

Credential headers attached to every invocation of this MCP server. Omitted from response bodies when the caller lacks invoke permission on the server.

auth_type
string

Authentication scheme used by the MCP server. Defaults to no authentication.

oauth_provider_id
string<uuid> | null

Optional OAuth provider ID for legacy shared OAuth providers. Not applicable to Managed Deep Agents in private preview.

oauth_mode
enum<string>

OAuth mode. Managed Deep Agents only supports static headers credentials in private preview.

Available options:
legacy_shared_provider,
per_user_dynamic_client
vendor_id
string

Optional vendor identifier for catalog grouping.

external_system_id
string

Optional opaque external system identifier.

Response

MCP server registered.

id
string<uuid>
tenant_id
string<uuid>
name
string
url
string<uri>
headers
object[]

Credential headers attached to every invocation of this MCP server. Omitted from response bodies when the caller lacks invoke permission on the server.

auth_type
string
oauth_provider_id
string<uuid> | null
oauth_mode
string
created_at
string<date-time>
updated_at
string<date-time>
mcp_vendor_id
string | null
vendor_id
string | null
external_system_id
string | null
can_invoke
boolean

Whether the caller has invoke permission on this server. Omitted when ambient permissions already imply invoke.