Skip to main content
Glama

MCP Prompts Server

Dockerfile1.21 kB
FROM node:20-alpine AS builder WORKDIR /app # Copy package files COPY package.json pnpm-lock.yaml ./ # Install dependencies and build RUN corepack enable && pnpm install --frozen-lockfile COPY . . RUN pnpm run build # Production stage FROM node:20-alpine AS production WORKDIR /app # Create app user for security RUN addgroup -g 1001 -S nodejs RUN adduser -S mcp-prompts -u 1001 # Copy package files COPY package.json pnpm-lock.yaml ./ # Install production dependencies only RUN corepack enable && pnpm install --prod --frozen-lockfile && pnpm store prune # Copy built application and data from builder stage COPY --from=builder --chown=mcp-prompts:nodejs /app/dist ./dist COPY --from=builder --chown=mcp-prompts:nodejs /app/data ./data # Switch to non-root user USER mcp-prompts # Set environment variables ENV NODE_ENV=production ENV PORT=3003 ENV HOST=0.0.0.0 # Expose port EXPOSE 3003 # Health check HEALTHCHECK --interval=30s --timeout=10s --retries=3 \ CMD node -e "require('http').request({hostname: 'localhost', port: process.env.PORT || 3003, path: '/health', timeout: 2000}, (res) => process.exit(res.statusCode !== 200)).end()" # 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/sparesparrow/mcp-prompts'

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