Detect duplicate, drifted, and dead MCP server configs across clients — and dedupe them in one command
pip install mcp-config-dedupe Copy PIP instructions
If you run Claude Desktop, Cursor, VS Code, and Codex side by side, you have probably pasted the same mcpServers block into four different config files. Over time they rot: the same server gets configured twice, one copy gets different args than the other (drift), and old entries point at commands you uninstalled months ago (dead links). mcp-dedupe scans every client, shows you the mess, and cleans it up — with backups and a dry-run first.
Stdlib-only. No dependencies, no network calls, no telemetry.
pip install mcp-config-dedupe Requires Python 3.11+.
# Scan all supported clients (read-only) and print findings mcp-dedupe scan # Machine-readable report (exit code 1 when findings exist — CI friendly) mcp-dedupe scan --format json # Preview what dedupe would change (default; writes nothing) mcp-dedupe dedupe # Actually dedupe: backups are taken first, confirmation is explicit mcp-dedupe dedupe --apply --yes # Also resolve drifted duplicates, preferring Cursor's copy mcp-dedupe dedupe --apply --yes --include-drift --prefer cursor # Also remove servers whose command/cwd no longer exists mcp-dedupe dedupe --apply --yes --prune-dead What it detects:
Supported clients: Claude Desktop, Cursor, VS Code (mcp.servers settings), Codex CLI (~/.codex/config.toml).
Safety model: scan and the default dedupe (dry-run) never write. --apply refuses to run without --yes, backs up every touched file to ~/.mcp-dedupe/backups/ / first, and only rewrites configs that parsed cleanly. Drifted duplicates are never auto-merged — you pick the winner with --prefer.
python3 -m unittest discover -s tests -v # 14 smoke tests, stdlib only License MIT — see LICENSE.
mcp model-context-protocol config dedupe claude cursor vscode codex
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




