Skip to main content
Glama

n8n MCP Server

MIT License
133
1,377
  • Apple
  • Linux
Dockerfile1.03 kB
# Stage 1: Build the application FROM node:20 AS builder WORKDIR /app # 1️⃣ Copy only dependency manifests first (keeps layer cache efficient) COPY package*.json ./ # 2️⃣ Install deps *without* running any scripts ➜ skips the automatic `prepare` RUN npm ci --ignore-scripts # dev + prod deps, no build yet # 3️⃣ Now bring in the full source tree (tsconfig.json, src/, …) COPY . . # 4️⃣ Build explicitly – everything is present now RUN npm run build # 5️⃣ Strip dev-dependencies; keeps runtime small RUN npm prune --omit=dev # Stage 2: Create the production image FROM node:20-slim WORKDIR /app # 6️⃣ Copy ready-to-run artefacts from builder COPY --from=builder /app/build ./build COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/package*.json ./ # Set executable permissions for the binary RUN chmod +x build/index.js # Expose the port the app runs on EXPOSE 8000 # Set the entrypoint to run the MCP server CMD ["node", "build/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/leonardsellem/n8n-mcp-server'

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