How to install a community MCP without trusting random `npx -y` scripts
Wann einsetzen: You want the GitHub MCP running locally but don't want to give it unrestricted filesystem access.
Voraussetzungen
- Docker Desktop — docker.com
- ToolHive desktop app — stacklok.com/download
Ablauf
-
Open ToolHive, search the registryInstall 'github' from the ToolHive registry.✓ Kopiert→ Container pulled, config prompt for GITHUB_TOKEN
-
Auto-configure your clientClick 'Connect to Claude Desktop'.✓ Kopiert→ Claude Desktop config updated; restart required
-
Verify isolationConfirm the container only has the env vars you set and no host filesystem mounts.✓ Kopiert→ Inspect container config in the ToolHive UI
Ergebnis: A sandboxed MCP with least-privilege access to your machine.
Fallstricke
- Filesystem MCPs need a mount — default no-mount is too tight — Add a scoped mount (e.g. ~/Projects only) rather than full-home