Skip to main content
Glama
furniture-mcp-demo

furniture-mcp-demo

by Lamonkey
README.md
# furniture-mcp-demo

A small remote MCP server in TypeScript for sourcing furniture and design pieces, built on the official `@modelcontextprotocol/sdk` with stateless Streamable HTTP.

Live endpoint (no sign-in): `https://jchen42.com/demos/furniture-mcp/mcp`. In Claude, add it as a custom connector, then ask something like *"Find me a walnut credenza under 180 cm wide for under $4,000."*

The catalog is mock data: 1,120 generated pieces with placeholder images. Projects are anonymous, kept in memory, and cleared on restart.

## Tools

| Tool | What it does |
|---|---|
| `find_pieces` | Searches by category, materials, style, period, maker, dimensions (cm), price (USD), location and stock, and returns a compact ranked shortlist. Understands everyday words (credenza, buffet, "mid-century credenza", "60s", "solid walnut"). An empty result returns `nearest_misses`: which limit is binding, plus the closest pieces when two limits bind. |
| `get_piece_details` | Full specs, condition, description and image URLs for 1–5 pieces. |
| `compare_pieces` | Side-by-side comparison of 2–5 pieces. |
| `create_project` | Starts a room or client project, with an optional budget. |
| `save_to_project` | Adds, removes or swaps pieces in one call and returns the totals. |
| `project_summary` | Shows the room cost: total, remaining budget, and each piece. |

## Design choices

- **Tools match designer intents, not REST endpoints.** One search call answers a brief; details are fetched only when needed.
- **Responses are compact.** JSON is sent without indentation, dimensions are written as `144×42×73`, and summaries come first.
- **Search tools are marked `readOnlyHint`**, so clients don't ask for approval on every search.
- **Input schemas are strict.** An unknown argument returns an error instead of being silently ignored.
- **Every error says how to fix the call.**

## Run

```bash
npm ci
npm run dev        # tsx, port 3000
npm run build && npm start
```

The `Dockerfile` builds a production image.

## License

Copyright © 2026 Jianlin (Jesse) Chen. All rights reserved. The source is public so that it can be read and evaluated. It may not be copied, modified, or reused without written permission. See [LICENSE](LICENSE).