Skip to main content
Glama

Brave Search MCP Server

Dockerfile1.17 kB
# Use official Node.js runtime as base image FROM node:22-alpine # Set working directory inside container WORKDIR /app # Install dependencies first for better caching COPY package*.json ./ # Install dependencies with timeout and retry RUN npm ci --only=production --no-audit --no-fund --timeout=300000 || \ (echo "Retrying npm install..." && npm install --production --no-audit --no-fund) # Copy source code COPY src/ ./src/ COPY tsconfig.json ./ # Install TypeScript locally and build RUN npm install --save-dev typescript && \ npx tsc && \ chmod +x dist/index.js # Remove dev dependencies to reduce image size RUN npm prune --production # Create a non-root user for security RUN addgroup -g 1001 -S nodejs && \ adduser -S mcp -u 1001 && \ chown -R mcp:nodejs /app # Switch to non-root user USER mcp # Set environment variables ENV NODE_ENV=production ENV PORT=8000 # Expose port 8000 for the MCP server EXPOSE 8000 # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD node -e "console.log('Health check passed')" || exit 1 # Command to run the server CMD ["node", "dist/index.js", "--port", "8000"]

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/YC-Agents-Hackathon/mcp-forensics'

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