# Use an official Node.js runtime as a parent image FROM node:20-slim # Set the working directory in the container WORKDIR /usr/src/app # Install the n8n-mcp-server package RUN npm install -g @leonardsellem/n8n-mcp-server # Make port 7860 available to the world outside this container # Hugging Face Spaces expects the app to run on port 7860 EXPOSE 7860 # Define environment variables. # HOST and PORT are set to what Hugging Face expects. # N8N_URL and N8N_API_KEY will be set via secrets in the Space settings. ENV HOST="0.0.0.0" ENV PORT="7860" # Run the server when the container launches CMD [ "n8n-mcp-server" ]