Skip to main content
Glama

HackerNews MCP Server

Dockerfile745 B
# Use Node.js 18 LTS as base image FROM node:18-alpine # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies RUN npm ci --only=production # Copy source code COPY . . # Build the TypeScript code RUN npm run build # Create logs directory RUN mkdir -p logs # Create non-root user for security RUN addgroup -g 1001 -S nodejs && \ adduser -S nodejs -u 1001 # Change ownership of app directory RUN chown -R nodejs:nodejs /app # Switch to non-root user USER nodejs # Expose port (if needed for HTTP interface) EXPOSE 3000 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ CMD node -e "process.exit(0)" # Start the MCP server CMD ["npm", "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/Traves-Theberge/Hackernews-MCP-Typescript'

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