We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/avi686/security-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
Dockerfile•1.51 kB
# Use Kali Linux rolling as base
FROM kalilinux/kali-rolling
# Set working directory
WORKDIR /app
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV DEBIAN_FRONTEND=noninteractive
# Update package lists and install core packages first
RUN apt-get update
# Install essential tools in smaller chunks to avoid network issues
RUN apt-get install -y python3 python3-pip python3-venv
# Install network tools and libcap2-bin for setcap
RUN apt-get install -y nmap nikto dirb curl wget net-tools iputils-ping libcap2-bin
# Install security tools (skip problematic ones for now)
RUN apt-get install -y sudo
# Try to install remaining tools with --fix-missing
RUN apt-get install -y --fix-missing sqlmap wpscan || true
# Clean up
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
# Create virtual environment and install Python dependencies
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN pip3 install --no-cache-dir -r requirements.txt
# Copy the server code
COPY security_server.py .
# Create non-root user with necessary capabilities
RUN useradd -m -u 1000 mcpuser && \
chown -R mcpuser:mcpuser /app && \
chown -R mcpuser:mcpuser /opt/venv
# Set capabilities for network tools (required for raw sockets)
RUN setcap cap_net_raw+ep /usr/bin/nmap
# Switch to non-root user
USER mcpuser
# Ensure virtual environment is active
ENV PATH="/opt/venv/bin:$PATH"
# Run the server
CMD ["python3", "security_server.py"]