Frontend work, integration tests, and demos often need a stable API before the real backend is ready or while it is down, rate-limited, or still changing. A mock server fills that gap. It listens on your machine, pretends to be the API, and returns the status, headers, and body you already defined.