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