Skip to main content
Glama
Cookidoo-MCP

Cookidoo-MCP

by Nagell
README.md
<a id="readme-top"></a>

<!-- PROJECT SHIELDS -->
[![MIT][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]

<!-- PROJECT LOGO -->
<br />
<div align="center">
  <a href="https://github.com/Nagell/cookidoo-mcp">
    <img src="/assets/icon.svg" alt="Logo" width="80" height="80">
  </a>

  <h3 align="center">Cookidoo-MCP</h3>

  <p align="center">
    Unofficial, self-hosted MCP server that lets Claude write Thermomix TM7 recipes into your own Cookidoo account
    <br />
    <br />
    <a href="https://github.com/Nagell/cookidoo-mcp/issues/new?labels=bug">Report Bug</a>
    ·
    <a href="https://github.com/Nagell/cookidoo-mcp/issues/new?labels=enhancement">Request Feature</a>
  </p>
</div>

<!-- TABLE OF CONTENTS -->
<details>
  <summary>Table of Contents</summary>
  <ol>
    <li>
      <a href="#about-the-project">About The Project</a>
      <ul>
        <li><a href="#tools">Tools</a></li>
        <li><a href="#built-with">Built With</a></li>
      </ul>
    </li>
    <li>
      <a href="#getting-started">Getting Started</a>
      <ul>
        <li><a href="#prerequisites">Prerequisites</a></li>
        <li><a href="#hosting">Hosting</a></li>
        <li><a href="#google-oauth-client">Google OAuth client</a></li>
        <li><a href="#adding-the-connector-in-claude">Adding the connector in Claude</a></li>
      </ul>
    </li>
    <li><a href="#security-model">Security model</a></li>
    <li><a href="#limitations">Limitations</a></li>
    <li><a href="#roadmap">Roadmap</a></li>
    <li><a href="#disclaimer">Disclaimer</a></li>
    <li><a href="#license">License</a></li>
    <li><a href="#contact">Contact</a></li>
    <li><a href="#acknowledgments">Acknowledgments</a></li>
  </ol>
</details>

<!-- ABOUT THE PROJECT -->
## About The Project

Cookidoo has no public API and typing a recipe into the editor step by step on a phone is miserable. This server gives Claude (Desktop, claude.ai web and the mobile app) a handful of tools to create "Created Recipes" in your own Cookidoo account, including the guided-cooking part: time, temperature and speed (plus reverse and soft) as tappable settings, and ingredients as weighable chips.

It runs on Vercel, so it works from the phone with your computer off. Verified end to end, on a real TM7 too.

Claude writes the step text. The server attaches the settings and chips, computes the positions, fills in the Thermomix symbols (U+E003 reverse, U+E002 soft) from readable words like "Linkslauf"/"reverse" or "Stufe soft", and validates values the way the Cookidoo editor does. If something looks off it hands back warnings instead of silently saving a broken step: label and values that disagree, a label that says reverse or soft without the flag set, or more than one cooking action in a single step.

```text
Claude (Desktop / web / mobile)
   |  MCP over Streamable HTTP, OAuth 2.1 + PKCE
   v
Vercel function (Hono, fra1)  --- Google sign-in + email allowlist
   |  validates, builds annotations, rate limits
   |  app-style OAuth + PKCE, token cached in memory
   v
Cookidoo (Vorwerk CIAM + recipe endpoints)
```

### Tools

| Tool            | What it does                                                                                         |
| --------------- | ---------------------------------------------------------------------------------------------------- |
| `create_recipe` | Creates a recipe with ingredients, steps, settings, yield and hints                                  |
| `update_recipe` | Updates ingredients and steps together, or tools/times/yield/hints alone. No renaming                |
| `get_recipe`    | Returns a recipe with its steps as editable parts                                                    |
| `list_recipes`  | Lists your Created Recipes                                                                           |

There is no delete tool, on purpose. Yield units: bottle, cup, glass, gram, jar, litre, ounce, portion, piece, slice.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

### Built With

- [![TypeScript][TypeScript]][TypeScript-url]
- [![Hono][Hono]][Hono-url]
- [![MCP][MCP]][MCP-url]
- [![Zod][Zod]][Zod-url]
- [![Vitest][Vitest]][Vitest-url]
- [![Vercel][Vercel]][Vercel-url]

Plus [jose](https://github.com/panva/jose) for the tokens. Source lives in `src/` (`app.ts`, `oauth.ts`, `google.ts`, `crypto.ts`, `config.ts`, `cookidoo.ts`, `recipe-builder.ts`, `tools.ts`, `mcp.ts`), the Vercel entry point is `api/index.ts`, tests are in `test/`. Only `public/` is served statically.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- GETTING STARTED -->
## Getting Started

### Prerequisites

- [Node.js](https://nodejs.org/en/) 22 or newer
- pnpm

  ```sh
  npm install pnpm -g
  ```

- A [Vercel](https://vercel.com/) account (the free Hobby plan is enough for personal use)
- A Google account for the sign-in
- A Cookidoo account. More than 10 Created Recipes needs an active Cookidoo subscription

### Hosting

The whole setup is one block, no clicking through the Vercel dashboard. Run the commands one by one and replace the placeholders. The variables are documented in `.env.example`.

```bash
# Clone the repository
git clone https://github.com/Nagell/cookidoo-mcp.git
cd cookidoo-mcp

# Install dependencies
pnpm install

# Log in to Vercel (opens the browser once)
pnpm dlx vercel login

# Create the project and link this folder to it
pnpm dlx vercel link --yes --project cookidoo-mcp

# Replace every <...> placeholder below before running the line.
# The project URL is https://<project>.vercel.app (shown by `vercel link`).
# Create the Google OAuth client now (see "Google OAuth client" below); it needs this URL.

# Public URL of the deployment, no trailing slash
pnpm dlx vercel env add PUBLIC_BASE_URL --environment production --value "https://<project>.vercel.app" --yes

# Your Cookidoo account. For the password, Vercel asks for the value
# (or set it in the dashboard instead: Project → Settings → Environment Variables)
pnpm dlx vercel env add COOKIDOO_EMAIL --environment production --value "<you@example.com>" --yes
pnpm dlx vercel env add COOKIDOO_PASSWORD --environment production

# Cookidoo market and language
pnpm dlx vercel env add COOKIDOO_COUNTRY --environment production --value "de" --yes
pnpm dlx vercel env add COOKIDOO_LOCALE --environment production --value "de-DE" --yes

# Google OAuth client. For the secret, Vercel asks for the value (or use the dashboard, as above)
pnpm dlx vercel env add GOOGLE_CLIENT_ID --environment production --value "<client-id>.apps.googleusercontent.com" --yes
pnpm dlx vercel env add GOOGLE_CLIENT_SECRET --environment production

# Google accounts allowed to connect, comma-separated
pnpm dlx vercel env add ALLOWED_EMAILS --environment production --value "<you@gmail.com>,<partner@gmail.com>" --yes

# The server's own key for the tokens it issues. Generated and piped straight in,
# so it never touches your disk. Unrelated to Google.
openssl rand -base64 32 | tr -d '\n' | pnpm dlx vercel env add AUTH_SECRET --environment production

# Deploy. Env changes only take effect after a new deploy, so run this again after every change
pnpm dlx vercel deploy --prod
```

For deploys on every merge, connect the repo once in Vercel (Project → Settings → Git); every PR then also gets a preview. CI (`.github/workflows/ci.yml`) runs typecheck and tests on each PR, and a branch ruleset on `main` that requires the `typecheck-and-test` check keeps failing code out.

The Google client needs the final URL, so the order in practice is: link the project, set `PUBLIC_BASE_URL`, create the Google client below, set the rest, deploy.

### Google OAuth client

This part cannot be scripted, and the Cloud Console is confusing, so here are the direct links. No API needs enabling.

1. [Auth overview](https://console.cloud.google.com/auth/overview): Get started, pick an app name, choose External.
2. [Audience](https://console.cloud.google.com/auth/audience): add yourself as a test user.
3. [Clients](https://console.cloud.google.com/auth/clients): Create client, type Web application, redirect URI `<PUBLIC_BASE_URL>/google/callback`. Leave "Use this client for an AI-powered agent" unticked.

Copy the client ID and secret into `GOOGLE_CLIENT_ID` and `GOOGLE_CLIENT_SECRET`.

### Adding the connector in Claude

1. Settings, Connectors, Add custom connector.
2. URL: `<PUBLIC_BASE_URL>/mcp`. Leave the OAuth fields empty.
3. Connect and sign in with Google. An "unverified app" warning is normal in testing mode.

Then try one of these:

```text
Create a Cookidoo recipe for a simple tomato soup. Use the TM7 guided cooking:
sauté the onions for 3 min at 120 °C on speed 1, then cook 20 min at 100 °C
on speed 2 and blend until smooth. Serves 4.
```

```text
Find me the best recipe for shakshuka for 2 people and convert it for the TM7,
with guided-cooking settings for every step. Put the source link in the tips
and save it to Cookidoo.
```

The second one needs web search turned on in Claude. Claude finds and converts the recipe; the server only saves what Claude sends.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- SECURITY -->
## Security model

- Only emails in `ALLOWED_EMAILS` can connect. Everyone else gets through Google and stops at the server.
- No delete tool, so the worst a confused model can do is add or edit recipes.
- Stateless: no database. OAuth 2.1 with dynamic client registration and PKCE (S256), tokens are signed with `AUTH_SECRET`.
- Rotating `AUTH_SECRET` invalidates every client ID and token and signs everyone out.
- No secrets in logs.
- Rate limit: 20 tool calls per 10 minutes per user.
- The Cookidoo login uses the app-style flow (authorization code + PKCE against Vorwerk's CIAM, client `mobile-android`) with your email and password from the env vars. The token is cached in memory only.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- LIMITATIONS -->
## Limitations

- The Cookidoo login sits behind Cloudflare and needs a browser User-Agent. If Vorwerk changes that, login breaks first. This is the known weak spot.
- Validation mirrors the Cookidoo editor: temperatures 37, 40-120 in 5° steps and 98, speeds soft and 0.5-10, and above speed 6 not allowed with heat.
- German labels are the documented convention.
- Not supported yet: modes (Teig kneten, Turbo, Anbraten, Dampfgaren, Pürieren, Erwärmen, Reis kochen), Varoma, recipe images, free ingredient-chip text and deleting recipes (see the roadmap).
- Recipes can't be renamed through the server; do that on cookidoo.de.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- ROADMAP -->
## Roadmap

Plans and specs live in [`openspec/`](openspec/), including everything found out about the unofficial Cookidoo API (login flow, annotation formats, editor value ranges) in the `references.md` of the first change (under [`openspec/changes/`](openspec/changes/), moved to `archive/` once a change is done).

- [x] Create and update recipes with guided-cooking settings
- [x] Weighable ingredient chips
- [x] Thermomix symbols from readable words
- [x] Warnings for mismatching labels and values
- [x] Google sign-in with email allowlist
- [x] Verify on a real TM7
- [ ] Modes (Teig kneten, Turbo, Anbraten, Dampfgaren, Pürieren, Erwärmen, Reis kochen)
- [ ] Varoma
- [ ] Recipe image, cropped to a square
- [ ] Image search with open licenses, credit added to the tips
- [ ] Free ingredient-chip text
- [ ] Delete a recipe, only with its exact name as confirmation
- [ ] English labels

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- DISCLAIMER -->
## Disclaimer

Unofficial and not affiliated with, endorsed by or connected to Vorwerk, Thermomix or Cookidoo. It talks to Cookidoo the way the mobile app does, for personal use with your own account. It may break at any time, and whatever your subscription terms say about automated access is on you.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- LICENSE -->
## License

Distributed under the MIT License. See `LICENSE` for more information.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- CONTACT -->
## Contact

Dawid Nitka - [Linkedin][linkedin-url]

Project Link: [https://github.com/Nagell/cookidoo-mcp](https://github.com/Nagell/cookidoo-mcp)

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- ACKNOWLEDGMENTS -->
## Acknowledgments

- [miaucl/cookidoo-api](https://github.com/miaucl/cookidoo-api) (MIT) for the login flow and endpoints
- [@recode-software/cookidoo-api](https://github.com/recode-software/cookidoo-api) (MIT) for the annotation formats
- [Best-README-Template](https://github.com/othneildrew/Best-README-Template)

<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- MARKDOWN LINKS & IMAGES -->
[license-shield]: https://img.shields.io/badge/License-MIT-lightgrey.svg?style=for-the-badge
[license-url]: ./LICENSE
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://www.linkedin.com/in/dawidnitka

[TypeScript]: https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white
[TypeScript-url]: https://www.typescriptlang.org/
[Hono]: https://img.shields.io/badge/Hono-E36002?style=for-the-badge&logo=hono&logoColor=white
[Hono-url]: https://hono.dev/
[MCP]: https://img.shields.io/badge/MCP-000000?style=for-the-badge&logo=modelcontextprotocol&logoColor=white
[MCP-url]: https://modelcontextprotocol.io/
[Zod]: https://img.shields.io/badge/Zod-3E67B1?style=for-the-badge&logo=zod&logoColor=white
[Zod-url]: https://zod.dev/
[Vitest]: https://img.shields.io/badge/Vitest-6E9F18?style=for-the-badge&logo=vitest&logoColor=white
[Vitest-url]: https://vitest.dev/
[Vercel]: https://img.shields.io/badge/Vercel-000000?style=for-the-badge&logo=vercel&logoColor=white
[Vercel-url]: https://vercel.com/