Skip to main content
Glama

Hugging Face MCP Server

by evalstate
Dockerfile2.08 kB
FROM node:22-alpine RUN corepack enable pnpm WORKDIR /app # Copy package files and install dependencies COPY pnpm-workspace.yaml pnpm-lock.yaml package*.json ./ COPY packages/mcp/package.json ./packages/mcp/ COPY packages/app/package.json ./packages/app/ RUN pnpm install --frozen-lockfile # Copy source code COPY . . # Clean any existing build artifacts to prevent export issues RUN rm -rf ./packages/mcp/dist ./packages/app/dist && \ echo "=== Cleaned build artifacts ===" # Build the application with debugging RUN echo "=== Starting build process ===" && \ pnpm run build && \ echo "=== Build completed, checking structure ===" # Ensure the self-contained mcp-welcome page is built last RUN cd packages/app && \ echo "=== Rebuilding self-contained mcp-welcome page ===" && \ pnpm run build:mcp-welcome && \ echo "=== Self-contained mcp-welcome build completed ===" && \ echo "=== Verifying mcp-welcome.html file size ===" && \ wc -c dist/web/mcp-welcome.html && \ echo "=== File should be ~252KB if self-contained ===" # Debug: List what was actually built RUN echo "=== Full package structure ===" && \ find packages/app -name "dist" -type d && \ echo "=== Contents of packages/app/dist ===" && \ ls -la packages/app/dist/ || echo "packages/app/dist does not exist" && \ echo "=== Contents of packages/app/dist/web (if exists) ===" && \ ls -la packages/app/dist/web/ || echo "packages/app/dist/web does not exist" && \ echo "=== Contents of packages/app/dist/server (if exists) ===" && \ ls -la packages/app/dist/server/ || echo "packages/app/dist/server does not exist" && \ echo "=== Looking for any index.html files ===" && \ find packages/app -name "index.html" -type f # Build the application # RUN pnpm run build # RUN chmod +x start.sh # Set working directory to where the built app is WORKDIR /app # Set environment variables ENV NODE_ENV=production ENV TRANSPORT=streamableHttpJson ENV PORT=3000 # Expose port EXPOSE 3000 # Run the startup script CMD ["/bin/sh", "./start.sh"]

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/evalstate/hf-mcp-server'

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