dineoncampus-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DINING_TZ | No | Dining hall timezone (IANA name). | America/New_York |
| DINING_HOST | No | HTTP bind address host. | 127.0.0.1 |
| DINING_PORT | No | HTTP bind address port. | 8000 |
| DINING_SOURCE | No | `direct` fetches from DineOnCampus; `snapshots` serves what `sync` pushed. | direct |
| DINING_SITE_ID | No | School site id, from `find`; enables opening hours. | |
| DINING_DATA_DIR | No | Where snapshot mode stores pushed days (kept for 30 days). | ~/.dineoncampus-mcp/snapshots |
| DINING_TRANSPORT | No | `stdio` for local clients, `http` for a server. | stdio |
| DINING_LOCATION_ID | Yes | DineOnCampus location id, from `find`. | |
| DINING_INGEST_TOKEN | No | Shared secret for `POST /ingest`; required for an HTTP snapshot server. | |
| DINING_ALLOWED_HOSTS | No | Public hostname(s), comma-separated. Requests with any other `Host` header are rejected (DNS-rebinding protection); `*` turns the check off. | |
| DINING_ALLOWED_ORIGINS | No | Extra browser `Origin`s to accept. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Menus, opening hours and nutrition facts for a campus dining hall, from DineOnCampus.
Meals are usually Breakfast, Lunch and Dinner. Every item has its portion size, calories and macros, and where the dining hall publishes them: micronutrients, ingredients and diet/allergen tags. All values are per listed portion. Dates accept YYYY-MM-DD, 'today', 'tomorrow' or a weekday name, resolved in the dining hall's timezone.
Start with get_meal_periods (what is served and the opening hours), then get_menu for the full menu of a meal. search_menu filters by text, tags and macro limits; get_item_nutrition returns one item's full label; calculate_meal_totals adds up a plate.
The data comes straight from the dining hall's nutrition system and can be incomplete or wrong. Point it out when values look implausible, for example 0 g carbs on a sandwich.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_meal_periodsA | 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. |
| get_menuA | The menu for a meal, grouped by station. detail='full' (default) gives every item with portion, description, ingredients, diet/allergen tags and every published nutrient (calories, macros, saturated/trans fat, cholesterol, sodium, potassium, calcium, iron, vitamins). detail='summary' gives only calories and core macros, about half the size. Args: meal: 'breakfast', 'lunch', 'dinner' or any other period name. Omit for every meal that day. date: YYYY-MM-DD, 'today', 'tomorrow' or a weekday name. Defaults to today. station: keep only stations whose name contains this text, e.g. 'grill' or 'salad'. detail: 'full' or 'summary'. |
| search_menuA | Search and filter menu items by text, diet tags, excluded ingredients and macro limits, optionally sorted. Examples: high-protein lunch -> meal='lunch', min_protein_g=25, sort_by='protein_g'; vegan dinner under 500 kcal -> meal='dinner', tags=['vegan'], max_calories=500; nothing with peanuts -> exclude=['peanut']. Args: query: text matched against item name, station, description and ingredients. meal: 'breakfast', 'lunch', 'dinner'. Omit to search the whole day. date: YYYY-MM-DD, 'today', 'tomorrow' or a weekday name. Defaults to today. tags: every tag must match (substring, case-insensitive), e.g. ['vegan']. See list_dietary_tags. exclude: drop items whose name, tags, allergens, description or ingredients mention any of these. min_protein_g: keep items with at least this much protein. max_calories: keep items at or under this many kcal. max_carbs_g: keep items at or under this many grams of carbohydrate. max_fat_g: keep items at or under this many grams of fat. sort_by: any nutrient key (calories, protein_g, carbs_g, fat_g, fiber_g, sodium_mg, ...) or protein_per_100kcal. descending: sort high-to-low (default) or low-to-high. limit: maximum number of items to return (default 25). |
| get_item_nutritionA | 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. |
| calculate_meal_totalsA | 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. |
| list_dietary_tagsA | 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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.