Installation¶
Install backlog-mcp with uv, in Docker or in Kubernetes. The uv installation gives the
backlog command, the stdio server and the HTTP server. The container image and the Helm
chart run only the HTTP server; install the package with uv on each computer where you want
the backlog command.
With uv¶
The project requires Python 3.14 or later. uv installs the package and a suitable Python into an isolated environment:
uv tool install backlog-tiny-mcp
The package on PyPI is backlog-tiny-mcp. The name backlog-mcp on PyPI belongs to another
project. The package installs two commands: backlog and backlog-mcp. uv tool dir --bin prints the
directory that holds them; it must be on your PATH.
To upgrade to the latest release, or to remove the package:
uv tool upgrade backlog-tiny-mcp
uv tool uninstall backlog-tiny-mcp
Configuration file¶
backlog and backlog-mcp need no configuration file. To keep settings, write a TOML file. The
commands read these files in this order, and a later file overrides the keys that it sets:
File |
Scope |
|---|---|
|
Every user of the computer. |
|
Your user. |
|
One checkout. |
The file that |
One command. |
A missing file is skipped. Environment variables and command-line options override every file.
--generate-config writes a template with every option and its description. The options that
you give before it are written active; the others are written as comments:
mkdir -p ~/.config/backlog-mcp
backlog --computer laptop --generate-config ~/.config/backlog-mcp/config.toml
The command replaces an existing file. The data is in ~/.local/share/backlog-mcp/backlog.sqlite3
($XDG_DATA_HOME/backlog-mcp/backlog.sqlite3); the database key moves it.
To make every backlog command use a remote server, put the server URL and the credentials into
this file; see Always use a remote server.
Where the data lives describes every key and the environment variables.
Next steps:
Local MCP server over stdio: register the server with an agent on this computer.
Command line: use the
backlogcommand, with a local database or a remote server.
Run the HTTP server from the uv installation¶
The same installation runs the remote server on a host:
backlog-mcp --protocol=http --http-listen=0.0.0.0 --auth-basic=alice:secret
Run it under a service manager, such as a systemd unit, so that it starts again after a
restart. The server keeps the data in one SQLite file, by default
~/.local/share/backlog-mcp/backlog.sqlite3 of the user that runs it. Give another path with
BACKLOG_MCP_DATABASE, or with backlog --database PATH mcp; backlog-mcp does not accept the
global option --database. See Where the data lives. Keep the file on a
local disk, back it up, and run one server for one file.
In Docker¶
Each release publishes the image ghcr.io/mosquito/backlog-mcp for linux/amd64 and
linux/arm64. The tags are the release version, for example 0.35.0, and latest.
The image runs backlog-mcp over HTTP:
It listens on
0.0.0.0, port3009, inside the container.It keeps the database in
/data/backlog.sqlite3./datais a volume.It runs as the user
65532, not as root.
Warning
The server keeps every project, task, comment and note in one SQLite file,
/data/backlog.sqlite3. Always mount a named volume or a host directory at /data.
Without a mount, Docker puts the file in an anonymous volume. docker run --rm,
docker rm -v and docker compose down -v delete that volume, and all the data with it.
Run one container for one database. SQLite allows one writing server; two containers on the same volume corrupt or lock the data. Keep the volume on a local disk: SQLite locks are not reliable on network file systems such as NFS.
Start it with a named volume and at least one Basic account:
docker run -d --name backlog \
--restart unless-stopped \
-p 127.0.0.1:3009:3009 \
-v backlog-data:/data \
-e BACKLOG_MCP_AUTH_BASIC='alice:secret' \
ghcr.io/mosquito/backlog-mcp:latest
Open http://127.0.0.1:3009/ for the browser interface. The MCP endpoint is
http://127.0.0.1:3009/mcp.
Configure the server with the BACKLOG_MCP_* variables; see
Configuration file and environment.
BACKLOG_MCP_AUTH_BASIC takes several accounts separated by spaces. The port is published on
127.0.0.1 only. Put a reverse proxy with TLS in front of the container before you publish it
on other addresses, and give the public origin with BACKLOG_MCP_HTTP_ALLOWED_ORIGIN; see
Reverse proxy and browser origins.
To build the image from a checkout, fetch the Git LFS files first, then run
make docker-build. The result is backlog-mcp:local. See Development.
In Kubernetes¶
The repository has a Helm chart in charts/backlog-mcp. Releases publish it as
oci://ghcr.io/mosquito/charts/backlog-mcp. The chart deploys one HTTP server:
One replica with the
Recreatestrategy, because SQLite does not support several writers.A 1 GiB
ReadWriteOncevolume for/data. The volume stays when you uninstall the release.HTTP only. Terminate TLS at the ingress.
Warning
The data is one SQLite file on that volume. Keep persistence.enabled=true, which is the
default. With persistence.enabled=false, /data is an emptyDir, and the next restart or
rescheduling of the Pod deletes all the data. The chart always runs one replica, because
SQLite allows one writing server.
Choose a storage class with block or local storage. SQLite locks are not reliable on network
file systems such as NFS. To keep an existing volume, give its claim in
persistence.existingClaim; persistence.storageClass and persistence.size set a new one.
The chart needs Kubernetes 1.25 or later and Helm 3.12 or later. It does not hold credentials: create a Secret with the Basic accounts first.
kubectl create namespace backlog
kubectl -n backlog create secret generic backlog-mcp-auth \
--from-literal=BACKLOG_MCP_AUTH_BASIC='alice:secret bob:another-secret'
helm upgrade --install backlog-mcp oci://ghcr.io/mosquito/charts/backlog-mcp \
--version 0.35.0 \
--namespace backlog \
--set auth.existingSecret=backlog-mcp-auth
The chart version equals the release version. The published chart already holds the image
digest of its release; set image.digest only for your own image.
To publish the server, enable the ingress in a values file and give the public origin:
# values.yaml
auth:
existingSecret: backlog-mcp-auth
http:
allowedOrigin: https://backlog.example
ingress:
enabled: true
className: nginx
hosts:
- host: backlog.example
paths:
- path: /
pathType: Prefix
tls:
- secretName: backlog-example-tls
hosts:
- backlog.example
helm upgrade --install backlog-mcp oci://ghcr.io/mosquito/charts/backlog-mcp \
--version 0.35.0 \
--namespace backlog \
--values values.yaml
Redirect plain HTTP to HTTPS at the ingress, so that Basic credentials never travel without TLS.
The chart README in charts/backlog-mcp/README.md describes every value, storage options and
local images.
Agents and the backlog command connect to https://backlog.example/mcp?computer=<name>. See
One server for several computers.