Skip to main content
Glama

JSON Schema Validator MCP Server

by EienWolf
  • Apple
  • Linux
Dockerfile1.46 kB
# Dockerfile for JSON Schema Validator MCP Server FROM python:3.13-slim # Set environment variables ENV PYTHONPATH=/app ENV PYTHONUNBUFFERED=1 ENV PYTHONDONTWRITEBYTECODE=1 # Create application directory WORKDIR /app # Install system dependencies if necessary RUN apt-get update && apt-get install -y \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/* # Copy dependency files COPY requirements.txt . # Install Python dependencies RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r requirements.txt # Copy source code COPY . . # Create directories for data collections and logs RUN mkdir -p /app/.schemas /app/.data /app/.prompts /app/logs # Create non-root user for security RUN useradd --create-home --shell /bin/bash mcp && \ chown -R mcp:mcp /app USER mcp # Expose port (although MCP uses stdio, useful for debugging) EXPOSE 8000 # Verify that the application can be imported correctly RUN python -c "import mcp_server; print('MCP Server imported correctly')" # Default command to run the MCP server CMD ["python", "mcp_server.py"] # Healthcheck to verify that the container is working HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD python -c "import mcp_server; print('Health check OK')" || exit 1 # Labels for metadata LABEL maintainer="JSON Schema MCP Server" LABEL version="1.0.0" LABEL description="MCP Server for JSON Schema Draft 2020-12 validation"

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/EienWolf/jsonshema_mcp'

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