# Use Node.js 18 LTS as base image
FROM node:18-alpine
# Install pnpm
RUN corepack enable && corepack prepare pnpm@8.15.0 --activate
# Set working directory
WORKDIR /app
# Copy package files
COPY package.json pnpm-lock.yaml* pnpm-workspace.yaml* ./
# Install dependencies
RUN pnpm install --frozen-lockfile --prod
# Copy source code and config
COPY src/ ./src/
COPY vite.config.ts tsconfig.json ./
# Build the application with Vite
RUN pnpm run build
# Create non-root user for security
RUN addgroup -g 1001 -S nodejs
RUN adduser -S mcp -u 1001
# Change ownership of the app directory
RUN chown -R mcp:nodejs /app
USER mcp
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD node --version || exit 1
# Start the MCP server
CMD ["pnpm", "start"]
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/cryptonahue/mcp-anytype'
If you have feedback or need assistance with the MCP directory API, please join our Discord server