# Repository Briefing: worryzyy/HowToCook-mcp
> Source: https://repoforai.com/repo/worryzyy/HowToCook-mcp (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/worryzyy/HowToCook-mcp
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: See repository
- **Engineering Health**: C (37/100 · Maintenance 12/35 · Adoption 13/25 · Releases 6/20 · License 6/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP, CLI
- **Momentum**: 814 ★ total (+1 24h / +3 7d) · 62 forks
- **When to Use**: Best for: Households already using an MCP-compatible assistant that want to look up HowToCook recipes and plan menus for 1–10 diners without running a separate database. Skip if: You only need to read recipes, or you require verified allergy safeguards, nutrient optimization, automatic upstream sync, or a turnkey authenticated public endpoint.

## Overview
```text
### Architecture & Core Mechanics
HowToCook-mcp is a TypeScript MCP server that exposes the Anduin2017/HowToCook recipe collection to an existing assistant. The assistant invokes a tool over MCP; the Node.js process handles the recipe query or recommendation against the bundled `all_recipes.json` and returns results to the client. The project declares neither a model backend nor a separate database service. MCP is the integration boundary: the host supplies the conversation and model, while the server supplies recipe tools.

The dependency manifest includes `@modelcontextprotocol/sdk`, Commander, Express, and Zod. The package exposes a `howtocook-mcp` binary, and a source build produces the runnable `build/index.js`. The CLI defaults to stdio for client-launched processes. For network deployment, `--transport` selects HTTP or SSE and `--port` controls the listening port, which defaults to 3000.

### Key Capabilities & Differentiators
The server exposes five functions: fetch the entire catalog, filter by category, retrieve a recipe by dish name, generate a weekly meal plan, and recommend a menu for today. Category examples include seafood, breakfast, meat dishes, and staples. Named recipe lookup returns ingredient and cooking-step details, making it the better call when the user has already picked a dish.

Both recommendation tools accept `peopleCount` from 1 to 10. The weekly planner also accepts `allergies` and `avoidItems` lists, while the today-menu interface exposes only the diner count. Do not assume that exclusions passed to the weekly planner carry over to the quicker menu tool. No exact matching rules, nutrition targets, or allergy validation guarantees are established by the exposed interface.

### Trade-offs & Limitations
Compared with browsing HowToCook directly, the server adds structured tool calls and meal-planning inputs, not a different recipe corpus. That is useful when meal planning already happens in an MCP client; it adds configuration and another process when a recipe page would suffice. Bundling JSON avoids running a separate data service, but there is no established live sync mechanism. Check which recipe snapshot you are deploying and how you will refresh it if freshness matters.

Prefer category and name lookups over full-catalog fetches to limit client context growth. Treat allergy filtering as a planning aid, not a guarantee: verify ingredients, substitutions, and cross-contact separately. Compose publishes a host port without showing an authentication or TLS layer; keep it private unless you have verified and configured the necessary access controls. The project identifies MIT, but the root listing exposes no standalone license file, so confirm code and bundled-data terms before redistribution.

### Hardware & Deployment Guide
For local source use, the stated baseline is Node.js 16+ and npm or yarn. Run `npm install` and `npm run build`, then have the MCP client launch `node` with `build/index.js`, or configure it to run `npx -y howtocook-mcp`. Claude Desktop users can install the included `HowToCook-mcp.dxt` on a compatible client. Bundled recipe data removes the need to connect the tool server to a database service; package setup and any hosted model used by the client are separate network considerations.

`docker compose up --build` builds from the working tree, publishes `3000:3000`, and runs HTTP MCP at `/mcp` by default. The container probes `/health` every 30 seconds with a three-second timeout and restarts unless stopped. A hosted endpoint is also listed, but no GitHub release milestone is available to establish a release cadence. For repeatable deployments, pin the package version or source revision you have tested instead of relying on an unpinned npm invocation or the `latest` image label.
```

## Key Capabilities
```text
- Runtime: TypeScript MCP server packaged as the `howtocook-mcp` CLI, with a compiled Node.js entry point at `build/index.js`.
- Data source: Bundled `all_recipes.json` derived from Anduin2017/HowToCook; no database service is declared.
- Tool scope: Full-catalog and category queries, recipe details by dish name, a weekly plan, and a menu for today.
- Planning inputs: Weekly plans accept `allergies` and `avoidItems`; both recommendation tools accept `peopleCount` from 1 to 10.
- Transport: stdio is the CLI default; Compose defaults to HTTP at `/mcp` on port 3000, with SSE selectable.
- Packaging and operations: An npm CLI and a Claude Desktop DXT are available; Compose builds locally and probes `/health`.
```

## Quick Start / Clone
```bash
npm install
```
