# Self-hosting quickstart

Run Stowpot locally, verify that it accepts your credential, and connect your first MCP client. You’ll need Docker with Compose and a checkout of the Stowpot CMS source.

## 1. Start a local instance

Copy `.env.example` to `.env` and set `STOWPOT_POSTGRES_PASSWORD` to a generated password. Set `STOWPOT_PORT` if port 8080 is in use.

```sh
docker compose up --build -d
docker compose run --rm stowpot bootstrap Home
```

Save the administrator credential somewhere secure. The local service listens on `127.0.0.1:8080` by default.

## 2. Verify your connection

Set `STOWPOT_TOKEN` to your credential and list items:

```sh
curl -fsS http://127.0.0.1:8080/v1/items \
  -H "Authorization: Bearer $STOWPOT_TOKEN"
```

A fresh CMS returns an empty `items` list. Once you can list items, issue a separate read credential for your MCP client.

## 3. Connect an MCP client

Follow [REST and MCP](/docs/rest-and-mcp) for Claude Code or Codex setup. When your CMS has content, ask your client to list the items in Stowpot and summarize what it finds.

Want help from a coding agent? Use the [Install with AI](/docs/install-with-ai) prompt.
