Skip to main content
Glama
paintbid-mcp

paintbid-mcp

README.md
# paintbid-mcp

Painting estimate math as an MCP server: how many gallons (or litres) of paint a room, an accent wall or a house
exterior needs after doors and windows, with coats, coverage and waste; whether to buy 5-gallon pails or gallon
cans; labor hours from painting production rates; and a painting bid with overhead and profit as margins. Four
read-only tools, no sign-in, nothing stored.

It is the calculator of the **[PaintBid](https://zhukovskyi.space/apps/paintbid/)** painting estimator app by
Dre Dev, ported from Dart to Python and checked against the app's own test values.

- App: [Google Play](https://play.google.com/store/apps/details?id=com.andrii.paintbid) ·
  [zhukovskyi.space/apps/paintbid](https://zhukovskyi.space/apps/paintbid/)
- Server: `https://mcp.zhukovskyi.space/paintbid/mcp` (streamable HTTP)

## Tools

| Tool | Gives |
|---|---|
| `calculate_paint_gallons` | Wall, ceiling (or soffit) and trim area per room, wall or exterior, paint per surface and per product with waste, and the pails and cans that hold it with the least left over |
| `estimate_painting_job` | A whole job: paint to buy and its cost, labor hours by production rate, prep, sundries, crew days, direct cost, overhead, profit, the bid, each room's price, optional add-ons, cabinets per door and drawer, price per ft² of floor and earnings per painter-hour |
| `plan_paint_purchase` | The cheapest mix of 5 gal pails and 1 gal cans (or 10 L and 2.5 L) for an amount of paint |
| `price_painting_bid` | The price from material, labor and extra costs with overhead and profit as margins, the equivalent markup, rounding up to a step |

Imperial (ft, ft², US gallons) or metric (m, m², litres). Rooms, single walls, house exteriors by perimeter and
stories, identical rooms at once (`qty`), primer coats, baseboard, crown, fascia, door and window casing. All tools:
`readOnlyHint: true`, `destructiveHint: false`, `openWorldHint: false`.

## Connect

**Claude (claude.ai, Desktop), ChatGPT (developer mode), Cursor, VS Code** — add a remote MCP server with the URL
`https://mcp.zhukovskyi.space/paintbid/mcp`, no authentication.

**Local (stdio):**

```bash
git clone https://github.com/andronaft/paintbid-mcp && cd paintbid-mcp
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
```

```json
{ "mcpServers": { "paintbid": { "command": "/path/to/paintbid-mcp/.venv/bin/python",
                                "args": ["/path/to/paintbid-mcp/server.py", "--stdio"] } } }
```

Ask, for example: *"How many gallons to paint a 12 × 15 ft bedroom with 8 ft ceilings, two coats on the walls, one
door and two windows?"* or *"Price repainting three bedrooms and a hallway: my painters cost $35 an hour, I want 15 %
overhead and 20 % profit."*

## Method

- Walls = perimeter × height − doors (21 ft², 3 × 7 ft) − windows (12 ft², 3 × 4 ft) − other openings; ceiling =
  floor area. Exterior walls = perimeter × story height × stories; soffits = perimeter × eave depth (1.5 ft).
- Trim: baseboard (perimeter less 3 ft per door), crown, fascia, door casing 17 lf a side, window casing 14 lf, each
  linear foot ≈ 0.5 ft² of paint; door slabs 21 ft² each.
- Paint = area × coats ÷ coverage per coat × (1 + waste, 10 %). Default coverage: walls, ceiling and trim
  350 ft²/gal (8.6 m²/L), primer 300, exterior acrylic 250, the low end of published data-sheet ranges
  (Sherwin-Williams ProMar 200, Benjamin Moore Ultra Spec 500, Sherwin-Williams Duration Exterior).
- Hours per coat: walls 170 ft²/h, ceilings 120 ft²/h, trim 50 lf/h, door 0.75 h a side, window 0.25 h (PaintScout's
  published two-coat rates halved), exterior walls 75 ft²/h, plus 1 h of prep per room.
- Bid = (paint + 15 % sundries + hours × labor cost + extras) ÷ (1 − (overhead + profit)), margin capped at 90 %;
  cabinets are added at their price per door ($100) and drawer front ($50). Labor cost default $32/h: the BLS median
  painter wage plus about 35 % payroll costs.
- Checked against: the 12 × 15 × 8 ft bedroom (399 ft² of wall, 180 ft² of ceiling, 51 lf of baseboard); the
  PaintScout bedroom (432/85 + 180/60 + 54/25 + 1 + 1.5 h); the Housecall Pro worked example (307 ft²); pails vs cans
  (1 pail + 3 cans = $354 for 7.4 gal); costs adding up to the bid; margins over 90 %; rounding up to $50 with optional
  add-ons. See `tests/test_server.py`.
- Not ported: Good / Better / Best paint grades, crew pace from past jobs, sales tax, change orders and payment
  schedules. The PaintBid app has them.

These are estimates from the inputs and typical defaults: check coverage on the product's data sheet, time your own
crew, and use your supplier's prices before quoting.

## Run and test

```bash
pip install -r requirements.txt
python server.py                  # http://127.0.0.1:8000/mcp
python server.py --stdio
python -m unittest discover tests   # 15 tests
```

Hosted with the other Dre Dev MCP servers in one process; `build_app()` is mounted at `/paintbid`.

## Licence

MIT for the code. Defaults and their sources: PaintBid's `docs/SOURCES.md`. Made by Andrii Zhukovskyi
([Dre Dev](https://zhukovskyi.space/)).