Skip to main content
Glama

Kali Linux MCP Server

by pellax
install.sh1.85 kB
#!/bin/bash # Installation script for Kali MCP Server set -e INSTALL_DIR="/opt/kali-mcp-server" SERVICE_USER="mcp-server" echo "Installing Kali MCP Server..." # Check if running as root if [[ $EUID -ne 0 ]]; then echo "This script must be run as root for system installation" echo "Use: sudo $0" exit 1 fi # Install system dependencies echo "Installing system dependencies..." apt-get update apt-get install -y python3 python3-pip python3-venv # Create installation directory echo "Creating installation directory..." mkdir -p "$INSTALL_DIR" # Copy files echo "Copying application files..." cp -r . "$INSTALL_DIR/" # Create virtual environment echo "Creating virtual environment..." cd "$INSTALL_DIR" python3 -m venv venv source venv/bin/activate # Install Python dependencies echo "Installing Python dependencies..." pip install --upgrade pip pip install -e . # Set ownership echo "Setting ownership..." chown -R "$SERVICE_USER:$SERVICE_USER" "$INSTALL_DIR" # Make scripts executable chmod +x "$INSTALL_DIR/setup_capabilities.sh" chmod +x "$INSTALL_DIR/run_server.py" # Run capability setup echo "Setting up capabilities..." "$INSTALL_DIR/setup_capabilities.sh" # Enable and start service echo "Configuring systemd service..." systemctl daemon-reload systemctl enable kali-mcp-server.service echo "" echo "Installation complete!" echo "" echo "Configuration:" echo "- Edit /etc/kali-mcp-server/config.env for settings" echo "- Service user: $SERVICE_USER" echo "- Installation directory: $INSTALL_DIR" echo "" echo "Commands:" echo "- Start: sudo systemctl start kali-mcp-server" echo "- Stop: sudo systemctl stop kali-mcp-server" echo "- Status: sudo systemctl status kali-mcp-server" echo "- Logs: sudo journalctl -u kali-mcp-server -f" echo "" echo "Development:" echo "- Run directly: cd $INSTALL_DIR && ./run_server.py"

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pellax/kaliMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server