Search or ask Docker

sbx mcp rm

View Markdown
DescriptionRemove a registered MCP server
Usagesbx 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

OptionDefaultDescription
-f, --forceSkip confirmation prompts
--registration-onlyRemove only the local registration without starting the daemon; keep credentials and running MCP processes
--sandboxOwning sandbox (requires --registration-only)

Global options

OptionDefaultDescription
--cloudDispatch 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, --debugEnable debug logging
--no-inputNever 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