NYT Cooking MCP
This server lets an AI assistant search New York Times Cooking, read full recipes, and access your personal saved recipe box.
Search recipes (
search_recipes) by natural-language query — no login needed.Fetch full recipes (
get_recipe) by numeric ID: ingredients, steps, time, servings, rating, author.Browse your saved recipe box (
list_saved_recipes), paginated — requires login.Manage authentication:
loginstores and verifies your NYT session cookie and user id server-side,logoutdeletes them, andauth_statuschecks whether credentials are configured.
Provides tools to search recipes, get full recipe details, and browse saved recipes from New York Times Cooking.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NYT Cooking MCP search for chocolate chip cookies"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NYT Cooking MCP
An MCP server that lets an AI assistant (Claude, etc.) search New York Times Cooking, fetch full recipes, and browse your saved recipe box.
NYT Cooking has no official public API, so this reads the same JSON endpoints the website itself uses. The recipe paywall is enforced client-side, so searching and reading full recipes needs no login at all — only your personal saved recipe box requires a session cookie.
Tools
Tool | Auth needed | Description |
| no | Search recipes by natural-language query. |
| no | Full recipe: ingredients, steps, time, rating. |
| yes | Your saved recipe box. |
| — | Store credentials server-side and verify them. |
| — | Delete the stored credentials. |
| — | Check whether credentials are configured. |
Related MCP server: Mealie MCP Server
Install & run
Requires Python 3.10+. With uv:
git clone https://github.com/bramboe/nyt-cooking-mcp
cd nyt-cooking-mcp
uv run nyt-cooking-mcp # stdio (default)
uv run nyt-cooking-mcp --transport streamable-http --port 3001Or with pipx / pip:
pipx install git+https://github.com/bramboe/nyt-cooking-mcp
nyt-cooking-mcpUse with Claude Desktop / Claude Code
Add to your MCP config (claude_desktop_config.json, or via claude mcp add):
{
"mcpServers": {
"nyt-cooking": {
"command": "uv",
"args": ["run", "--directory", "/path/to/nyt-cooking-mcp", "nyt-cooking-mcp"]
}
}
}Then ask: "search NYT Cooking for marry me chicken" or "get NYT recipe 1024503".
Saved recipes (optional login)
list_saved_recipes is the only tool that needs your account. NYT Cooking has
no OAuth, so credentials are harvested once from your logged-in browser and
persisted server-side (like a session token). Call the login tool with:
nyt_s_cookie— value of theNYT-Scookie oncooking.nytimes.com(DevTools → Application → Cookies).user_id— theregi_idvalue inside theregi_cookie.
login verifies the cookie with a live request and writes it to the
credentials file (--credentials-file, default
~/.config/nyt-cooking-mcp/credentials.json). Environment variables
NYT_S_COOKIE / NYT_USER_ID override the stored file. The NYT-S cookie is
long-lived; when calls start returning auth_required, run login again.
Self-hosting as an always-on service
Run it as a systemd service over streamable-HTTP so it is always available:
# /etc/systemd/system/nyt-cooking-mcp.service
[Unit]
Description=NYT Cooking MCP Server
After=network.target
[Service]
User=nyt-cooking
ExecStart=/opt/nyt-cooking-mcp/.venv/bin/nyt-cooking-mcp \
--transport streamable-http --host 0.0.0.0 --port 3001 \
--credentials-file /var/lib/nyt-cooking-mcp/credentials.json
# Permit LAN access while keeping DNS-rebinding protection on (localhost always allowed):
Environment=NYT_MCP_ALLOWED_HOSTS=your.server.ip:*
Restart=on-failure
[Install]
WantedBy=multi-user.targetThe HTTP endpoint is then http://your.server:3001/mcp. Put a reverse proxy
(TLS) and an auth token in front before exposing it beyond your trusted network.
Disclaimer
For personal use. This is an unofficial tool not affiliated with The New York Times; respect NYT Cooking's Terms of Service and use your own account.
License
MIT — see LICENSE.
Available Tools
6 toolsauth_statusA
Report whether NYT credentials (session cookie and user id) are configured.
Does not reveal the values. Useful for diagnosing auth_required errors.
Inputs: no named parameters. Returns: object
get_recipeA
Fetch full details for a single NYT Cooking recipe by its numeric id.
Args: recipe_id: The recipe id, e.g. "1019049" (from a search result or URL).
Returns name, author, time, servings, rating, description, ingredients and step-by-step instructions.
Inputs: recipe_id (required). Returns: object
list_saved_recipesA
List recipes saved in the user's NYT Cooking recipe box.
Requires a configured user id and a valid session cookie (see login).
Args: page: 1-indexed page number. per_page: Number of results per page (default 48).
Inputs: page, per_page. Returns: object
loginA
Store your NYT Cooking credentials so the server stays logged in.
NYT Cooking has no OAuth, so credentials are harvested once from your logged-in browser and persisted server-side (like a session token):
nyt_s_cookie: value of the
NYT-Scookie on cooking.nytimes.com (DevTools -> Application -> Cookies).user_id: the
regi_idvalue inside theregi_cookie(needed only for list_saved_recipes).
The credentials are written to the server's credentials file and verified with a live request before returning.
Inputs: nyt_s_cookie (required), user_id. Returns: object
logoutA
Delete the stored NYT Cooking credentials from the server.
Inputs: no named parameters. Returns: object
search_recipesA
Search NYT Cooking for recipes matching a natural-language query.
Args: query: Search terms, e.g. "chicken parmesan" or "vegetarian chili".
Returns a list of results with id, name, url and author. Use the id with get_recipe to fetch full ingredients and steps.
Inputs: query (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a distinct purpose: authentication status, login/logout, search, recipe retrieval, and saved recipes listing. No two tools perform overlapping functions.
All tools use consistent snake_case naming (e.g., search_recipes, get_recipe, list_saved_recipes), following a clear verb_noun pattern.
Six tools cover the essential operations for a recipe service (auth, search, read, list saved) without unnecessary bloat. The count is appropriate for the domain.
Core workflows are covered: login, search, get recipe, list saved recipes, and logout. However, there is no tool to save a recipe or manage the saved list (e.g., remove), which are minor gaps for a complete lifecycle.
Maintenance
Related MCP Connectors
Search, save, organize, cook, and share recipes with any AI assistant.
Recipe search, ingredient matching, nutrition filters and a private cookbook for any AI agent.
Your family recipe box inside ChatGPT and Grok. Save, scale, plan menus and share recipes.
Search structured recipes, scale servings, match pantry ingredients, and build shopping lists.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to search, read, and update recipes in Paprika Recipe Manager, allowing natural language interaction with your recipe collection including ingredients, directions, and metadata.45MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Mealie recipe databases, allowing users to manage and query their recipes through natural language conversations.MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to search for recipes, get nutritional information, find ingredients, and more through the Spoonacular Food API using natural language.643 npm6ISC
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to search recipes, compose nutritionally balanced meals, optimize weekly meal plans based on macro targets for family members, and generate consolidated grocery lists from a personal recipe database.-