Skip to main content
Glama

Kali Linux MCP Server

by pellax
Dockerfile1.61 kB
# Use official Kali Linux rolling image FROM kalilinux/kali-rolling # Set environment variables ENV DEBIAN_FRONTEND=noninteractive ENV PYTHONUNBUFFERED=1 # Update package lists and install essential packages RUN apt-get update && apt-get install -y \ python3 \ python3-pip \ python3-venv \ python3-dev \ git \ curl \ wget \ nano \ vim \ net-tools \ procps \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Create application directory WORKDIR /app # Copy requirements first for better Docker layer caching COPY requirements.txt pyproject.toml ./ # Create virtual environment and install Python dependencies RUN python3 -m venv venv --system-site-packages && \ ls -la venv/bin/ && \ echo "Installing pip in venv..." && \ ./venv/bin/python -m ensurepip --upgrade && \ ./venv/bin/python -m pip install --upgrade pip && \ ./venv/bin/python -m pip install -r requirements.txt && \ echo "Final venv contents:" && \ ls -la venv/bin/ && \ echo "Testing imports:" && \ ./venv/bin/python -c "import fastmcp, pydantic; print('✓ All dependencies installed')" # Copy application files COPY . . # Copy and set up startup script COPY start_server.sh /app/start_server.sh # Make scripts executable RUN chmod +x *.py *.sh /app/start_server.sh # Create non-root user for security RUN useradd -m -s /bin/bash kaliuser && \ chown -R kaliuser:kaliuser /app # Switch to non-root user USER kaliuser # Expose default port (adjust as needed) EXPOSE 8000 # Default command - start the MCP server CMD ["/app/start_server.sh"]

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