mcp-prune
v0.1.6
Published
Audit MCP server usage from Claude Code transcripts. Find idle servers to prune.
Maintainers
Readme
mcp-prune
Audit MCP server usage from Claude Code transcripts. Find idle servers so you can prune them and stop loading their tool schemas into every conversation.
This npm package wraps the Rust binary distributed via GitHub Releases.
Install
npm install -g mcp-prune
# or run without installing
npx mcp-prune reportOn install, a small postinstall script downloads the prebuilt binary for your
platform (darwin-arm64, darwin-x64, linux-x64, linux-arm64) from the
matching GitHub Release. No Rust toolchain required.
Usage
mcp-prune install # add SessionStart hook to ~/.claude/settings.json
mcp-prune report # grouped usage report
mcp-prune idle # only idle servers
mcp-prune apply # interactive pruneSee the full README at https://github.com/mstuart/mcp-prune for details.
Troubleshooting
If the binary fails to download during install (corp proxy, offline, etc.):
npm rebuild mcp-prune # retry the downloadOr build from source:
cargo install --git https://github.com/mstuart/mcp-pruneLicense
MIT
