| Description | Remove a registered MCP server |
|---|---|
| Usage | sbx mcp rm NAME [flags] |
Description
Remove a registered MCP server and its OAuth credential.
Use --registration-only to remove the local registration without starting the daemon or accessing credentials. This also removes the registration's saved environment ownership and approval, including damaged or orphaned registrations. Stored credentials are kept, and MCP processes already running in sandbox gateways are not stopped. For an untrusted registration, first stop the selected daemon; this interrupts all of its sandbox gateways. A later approved env run can register a declared server again. Use --sandbox to select an environment-owned registration.
Options
| Option | Default | Description |
|---|---|---|
-f, --force | Skip confirmation prompts | |
--registration-only | Remove only the local registration without starting the daemon; keep credentials and running MCP processes | |
--sandbox | Owning sandbox (requires --registration-only) |
Global options
| Option | Default | Description |
|---|---|---|
--cloud | Dispatch to Docker Cloud Sandboxes API instead of local sandboxd (supported by a growing set of verbs — run 'sbx --cloud --help' for the current list) | |
-D, --debug | Enable debug logging | |
--no-input | Never prompt; commands that need an answer fail with the command to run instead |
Examples
sbx mcp rm notion
sbx mcp rm --registration-only notion
sbx mcp rm --registration-only notion --sandbox my-sbx