firecrawl-mcp-server Docker & Self-Hosted Deployment

GitHub

Official Firecrawl MCP server, the context API for AI agents: search, scrape, and interact with the web, plus parse, crawl, map, Agent and Monitor, from any...

1. Pull Image (DOCKERHUB) docker pull firecrawl/firecrawl-mcp-server:latest
2. Docker Run (1-Click Launch) docker run -d --name firecrawl-mcp-server -p 3000:3000 --restart always firecrawl/firecrawl-mcp-server:latest
3. Podman Run podman run -d --name firecrawl-mcp-server -p 3000:3000 --restart always firecrawl/firecrawl-mcp-server:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/firecrawl/firecrawl-mcp-server:latest
5. ORAS Pull (OCI Artifact) oras pull firecrawl/firecrawl-mcp-server:latest
Dockerfile
# Standard Firecrawl MCP server image.
# stdio by default; set HTTP_STREAMABLE_SERVER=true to serve Streamable HTTP on PORT.

FROM node:22.23.5-alpine3.23 AS builder
WORKDIR /app

RUN corepack enable && corepack prepare [email protected] --activate

COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
# Skip scripts so the package "prepare" build doesn't run before the source is copied.
RUN pnpm install --frozen-lockfile --ignore-scripts

COPY . .
RUN pnpm run build


FROM node:22.23.5-alpine3.23 AS release
WORKDIR /app

RUN corepack enable && corepack prepare [email protected] --activate

COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
RUN pnpm install --prod --frozen-lockfile --ignore-scripts && pnpm store prune

COPY --from=builder /app/dist ./dist

# Runtime configuration (see README "Docker"):
#   FIRECRAWL_API_KEY       API key for the Firecrawl cloud API
#   FIRECRAWL_API_URL       optional self-hosted Firecrawl API URL
#   HTTP_STREAMABLE_SERVER  "true" to serve Streamable HTTP instead of stdio
#   PORT, HOST              HTTP listen address (HTTP mode only)
ENV NODE_ENV=production \
    PORT=3000 \
    HOST=0.0.0.0
EXPOSE 3000

USER node
ENTRYPOINT ["node", "dist/index.js"]