Skip to main content
Glama

Port MCP Server

by port-labs
Dockerfile1.14 kB
FROM python:3.13-alpine AS build # Set environment variables ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ PIP_NO_CACHE_DIR=off \ PIP_DISABLE_PIP_VERSION_CHECK=on # Set working directory WORKDIR /app RUN apk add build-base # Copy the source code COPY . . # Build the package RUN make install # Create a runtime stage with minimal dependencies FROM python:3.13-alpine LABEL org.opencontainers.image.source=https://github.com/port-labs/port-mcp-server # Set working directory WORKDIR /app # Set environment variables ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 # Copy installed packages and application from build stage COPY --from=build /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages COPY --from=build /app /app # Make entrypoint script executable RUN chmod +x /app/entrypoint.sh # Expose any necessary ports # (No ports needed as this uses stdio for communication) # Command to run the server ENTRYPOINT ["/app/entrypoint.sh"] # The server will expect client_id and client_secret to be provided via environment variables: # PORT_CLIENT_ID and PORT_CLIENT_SECRET

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/port-labs/port-mcp-server'

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