Skip to main content
Glama

MCP CLI Command Server

by jbmurphy
Dockerfile884 B
FROM python:3.11-slim # Install CLI tools and dependencies RUN apt-get update && apt-get install -y \ nmap \ iputils-ping \ curl \ dnsutils \ traceroute \ whois \ netcat-traditional \ mtr-tiny \ && rm -rf /var/lib/apt/lists/* # Create non-root user for security RUN useradd -m -u 1000 mcpuser # Set working directory WORKDIR /app # Copy requirements and install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY src/ /app/src/ # Change ownership to non-root user RUN chown -R mcpuser:mcpuser /app # Switch to non-root user USER mcpuser # Expose port EXPOSE 3017 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD curl -f http://localhost:3017/health || exit 1 # Run the server CMD ["python", "/app/src/http_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/jbmurphy/mcp-cli'

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