remove
Remove an MCP server from agent configurations.
Remove a server by name, URL, or package name:
npx add-mcp remove <name | url | package> [options]
Examples
# Remove by server name (interactive selection by default)
npx add-mcp remove neon
# Remove all matches without prompting
npx add-mcp remove neon -y
# Remove by URL
npx add-mcp remove https://mcp.neon.tech/mcp -y
# Remove from global configs for a specific agent
npx add-mcp remove neon -g -a cursor -y
Options
| Option | Description |
|---|---|
-g, --global |
Remove from global configs |
-a, --agent <agent> |
Filter to specific agent(s) |
-y, --yes |
Remove all matches without prompting |