Skip to main content
Glama
LaundryConnect MCP

LaundryConnect MCP

by jerryj6
README.md
# LaundryConnect MCP

Connect [LaundryConnect Live](https://laundryconnectlive.com) to an AI assistant through the Model Context Protocol.

[![CI](https://github.com/jerryj6/laundryconnect-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/jerryj6/laundryconnect-mcp/actions/workflows/ci.yml)
[![Release](https://img.shields.io/github/v/release/jerryj6/laundryconnect-mcp)](https://github.com/jerryj6/laundryconnect-mcp/releases/latest)
![Node.js 22+](https://img.shields.io/badge/Node.js-22%2B-417E38)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

Find schools and laundry rooms, check each washer and dryer, and compare rooms. Six read-only tools work over stdio or authenticated Streamable HTTP.

```text
Your MCP client → LaundryConnect MCP → LaundryConnect Live
```

## Run locally

You need **Node.js 22 or newer** and npm.

```sh
git clone https://github.com/jerryj6/laundryconnect-mcp.git
cd laundryconnect-mcp
npm ci --ignore-scripts
```

Add this to your MCP client's `mcpServers` configuration, replacing the path:

```json
{
  "mcpServers": {
    "laundry": {
      "command": "node",
      "args": ["/absolute/path/to/laundryconnect-mcp/src/index.js"]
    }
  }
}
```

Restart the client and ask: **“Which washers are available in Sycamore at UMass?”** Configuration location varies by client. For terminal use, `npm start` starts the stdio protocol server; it waits for an MCP client and is not an interactive prompt. See the [example configuration](examples/stdio.json).

## Deploy your own server

[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https%3A%2F%2Fgithub.com%2Fjerryj6%2Flaundryconnect-mcp)

The blueprint creates a service in your Render account and generates an `MCP_AUTH_TOKEN`. Copy the token from the service environment settings and connect an MCP client that supports custom headers:

| Setting   | Value                                       |
| --------- | ------------------------------------------- |
| Transport | Streamable HTTP                             |
| URL       | `https://YOUR-SERVICE.onrender.com/mcp`     |
| Header    | `Authorization: Bearer YOUR_MCP_AUTH_TOKEN` |

Prefer self-hosting? Use [Docker Compose or the HTTP deployment guide](docs/deployment.md). No database is required. The Render blueprint uses manual deployments.

## Available tools

| Tool                 | Purpose                                               |
| -------------------- | ----------------------------------------------------- |
| `list_schools`       | Search the directory of known schools                 |
| `list_halls`         | Find a school's laundry rooms by name or ID           |
| `get_room_details`   | Address and timezone for a room                       |
| `get_room_status`    | All machines, reported states, timestamps, and counts |
| `get_machine_status` | One machine's reported state                          |
| `compare_rooms`      | Compare counts and freshness for up to five rooms     |

See [tool inputs, examples, and interpretation](docs/tools.md). The 54-school directory is a snapshot and may be incomplete. Status comes from the upstream service and can be stale; a completed cycle does not mean a machine is empty. The server provides current counts, not historical predictions.

School endpoints may require an access code. Configure your own code in `LAUNDRY_SCHOOL_CODES` when needed; see [school access](docs/deployment.md#school-access). A [legacy code list](school-access-codes.txt) is included for reference, may be outdated, and is **not loaded automatically**.

## Troubleshooting

- **School or room not found:** try a partial name with `list_schools` or `list_halls`. New schools may be absent from the bundled directory.
- **School access required:** configure `LAUNDRY_SCHOOL_CODES` as described in the deployment guide.
- **HTTP 401:** send your deployment's bearer token with each MCP request.
- **HTTP 403:** configure your browser client's exact origin in `MCP_ALLOWED_ORIGINS`.
- **Missing or old states:** check `receivedAt` and `fetchedAt`. A successful request does not guarantee a current sensor report.
- **Cold start or upstream errors:** retry after the host wakes. `/health` tests the server process, not LaundryConnect.

## Develop and contribute

```sh
npm ci --ignore-scripts
npm run check
```

Checks use mocked upstream responses and transport tests. See [development](docs/development.md), [contributing](CONTRIBUTING.md), and [release notes](CHANGELOG.md).

## License

[MIT](LICENSE). Unofficial integration; not affiliated with LaundryConnect or the schools.

TDQS

A3.7/5.0

Scored across 6 tools

Disambiguation5/5

Each tool has a distinct resource and action: school/hall discovery, room metadata, room status, single-machine status, and cross-room comparison. The only apparent overlap is get_room_status vs compare_rooms, but one targets a single room while the other aggregates 2-5 rooms, so boundaries remain clear.

Naming Consistency5/5

All names follow a consistent snake_case verb_noun pattern: list_schools, list_halls, get_room_details, get_room_status, get_machine_status, compare_rooms. The convention is predictable throughout.

Tool Count5/5

Six tools is well-scoped for a read-only laundry availability service. Each tool covers a clear level of the hierarchy: school, hall/room discovery, room metadata, room status, machine status, and comparison.

Completeness5/5

The tool surface covers the natural read-only workflow from finding schools and halls to retrieving room details, room status, machine status, and comparing rooms. There are no obvious dead ends for the stated laundry-status purpose.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues