Skip to main content
Glama
sisques-labs

cookidoo-mcp

by sisques-labs

cookidoo-mcp

An MCP server for Cookidoo, built with NestJS. It exposes a Cookidoo account (recipes, shopping list, subscription) to AI tools (Claude, IDEs, agents, …) as a set of MCP tools.

The Cookidoo client is a TypeScript rewrite of the Python cookidoo-api library. This first migration covers the core: authentication, account info, recipe search & details, and shopping-list management.

Architecture

The project follows the same DDD + CQRS + Hexagonal layout as gardenia-api:

src/
  core/
    config/            env validation + Cookidoo config (env-var credentials)
    mcp/               shared MCP transport (Streamable HTTP) + tool discovery
  contexts/
    cookidoo/
      domain/          types, the ICookidooClient port, exceptions
      application/     CQRS commands & queries (dispatch to the port)
      infrastructure/  CookidooHttpClient — the TS rewrite of cookidoo-api
      transport/mcp/   MCP tools + Zod input schemas
  app.module.ts
  main.ts
  • Transport: Streamable HTTP (stateless) at POST /api/mcp. GET/DELETE return 405 (no sessions). A fresh McpServer is built per request.

  • Tools live in contexts/cookidoo/transport/mcp/ and only dispatch Commands/Queries through the CQRS bus — never call the client directly.

  • The client (CookidooHttpClient) is a singleton behind the COOKIDOO_CLIENT port. It logs in lazily via the Cookidoo OAuth2 cookie flow and transparently re-authenticates on a 401.

Related MCP server: cookwith-mcp

Configuration

Credentials and localization come from environment variables (see .env.example):

Variable

Required

Default

Description

COOKIDOO_EMAIL

yes

Cookidoo account email

COOKIDOO_PASSWORD

yes

Cookidoo account password

COOKIDOO_COUNTRY_CODE

no

es

Localization country code

COOKIDOO_LANGUAGE

no

es-ES

Localization language

COOKIDOO_URL

no

https://cookidoo.es/foundation/es-ES

Localization base URL

PORT

no

3000

HTTP port

Running

Local (pnpm)

pnpm install
cp .env.example .env   # then fill in your credentials
pnpm dev               # watch mode
# or
pnpm build && pnpm prod

Docker

docker build -t cookidoo-mcp .

With an env file:

cp .env.example .env   # then fill in your credentials
docker run --rm -p 3000:3000 --env-file .env cookidoo-mcp

Or pass variables directly:

docker run --rm -p 3000:3000 \
  -e COOKIDOO_EMAIL=your@email.com \
  -e COOKIDOO_PASSWORD=your-password \
  cookidoo-mcp

Optional localization and port overrides work the same way (-e PORT=3010, -e COOKIDOO_COUNTRY_CODE=es, etc.).

If you set a custom PORT, map the same port on the host and in the container (e.g. -p 3010:3010 when PORT=3010).

The MCP endpoint is then available at http://localhost:3000/api/mcp (or your custom port).

Cursor

Cookidoo credentials live in the server .env — Cursor only needs the HTTP endpoint. The server must be running (pnpm dev or pnpm prod) before Cursor connects.

  1. Copy .cursor/mcp.json.example to .cursor/mcp.json.

  2. If you changed PORT in .env, update the URL port to match (default 3000).

  3. Restart Cursor (Settings → Tools & MCP should list cookidoo).

Authentication is handled by the NestJS process via COOKIDOO_EMAIL / COOKIDOO_PASSWORD; do not put Cookidoo credentials in mcp.json.

Tools

Tool

Kind

Description

cookidoo_get_user_info

query

Account public profile

cookidoo_get_active_subscription

query

Active subscription (or null)

cookidoo_search_recipes

query

Search the recipe catalogue with filters

cookidoo_get_recipe_details

query

Full details of a recipe by id

cookidoo_get_shopping_list_recipes

query

Recipes on the shopping list

cookidoo_get_ingredient_items

query

Ingredient items on the shopping list

cookidoo_get_additional_items

query

Free-text items on the shopping list

cookidoo_add_recipe_ingredients

command

Add recipes' ingredients to the list

cookidoo_remove_recipe_ingredients

command

Remove recipes' ingredients from the list

cookidoo_add_additional_items

command

Add free-text items to the list

cookidoo_remove_additional_items

command

Remove free-text items from the list

cookidoo_clear_shopping_list

command

Empty the shopping list

Adding a tool

  1. Add a Zod input schema under transport/mcp/schemas/.

  2. Add a Command/Query (+ handler) under application/ that dispatches to the ICookidooClient port; extend the port + CookidooHttpClient if the underlying Cookidoo endpoint isn't wired yet.

  3. Add the tool under transport/mcp/tools/, tagged with @McpTool(), and register it in the MCP_TOOLS array of cookidoo.module.ts.

Not yet migrated

The upstream library also covers custom recipes, collections (managed/custom) and the meal-planning calendar. These are intentionally left out of this first "core" migration and can be added following the steps above.

License

UNLICENSED — © Sisques Labs.

F
license - not found
-
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
20Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sisques-labs/cookidoo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server