Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

MCP server enabling AI assistants to manage recipes and ingredients in the WeekPlan app via its REST API.

README.md

WeekPlan MCP Server

An MCP (Model Context Protocol) server that gives AI assistants like Claude the ability to manage recipes and ingredients in your WeekPlan app via its REST API. See WeekPlan for the main app. See WeekPlan Watch for an Apple Watch companion app.

What It Does

Once connected, Claude can:

  • List, add, and delete ingredients (name + unit)
  • List, add, and delete recipes (name, ingredients with quantities, and step-by-step instructions)
  • Automatically create missing ingredients when adding a recipe

---

Prerequisites

  • Node.js 18+Download here
  • A running WeekPlan API server (defaults to http://localhost:3000)

---

Installation

Option 1 — Clone and build (recommended for local development)

git clone <your-repo-url> weekplan-mcp-server
cd weekplan-mcp-server
npm install
npm run build

The compiled server will be at dist/index.js.

Option 2 — Install globally from npm (once published)

npm install -g weekplan-mcp-server

This makes the weekplan-mcp-server command available system-wide.

---

Configuration

The server is configured via a single environment variable:

| Variable | Default | Description | |---|---|---| | WEEKPLAN_URL | http://localhost:3000 | Base URL of your WeekPlan REST API |

---

Adding to Claude Code

Run the following command to register the server with Claude Code:

claude mcp add weekplan-mcp-server -e WEEKPLAN_URL=http://localhost:3000 -- node /absolute/path/to/weekplan-mcp-server/dist/index.js

Replace /absolute/path/to/weekplan-mcp-server with the actual path where you cloned the repo.

Or edit ~/.claude.json to add it to a specific project.

Or edit claude_desktop_config.json directly (see the Claude Desktop section below — the format is the same).

---

Adding to Claude Desktop

Edit your Claude Desktop config file:

  • macOS: ~/Library/'Application Support'/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Add the server under mcpServers:

{
  "mcpServers": {
    "weekplan": {
      "command": "node",
      "args": ["/absolute/path/to/weekplan-mcp-server/dist/index.js"],
      "env": {
        "WEEKPLAN_URL": "http://localhost:3000"
      }
    }
  }
}

Restart Claude Desktop after saving the file.

---

Adding to Cursor

Open Cursor settings and navigate to Features → MCP Servers, then add:

{
  "weekplan": {
    "command": "node",
    "args": ["/absolute/path/to/weekplan-mcp-server/dist/index.js"],
    "env": {
      "WEEKPLAN_URL": "http://localhost:3000"
    }
  }
}

---

Adding to VS Code (Copilot / MCP extension)

In your .vscode/mcp.json or user settings:

{
  "servers": {
    "weekplan": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/weekplan-mcp-server/dist/index.js"],
      "env": {
        "WEEKPLAN_URL": "http://localhost:3000"
      }
    }
  }
}

---

Available Tools

Ingredients

| Tool | Description | Parameters | |---|---|---| | weekplan_list_ingredients | List all ingredients | _(none)_ | | weekplan_add_ingredient | Add or update an ingredient | name (string), unit (string) | | weekplan_delete_ingredient | Delete an ingredient | id (string) |

Recipes

| Tool | Description | Parameters | |---|---|---| | weekplan_list_recipes | List all recipes | _(none)_ | | weekplan_add_recipe | Add or update a recipe | name (string), ingredients (array), steps (array of strings) | | weekplan_delete_recipe | Delete a recipe | id (string) |

The ingredients array in weekplan_add_recipe accepts objects with:

  • ingredientName — name of the ingredient (created automatically if missing)
  • quantity — numeric amount
  • unit — unit of measurement (e.g. "g", "ml", "tbsp")

IDs are generated automatically from names (e.g. "Olive Oil""olive-oil"), so add operations are idempotent — running them twice won't create duplicates.

---

Example Prompts

Once the server is connected, try asking Claude:

Add a recipe for spaghetti bolognese with ingredients and steps.
List all my ingredients.
Add 500g of chicken breast as an ingredient.
Delete the recipe for lasagne.

---

Development

# Run directly from TypeScript (no build step needed)
npm run dev

# Build to dist/
npm run build

# Run the compiled server
npm start

The server communicates over stdio, so it has no open ports and is safe to run as a subprocess managed by your AI client.

---

Project Structure

src/
├── index.ts          # Entry point — connects stdio transport
├── server.ts         # Registers all tools with the MCP server
├── api-client.ts     # HTTP client for the WeekPlan REST API
├── slugify.ts        # Converts names to stable IDs
└── tools/
    ├── ingredients.ts # Ingredient tool handlers
    └── recipes.ts     # Recipe tool handlers

---

Troubleshooting

"Cannot connect to WeekPlan API" Make sure your WeekPlan server is running and WEEKPLAN_URL points to the correct address.

"command not found: node" Node.js is not installed or not on your PATH. Install it from nodejs.org.

Tools don't appear in Claude

  • Confirm the path in your config points to dist/index.js (not src/index.ts)
  • Make sure you ran npm run build after cloning
  • Restart your AI client after changing the config

Build errors Run npm install first to ensure all dependencies are present, then npm run build.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use AI & ML servers.