Skip to content

mcp remove

Removes an MCP server from the 1MCP configuration.

For a complete overview of server management, see the Server Management Guide.

Synopsis

bash
npx -y @1mcp/agent mcp remove <name> [options]

Arguments

  • <name>
    • The name of the server to remove.
    • Required: Yes

Options

  • --yes, -y
    • Skip the confirmation prompt.

Examples

bash
# Remove a server
npx -y @1mcp/agent mcp remove my-server

# Remove a server without prompting for confirmation
npx -y @1mcp/agent mcp remove old-server --yes

See Also

Released under the Apache 2.0 License.