Installation¶
Requirements¶
- Operating System: Linux, macOS, or Windows
- Go 1.24+ (for building from source)
Installation Methods¶
Using Go Install¶
The quickest way to install:
Ensure $GOPATH/bin is in your PATH:
Building from Source¶
# Clone the repository
git clone https://github.com/mcphub/mcp-scan
cd mcp-scan
# Build
make build
# Binary is at ./bin/mcp-scan
./bin/mcp-scan version
Pre-built Binaries¶
Download from the Releases page:
Verify Installation¶
Expected output:
Docker¶
Shell Completion¶
Bash¶
Zsh¶
Fish¶
Troubleshooting¶
"command not found"¶
Ensure the binary location is in your PATH:
# Check where Go installs binaries
go env GOPATH
# Add to PATH in ~/.bashrc or ~/.zshrc
export PATH=$PATH:$(go env GOPATH)/bin
Permission Denied¶
Tree-sitter Errors¶
MCP-Scan uses tree-sitter for parsing. If you see parsing errors: