dineoncampus-mcp
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., "@dineoncampus-mcp Plan a high-protein vegetarian lunch from today's menu"
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.
dineoncampus-mcp
An MCP server that gives Claude, or any other MCP client, your campus dining hall's menus from DineOnCampus. Each item comes with its portion size, calories, macros, micronutrients, ingredients and diet/allergen tags. The server also returns the hall's opening hours.
It's built for asking an AI to plan your meals around what the dining hall is actually serving today, without copying menus into the chat by hand:
"Plan lunch and dinner from today's menu: about 160 g of protein, nothing with pork, and keep sodium reasonable."
"What's the highest-protein vegan option at dinner tomorrow?"
"Add up 2 scrambled eggs, a cup of chicken tikka masala and basmati rice."
"Is the dining hall open on Thursday?"
Any school on DineOnCampus works. This is an unofficial project and is not affiliated with DineOnCampus or any university.
Tools
Tool | What it returns |
| The meals served on a date (e.g. Breakfast, Lunch, Dinner), each with its item count and stations, plus the opening hours |
| A meal's full menu grouped by station: portion, description, ingredients, tags and every published nutrient. |
| Items filtered by text, diet tags, excluded ingredients, minimum protein, or maximum calories, carbs or fat, optionally sorted by any nutrient |
| One item's full nutrition label |
| Totals for a plate (with servings): every nutrient plus the protein/carb/fat calorie split |
| The diet and allergen tags used on that day's menu, with counts |
Dates can be YYYY-MM-DD, today, tomorrow or a weekday name. They are resolved in the dining
hall's timezone. Nutrient keys include their unit (protein_g, sodium_mg, vitamin_d_iu), and all
values are per listed portion.
Related MCP server: mfp-mcp
Quick start: run it on your own computer
You need uv. uv installs a suitable Python (3.11 or newer) for you.
1. Find your dining hall.
$ uvx --from git+https://github.com/Pixel2075/dineoncampus-mcp dineoncampus-mcp find "new jersey institute"
New Jersey Institute of Technology
DINING_SITE_ID=5c86b28a8e45bf0ccb9ec92b
Highlander Commons DINING_LOCATION_ID=615f4f93a9f13a32678e5feb [webtrition] Campus Center
Faculty Dining DINING_LOCATION_ID=6399e7a5c625af06bc115d04 [webtrition] Campus Center
...Check that a location publishes daily menus:
$ uvx --from git+https://github.com/Pixel2075/dineoncampus-mcp dineoncampus-mcp fetch \
--location-id 615f4f93a9f13a32678e5feb --site-id 5c86b28a8e45bf0ccb9ec92b --summary
2026-11-24 Highlander Commons hours: {'open': True, 'hours': ['7:00am-10:00pm']}
Breakfast: 69 items across 13 stations
Lunch: 188 items across 21 stations
Dinner: 184 items across 21 stations2. Add it to your client. The DINING_SITE_ID is optional and turns on opening hours. Set
DINING_TZ if your campus isn't in US Eastern time.
Claude Code:
claude mcp add dining \
-e DINING_LOCATION_ID=615f4f93a9f13a32678e5feb \
-e DINING_SITE_ID=5c86b28a8e45bf0ccb9ec92b \
-e DINING_TZ=America/New_York \
-- uvx --from git+https://github.com/Pixel2075/dineoncampus-mcp dineoncampus-mcpClaude Desktop: add this to claude_desktop_config.json (Settings → Developer → Edit Config), then restart the app:
{
"mcpServers": {
"dining": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Pixel2075/dineoncampus-mcp", "dineoncampus-mcp"],
"env": {
"DINING_LOCATION_ID": "615f4f93a9f13a32678e5feb",
"DINING_SITE_ID": "5c86b28a8e45bf0ccb9ec92b",
"DINING_TZ": "America/New_York"
}
}
}
}If Claude Desktop can't find uvx, replace it with the full path (which uvx on macOS/Linux,
where uvx on Windows).
In this mode the server fetches menus directly from DineOnCampus whenever a tool is called and caches them for 30 minutes. That works from a home or campus connection. It does not work from a cloud server; see below.
Hosting it for claude.ai and your phone
A local server only exists while your computer runs the client. To use the menus from claude.ai or the mobile apps, you need a public HTTPS server. That raises one problem:
DineOnCampus blocks cloud IPs. Cloudflare in front of its API returns 403 Forbidden to
requests from AWS and other datacenters, even when the same request works from home. Don't try to
get around the block. This project avoids it instead: your home machine fetches the menus and
pushes them to the server, and the server only serves what it was given.
home PC ── dineoncampus-mcp sync (4x a day) ──► POST /ingest ┐
│ server (snapshot mode)
Claude ─────────────── MCP over HTTPS ──────────► /mcp ──────┘Each sync fetches today plus the next 7 days (about 3 requests per day, spaced 1 second apart) and pushes one snapshot per date. If your PC is off for a while, the server keeps serving the days it already has. When asked for a date it has no snapshot for, it says so and lists the dates it does have.
1. Server (Ubuntu 24.04+, e.g. an EC2 instance)
Open inbound TCP 80 and 443 (on AWS: the instance's security group), then run:
curl -fsSL https://raw.githubusercontent.com/Pixel2075/dineoncampus-mcp/main/deploy/install-server.sh \
| sudo bash -s -- --location-id 615f4f93a9f13a32678e5feb --tz America/New_YorkThe script installs the server as a systemd service and puts Caddy in
front of it with a Let's Encrypt certificate. If you don't pass --domain, it uses
<public-ip>.sslip.io, a free hostname that resolves to your IP with no DNS setup. At the end it
prints:
MCP URL (add this to Claude): https://3-145-27-189.sslip.io/mcp
Ingest token: 6f1c...Re-run the script any time to upgrade; it keeps the same token. On AWS, attach an Elastic IP
before you share the URL. Otherwise a stop and start gives the instance a new IP and the
sslip.io URL changes.
2. Home machine: schedule the sync
Windows (from a clone of this repo, in PowerShell):
.\deploy\windows-sync-task.ps1 -Server https://3-145-27-189.sslip.io -Token <ingest token> `
-LocationId 615f4f93a9f13a32678e5feb -SiteId 5c86b28a8e45bf0ccb9ec92b -Tz America/New_YorkThis installs the tool with uv, saves the settings to %APPDATA%\dineoncampus-mcp\sync.json (only
your account can read it), and registers a Task Scheduler task called "DineOnCampus MCP Sync". The
task runs at 6:00, 11:00, 16:00 and 21:00, and catches up after the PC was off. Its log is
%APPDATA%\dineoncampus-mcp\sync.log.
macOS / Linux:
uv tool install git+https://github.com/Pixel2075/dineoncampus-mcp
mkdir -p ~/.config/dineoncampus-mcp && chmod 700 ~/.config/dineoncampus-mcp
cat > ~/.config/dineoncampus-mcp/sync.json <<'EOF'
{"server": "https://3-145-27-189.sslip.io", "token": "<ingest token>",
"location_id": "615f4f93a9f13a32678e5feb", "site_id": "5c86b28a8e45bf0ccb9ec92b",
"tz": "America/New_York", "days": 7}
EOF
chmod 600 ~/.config/dineoncampus-mcp/sync.json
dineoncampus-mcp sync --config ~/.config/dineoncampus-mcp/sync.json # try it once
( crontab -l 2>/dev/null; echo "0 6,11,16,21 * * * $HOME/.local/bin/dineoncampus-mcp sync --config $HOME/.config/dineoncampus-mcp/sync.json --log $HOME/.config/dineoncampus-mcp/sync.log" ) | crontab -3. Add the connector
claude.ai / Claude Desktop / mobile: Settings → Connectors → Add custom connector, then paste the MCP URL.
Claude Code:
claude mcp add --transport http dining https://3-145-27-189.sslip.io/mcp
https://<host>/health shows how many dates the server holds and the latest one.
Configuration
Every option can also be set as a command-line flag (dineoncampus-mcp serve --help).
Variable | Default | Used by | Meaning |
| (required) | serve, fetch, sync | DineOnCampus location id, from |
| (none) | serve, fetch, sync | School site id, from |
|
| all | Dining hall timezone (IANA name) |
|
| serve |
|
|
| serve |
|
|
| serve | HTTP bind address |
| (none) | serve | Public hostname(s), comma-separated. Requests with any other |
| (none) | serve | Extra browser |
|
| serve | Where snapshot mode stores pushed days (kept for 30 days) |
| (none) | serve, sync | Shared secret for |
| (none) | sync | Base URL of the snapshot server |
|
| sync | Days after today to sync |
Command line
dineoncampus-mcp [serve] run the MCP server (the default command)
dineoncampus-mcp find look up a school's site id and dining location ids
dineoncampus-mcp fetch print one day's normalized menu as JSON (--summary, --raw)
dineoncampus-mcp sync fetch upcoming days and push them to a snapshot serverAbout the data
Everything comes from the dining hall's own nutrition system, and some entries are incomplete or wrong. Sometimes a menu briefly shows another outlet's items, or values like 0 g of carbs on a sandwich. The server tells the model to point out values that look implausible.
Tags such as
Vegan,MilkorPork*are passed through exactly as the school publishes them. The school decides what a tag (and a*) means.Opening hours are for the whole location, not for each meal. On holidays DineOnCampus sometimes still lists a menu. When the hours say the hall is closed, the tools add a
warningsaying so.One server instance covers one dining location. Run another instance for a second hall.
Please keep request volumes modest. The defaults (a 30-minute cache in direct mode, and four syncs a day with 1 second between requests) are plenty for personal use.
Development
git clone https://github.com/Pixel2075/dineoncampus-mcp && cd dineoncampus-mcp
uv sync
uv run pytest
uv run dineoncampus-mcp fetch --location-id <id> --summaryThe tests run offline against recorded API responses in tests/fixtures.
License
Available Tools
6 toolscalculate_meal_totalsARead-only
Add up calories, macros and every other published nutrient for a plate of menu items.
Args: items: list of {"name": str, "servings": number (default 1)}; plain names also work. Names match like get_item_nutrition. meal: optionally restrict lookups to 'breakfast', 'lunch' or 'dinner'. date: YYYY-MM-DD, 'today', 'tomorrow' or a weekday name. Defaults to today.
Inputs: items (required), date, meal.
get_item_nutritionARead-only
Full nutrition label for a menu item: portion, every nutrient, ingredients, diet tags and allergens.
Args: item_name: the item's name. Exact matches win; otherwise any item whose name contains this text. meal: optionally restrict to 'breakfast', 'lunch' or 'dinner'. date: YYYY-MM-DD, 'today', 'tomorrow' or a weekday name. Defaults to today.
Inputs: item_name (required), date, meal.
get_meal_periodsARead-only
What is served on a date: each meal period with its item count and stations, plus the opening hours.
Args: date: YYYY-MM-DD, 'today', 'tomorrow' or a weekday name. Defaults to today.
Inputs: date.
list_dietary_tagsARead-only
The diet and allergen tags used on a day's menu (e.g. Vegan, Vegetarian, Milk, Pork) with item counts.
Args: meal: optionally restrict to 'breakfast', 'lunch' or 'dinner'. date: YYYY-MM-DD, 'today', 'tomorrow' or a weekday name. Defaults to today.
Inputs: date, meal.
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 recognizably different job: period overview, menu listing, item search, single-item nutrition, plate totals, and tag enumeration. The only real overlap is that get_menu in 'full' detail already returns complete nutrition labels, making get_item_nutrition somewhat redundant for items already seen in a menu, and search_menu's text query overlaps with get_menu's listing.
All six tools follow a clean snake_case verb_noun pattern (get_*, search_*, calculate_*, list_*). Verbs accurately signal read-only retrieval vs. computation vs. enumeration.
Six tools is well-scoped for a dining-menu domain: discovery, listing, filtering, item detail, aggregation, and tag lookup. Nothing feels padded or missing at the count level.
The surface covers the full browse-search-detail-aggregate workflow, including hours, stations, allergens, and nutrient math. Minor gaps exist, such as no way to enumerate dining locations/venues or compare multiple days at once, but agents can work around these with repeated date calls.
Maintenance
Related MCP Connectors
Menus, traits, allergens, nutrition and hours of the ten University of Michigan dining halls.
Log meals and read your nutrition diary from Claude or ChatGPT.
MyFitnessPal MCP server for ChatGPT, Claude and any AI agent: get diary day, search foods, log food, quick add calories, log water, log weight, log exercise and get nutrition goals in your own MyFitnessPal account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to MyFitnessPal yourself; Cotlet does not store your password and you need no MyFitnessPal API key. About the official MyFitnessPal API: MyFitnessPal has a private API and its API site says "We are not accepting requests for API access at this time" (checked 5 Nov 2026). There are no self-serve keys. Setup and FAQ: https://cotlet.dev/integrations/myfitnesspal-api-mcp-server
Calories, protein, carbs and fat for restaurant menu items. Search is free; lookups paid via x402.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides real-time access to menus from all six MIT Bon Appétit dining halls. It enables users to query daily or weekly schedules and filter options by specific dietary requirements such as vegan, halal, or gluten-free.53 npm1MIT
- AlicenseAqualityBmaintenanceConnect MyFitnessPal to Claude or any MCP client. Log meals, search food database with macros, track trends, and export nutrition history against your real MyFitnessPal diary.18335 PyPI34MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying Yale Hospitality dining menus, listing residential colleges, fetching meal offerings, and searching dishes across colleges via MCP tools.MIT
- AlicenseAqualityBmaintenanceEnables natural-language questions about the University of Michigan Ann Arbor dining halls' live menus, dish traits, allergens, nutrition panels, and opening hours pulled from dining.umich.edu. Supports searching and filtering dishes by name, allergen exclusions, required traits, calorie, sodium and carbon-footprint limits, plus checking which halls are serving right now.878 npmMIT