<coral-host> is the placeholder for the domain of your Coral deployment.
Before you start
-
Hostnames. Coral serves the UI, its auth server and its MCP server on three public HTTPS URLs. This guide uses
<coral-host>,auth.<coral-host>andmcp.<coral-host>. If you only have one hostname, see Using a single hostname. -
OIDC client. Create an OAuth/OIDC client at your identity provider and register this redirect URI:
Coral derives the redirect URI from
listeners.auth.public_url. There is no separate setting for it. -
Images.
latestis the newest stable release. To pin a version, use a tag from the releases page without the leadingv, such asghcr.io/withcoral/coral:1.0.0. The images are built forlinux/amd64only. On an arm64 host, such as an Apple Silicon Mac, addplatform: linux/amd64to thecoralandcoral-webservices to run them under emulation. Under emulation with Rosetta, search matches by words only. See Older CPUs.
Deploy
- Create a compose file in your working directory with these contents:
- The configuration reference describes the configuration options.
- This compose file exposes no ports. For TLS termination, do one of these:
- Add a TLS termination container, such as Caddy, to this compose file.
- Expose the ports 14556 (MCP), 8779 (auth) and 3000 (UI) to your reverse proxy, so that it can forward calls to Coral.
- Do not expose Coral’s gRPC port outside the compose network. The gRPC server is plaintext, with no encryption.
- With SQLite
- With Postgres
Coral saves the SQLite database files and the encryption key for sensitive
data in the
coral-state volume.- Create a
.envfile that holds the credentials that Coral uses:
-
Start Coral with
docker compose up -d. Both images have a built-in health check, andcondition: service_healthywaits for it. Ifcoral-webreportsdependency coral failed to start, the cause is in thecoralcontainer. Rundocker compose logs coral. - Start your reverse proxy for TLS termination. If you don’t have one, merge this Caddy service into the compose file:
Caddyfile:
-
Open the Coral UI in your browser at
https://<coral-host>. After you create your first workspace, follow the instructions in the Coral UI to connect an MCP client. Each workspace has its own MCP endpoint:
Choosing the organization owner
bootstrap_owner_subject is the sub claim that your identity provider issues for the user who becomes the organization owner. It is not an email address. With Google, it is a numeric account ID. Other providers usually show it as the user ID in their admin console. You can also read it from the sub claim of an ID token issued to that user.
- Set it before that user signs in to Coral for the first time. Coral assigns the role at a user’s first sign-in and does not change the role of a user who has already signed in.
- If you do not know the value yet, remove the line. An empty string is not valid and stops Coral from starting. Without an owner, Coral disables organization admin operations.
Offering a Coral plugin
The onboarding prompt can tell some MCP clients to look for a Coral plugin. To offer one, list those clients inAGENTS_WITH_AVAILABLE_PLUGINS on coral-web, separated by commas:
- A listed client that can find and install plugins looks for the plugin. It installs the plugin only after your user confirms. Then it adds the MCP server through the plugin.
- A listed client adds the MCP server directly if it cannot find or install the plugin, or if your user declines. Every other client adds it directly too.
- The list only advertises a plugin. Coral does not check that the plugin exists.
- Leave the variable unset to offer no plugin.
coral-webreads the variable at startup. List at most 8 names. Each name has up to 32 letters, digits, and single spaces, dots, hyphens or underscores between them. Any other value stopscoral-webfrom starting.
Using a single hostname
Eachpublic_url is an origin: a scheme, a host and an optional port, with no path. You cannot serve Coral under a path prefix.
If you only have one hostname, as with Tailscale Serve, put the MCP server and the auth server on the hostname itself, and give the UI its own HTTPS port:
Keep MCP and auth on port 443. Claude Desktop and Claude on the web connect from Anthropic’s servers, and those servers do not reach any other port.
Your reverse proxy must send the auth server’s paths to the auth listener, and every other path to the MCP listener. With Caddy, use this
Caddyfile:
"8443:8443" to the ports of the Caddy service.
With this layout:
- The redirect URI to register is
https://<coral-host>/auth/oidc/callback. - Your users open the UI at
https://<coral-host>:8443. - A workspace’s MCP endpoint is
https://<coral-host>/workspaces/<workspace-id>/mcp.
Upgrade
Read Upgrade Coral first. Run these commands in the directory of your compose file.-
Back up Coral’s state. With Postgres, take a dump or a snapshot of the database, and keep your
.envfile with it. With SQLite, stop Coral and archive the state volume: -
If your compose file pins a version, such as
ghcr.io/withcoral/coral:1.6.0, change both image tags to the new version. -
Pull the new images and start them:
Troubleshooting
coral-webcannot reach the auth server.coral-webcalls the auth server atCORAL_WEB_AUTH_ISSUER, its public URL, from inside the compose network. That hostname must resolve and route from the containers, not only from your browser./.well-known/openid-configurationreturns 404 on the auth server. This is expected. Coral’s auth server is an OAuth authorization server for the UI and MCP clients, not an OpenID provider. Its metadata is at/.well-known/oauth-authorization-server.