Skip to main content
Glama

MCP Self-Learning Server

Dockerfile•1.44 kB
FROM node:18-alpine # Set working directory WORKDIR /app # Add metadata LABEL maintainer="Saralegui Solutions LLC <noreply@saralegui-solutions.com>" LABEL description="MCP Self-Learning Server - Autonomous learning system for AI agents" LABEL version="1.0.0" # Install system dependencies RUN apk add --no-cache \ curl \ python3 \ py3-pip \ && rm -rf /var/cache/apk/* # Create non-root user RUN addgroup -g 1001 -S mcpuser && \ adduser -S -D -H -u 1001 -s /sbin/nologin -G mcpuser mcpuser # Copy package files COPY package*.json ./ # Install npm dependencies RUN npm ci --only=production && \ npm cache clean --force # Copy application code COPY . . # Create directories with proper permissions RUN mkdir -p /app/data /app/logs /app/shared_knowledge && \ chown -R mcpuser:mcpuser /app # Install Python dependencies for client library RUN pip3 install --no-cache-dir aiohttp websockets # Set file permissions RUN chmod +x bin/mcp-learn.js && \ chmod +x tools/*.js # Expose port EXPOSE 8765 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD curl -f http://localhost:8765/health || exit 1 # Switch to non-root user USER mcpuser # Environment variables ENV NODE_ENV=production ENV MCP_LEARN_HOST=0.0.0.0 ENV MCP_LEARN_PORT=8765 ENV MCP_LEARN_DATA_DIR=/app/data ENV MCP_LEARN_LOG_DIR=/app/logs # Start server CMD ["node", "mcp-self-learning-server.js"]

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/saralegui-solutions/mcp-self-learning-server'

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