Skip to content
add-mcp
Esc
↑↓navigate↵open⌘Jpreview
On this page

remove

Remove an MCP server from agent configurations.

Remove servers by a case-insensitive name substring, or by an exact URL/package identity match (matching source):

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

Unreadable config files are reported and skipped for every agent sharing that file; the command exits nonzero. Project .mcp.json is shared by Claude Code and GitHub Copilot CLI, so removing an entry from either removes it for both (release changelog).

Options

Option Description
-g, --global Remove from global configs
-a, --agent <agent> Filter to specific agent(s)
-y, --yes Remove all matches without prompting

Was this page helpful?