Skip to content

IntegrationsYour own code

Docker

Run Artiwright as a container, either the MCP server over HTTP or a Python image for ADK and LangGraph agents.

Docker.md

Two images, for the two ways agents use Artiwright. Both are on GitHub’s container registry, tagged with each version and latest:

Image What it is Use it for
ghcr.io/bvenu17/artiwright-mcp Node.js 26 and Artiwright, running the MCP server over HTTP on port 8765, sessions in the /data volume, as a non-root user A service your agents connect to by URL
ghcr.io/bvenu17/artiwright-python Python 3.12 with artiwright[adk,langgraph], its JavaScript side installed at build time A base for ADK or LangGraph agents that start Artiwright over stdio; works without network at run time
  1. Start it, with a token and a volume for sessions:

    docker run -d --name artiwright -p 8765:8765 \
    -e ARTIWRIGHT_MCP_TOKEN=choose-a-long-random-token \
    -v artiwright-data:/data \
    ghcr.io/bvenu17/artiwright-mcp
  2. Check it’s running:

    docker logs artiwright

    The log shows where it listens and that a token is required.

  3. Connect your agents to http://localhost:8765/mcp with Authorization: Bearer <token> (see HTTP server).

FROM ghcr.io/bvenu17/artiwright-python
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
CMD ["python", "main.py"]

Your agent uses artiwright.adk or artiwright.langgraph as usual. Artiwright’s dependencies are already installed, so the container can run with no network if your agent doesn’t need it.

Inside the container, agent code still runs in Artiwright’s sandbox; the container adds process and file isolation from the host. For untrusted users or several tenants, lock the container down too:

docker run -d --name artiwright -p 8765:8765 \
--read-only --tmpfs /tmp \
--cap-drop ALL --security-opt no-new-privileges \
-e ARTIWRIGHT_MCP_TOKEN=choose-a-long-random-token \
-v artiwright-data:/data \
ghcr.io/bvenu17/artiwright-mcp

The image already runs as a non-root user, and only the sessions volume and /tmp are writable.