For the complete documentation index, see llms.txt. This page is also available as Markdown.

Enable MCP server on-premise

Enable the MCP endpoint on your UI Bakery on-premise instance.

See the MCP server guide for connection instructions and supported capabilities.

Before you begin

  • You need access to the UI Bakery deployment configuration and its .env file.

  • The instance must be reachable through its public HTTPS URL.

  • UI_BAKERY_APP_SERVER_NAME must match the externally reachable host. This ensures OAuth redirects use the correct URL.

Enable the MCP server

  1. Generate a cryptographically secure random secret. Use at least 32 random bytes.

    openssl rand -hex 32
  2. Add the following line to the UI Bakery .env file.

    UI_BAKERY_JWT_MCP_SECRET=<generated-value>
  3. Restart UI Bakery using the existing Updating environment variables procedure.

  4. Configure MCP clients with this remote Streamable HTTP endpoint:

    https://<your-ui-bakery-instance>/api/mcp
  5. Follow the general MCP server guide to connect Codex, Claude Code, Cursor, or another MCP-compatible client.

Store UI_BAKERY_JWT_MCP_SECRET in the deployment secret store, never in source control or documentation. Changing the secret invalidates all previously issued MCP tokens, so connected clients must authenticate again.

Last updated

Was this helpful?