FROM node:18-alpine AS builder
WORKDIR /app
# Copy package files first
COPY package*.json ./
COPY tsconfig.json ./
# Install ALL dependencies (including dev dependencies for build)
RUN npm ci && npm cache clean --force
# Copy source code
COPY src/ ./src/
# Build the application
RUN npm run build
# Production stage
FROM node:18-alpine AS production
# Create app user
RUN addgroup -g 1001 -S nodejs && adduser -S mcp -u 1001
WORKDIR /app
# Install only production dependencies
COPY package*.json ./
RUN npm ci --omit=dev && npm cache clean --force
# Copy built application from builder stage
COPY --from=builder --chown=mcp:nodejs /app/dist ./dist
# Switch to non-root user
USER mcp
# Expose port
EXPOSE 3000
# Start the application
CMD ["node", "dist/index.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/deflang/infura-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server