Create SSO connector

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://openapi.logto.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Logto API references MCP server": {
    "url": "https://openapi.logto.io/mcp"
  }
}

Close
POST /api/sso-connectors

Create an new SSO connector instance for a given provider.

application/json

Body Required

  • config object

    The connector config. Its shape depends on the connector's provider. For the SAML and AzureAD providers, set disableEmailSync to true to keep the email address from the SAML assertion only on the SSO identity detail as unverifiedEmail: it is then neither saved as a new user's primary email nor used to link an existing account.

    Additional properties are allowed.

  • domains array[string]
  • branding object
    Hide branding attributes Show branding attributes object
    • displayName string
  • syncProfile boolean
  • enableTokenStorage boolean
  • providerName string Required

    Minimum length is 1, maximum length is 128.

  • connectorName string Required

    Minimum length is 1, maximum length is 128.

Responses

  • 200 application/json

    The created SSO connector.

    Hide response attributes Show response attributes object
    • tenantId string Required

      Maximum length is 64.

    • id string Required

      Minimum length is 1, maximum length is 128.

    • providerName string Required

      Minimum length is 1, maximum length is 128.

    • connectorName string Required

      Minimum length is 1, maximum length is 128.

    • config object Required

      arbitrary

      Additional properties are allowed.

    • domains array[string] Required
    • branding object Required
      Hide branding attributes Show branding attributes object
      • displayName string
    • syncProfile boolean Required
    • enableTokenStorage boolean Required
    • createdAt number Required
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 409

    Conflict

  • 422

    At lease one of the given input fields is invalid or IdP connection cannot be verified with the given config.

POST /api/sso-connectors
curl \
 --request POST 'https://[tenant_id].logto.app/api/sso-connectors' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "config": {},
  "domains": [
    "string"
  ],
  "branding": {
    "displayName": "string",
    "logo": "string",
    "darkLogo": "string"
  },
  "syncProfile": true,
  "enableTokenStorage": true,
  "providerName": "string",
  "connectorName": "string"
}'
Request examples
{
  "config": {},
  "domains": [
    "string"
  ],
  "branding": {
    "displayName": "string",
    "logo": "string",
    "darkLogo": "string"
  },
  "syncProfile": true,
  "enableTokenStorage": true,
  "providerName": "string",
  "connectorName": "string"
}
Response examples (200)
{
  "tenantId": "string",
  "id": "string",
  "providerName": "string",
  "connectorName": "string",
  "config": {},
  "domains": [
    "string"
  ],
  "branding": {
    "displayName": "string",
    "logo": "string",
    "darkLogo": "string"
  },
  "syncProfile": true,
  "enableTokenStorage": true,
  "createdAt": 42.0
}