How to install a community MCP without trusting random `npx -y` scripts
Когда использовать: You want the GitHub MCP running locally but don't want to give it unrestricted filesystem access.
Предварительные требования
- Docker Desktop — docker.com
- ToolHive desktop app — stacklok.com/download
Поток
-
Open ToolHive, search the registryInstall 'github' from the ToolHive registry.✓ Скопировано→ Container pulled, config prompt for GITHUB_TOKEN
-
Auto-configure your clientClick 'Connect to Claude Desktop'.✓ Скопировано→ Claude Desktop config updated; restart required
-
Verify isolationConfirm the container only has the env vars you set and no host filesystem mounts.✓ Скопировано→ Inspect container config in the ToolHive UI
Итог: A sandboxed MCP with least-privilege access to your machine.
Подводные камни
- Filesystem MCPs need a mount — default no-mount is too tight — Add a scoped mount (e.g. ~/Projects only) rather than full-home