Installation¶
archivebox-api is a standard Python package and a prebuilt container image. Pick the
path that matches how you want to run it.
Requirements¶
- Python 3.11 – 3.14.
- A reachable ArchiveBox instance — see Backing Platform to deploy one locally.
From PyPI (recommended)¶
Optional extras¶
The base install is intentionally minimal. Install the extra for what you need:
| Extra | Install | Pulls in |
|---|---|---|
mcp |
pip install "archivebox-api[mcp]" |
FastMCP MCP-server runtime (agent-utilities[mcp]) |
agent |
pip install "archivebox-api[agent]" |
Pydantic-AI agent + Logfire tracing (agent-utilities[agent,logfire]) |
all |
pip install "archivebox-api[all]" |
Everything above |
From source¶
git clone https://github.com/Knuckles-Team/archivebox-api.git
cd archivebox-api
pip install -e ".[all]" # editable install with every extra
With uv:
Prebuilt Docker image¶
A multi-stage, slim image is published on every release (installs
archivebox-api[all], entrypoint archivebox-mcp):
docker pull knucklessg1/archivebox-api:latest
docker run --rm -i \
-e ARCHIVEBOX_BASE_URL=http://your-archivebox:8000 \
-e ARCHIVEBOX_USERNAME=admin \
-e ARCHIVEBOX_PASSWORD=your-password \
knucklessg1/archivebox-api:latest # stdio transport (default)
For an HTTP server with a published port and the agent server, see Deployment.
Verify the install¶
Next steps¶
- Deployment — run it as a long-lived MCP server and agent behind Caddy + DNS.
- Usage — call the tools, the
Apiclient, and the CLI. - Configuration — every environment variable.