UMich Dining

Menus, traits, allergens, nutrition and hours of the ten University of Michigan dining halls.

OtherTypeScriptv0.1.1

umich-dining-mcp

npm CI Live site

An MCP server for the dining halls of the University of Michigan in Ann Arbor. It answers what is being served, which dishes are vegan or halal, what a dish contains, how many calories it has, and when each hall is open.

Every answer is read live from dining.umich.edu. Pages are kept in memory for a few minutes so that ten questions cost one visit, but nothing is written to disk and no menu is mirrored.

Transportstdio
RuntimeNode.js 20.18.1 or newer
Hallsthe ten dining halls
Registryio.github.esreddy2/umich-dining-mcp

Install

npm install -g umich-dining-mcp

or run it without installing anything:

npx -y umich-dining-mcp

Claude Code

claude mcp add umich-dining -- npx -y umich-dining-mcp

Cursor

~/.cursor/mcp.json:

{
  "mcpServers": {
    "umich-dining": {
      "command": "npx",
      "args": ["-y", "umich-dining-mcp"]
    }
  }
}

VS Code

.vscode/mcp.json:

{
  "servers": {
    "umich-dining": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "umich-dining-mcp"]
    }
  }
}

Any other client that starts MCP servers over stdio takes the same mcpServers entry as Cursor, with npx -y umich-dining-mcp as the command.

Tools

ToolWhat it does
list_locationsThe ten halls with address, phone, e-mail, map link, today's service periods, whether they are open right now, and whether they have a gluten-free pantry.
get_menuThe menu of one hall: meals, stations and dishes with traits, allergens and the nutrition panel.
search_dishesFind dishes by name, in one hall or across all of them (case-insensitive substring match).
filter_dishesFilter the menus by allergen, trait, nutrient density, carbon footprint, calories and sodium.
get_hoursThe service periods of a day plus the regular weekly schedule.
find_open_nowWhich halls are serving at the current time.
get_item_nutritionThe full nutrition panel of a single dish.

Resources

ResourceContent
umich://dining-hallsThe hall registry as JSON.
umich://taxonomyThe 15 allergens and 14 traits with their display labels, the trait implication closure and the allergen caveat.

Example questions

What is serving at Bursley for dinner tonight?

Which halls are open right now?

Find vegan dishes at South Quad that do not contain soy.

What are the ingredients of the Oatmeal at Bursley? How many calories?

When is Markley open on Saturday?

Show me dishes with more than 500 mg of sodium.

The halls

idHallidHall
bursleyBursleysouth-quadSouth Quad
east-quadEast Quadtwigs-at-oxfordTwigs at Oxford
markleyMarkleywolverine-villageWolverine Village
mosher-jordanMosher-Jordanlawyers-clubLawyers Club
north-quadNorth Quadmartha-cookMartha Cook

The id is what get_menu, get_hours and search_dishes expect.

Dates

The site publishes menus from three days ago to fourteen days ahead. Outside that range the site does not answer with an error, it answers with a different day's menu, so a date outside the range is refused before anything is fetched, with a message that names the range the site offers. When the page states which day it rendered, that day is compared with the one you asked for and a mismatch is an error rather than a wrong answer.

Filters

ParameterMeaning
exclude_allergensKeeps only the dishes that do not carry any of the listed allergens.
require_traitsKeeps only the dishes that carry every listed trait.
min_mhealthyMinimum nutrient-density tier, 1..5 (3 = "Nutrient Dense Medium or better").
max_carbonMaximum carbon footprint: low, medium or high.
max_calories, max_sodium_mgNumeric caps. Dishes without a published value are excluded.

Allergens

Allergen data is only as good as the site. The menu page flags the allergens the kitchen reported for a dish, but it does not distinguish "contains" from "may contain", there are no ingredient lists, and a missing flag is not an absence of the allergen. The site's own guidance is: "Look for the signs posted near each food serving area for a list of menu options with allergens highlighted in red." "Gluten Free" means the dish is made without gluten, not that it is safe for someone with coeliac disease. Dedicated gluten-free pantries exist at South Quad, East Quad, Mosher-Jordan and Bursley.

The same caveat is repeated in the description of every tool that returns allergen data and in every response that contains it. No tool ever claims that a dish is safe.

Two further points about the traits, because the site is careful about them: a vegan dish is reported as vegetarian as well, since the site keeps the two apart, and no other trait implies another (halal does not imply vegetarian, and neither does kosher).

Configuration

Environment variableDefaultMeaning
UMICH_DINING_USER_AGENTpython-requests/2.32.3The User-Agent to use.
UMICH_DINING_BASE_URLhttps://dining.umich.eduThe site to read.
UMICH_DINING_TIMEOUT_MS20000Per-request timeout.
UMICH_DINING_MAX_RETRIES3Retries after the first attempt.
UMICH_DINING_MAX_CONCURRENCY2Requests in flight.
UMICH_DINING_MIN_GAP_MS500Minimum gap between requests.
UMICH_DINING_TTL_TODAY_MS900000Cache lifetime of today's menu.
UMICH_DINING_TTL_FUTURE_MS21600000Cache lifetime of a future menu.
UMICH_DINING_TTL_PAST_MS86400000Cache lifetime of a past menu.
UMICH_DINING_TTL_REGULAR_HOURS_MS86400000Cache lifetime of the weekly schedule.

How it treats the site

dining.umich.edu is somebody else's website, so the server stays gentle with it:

  • Two requests in flight, 500 ms apart at most. The limit is global to the process.
  • A cache with in-flight de-duplication. Ten questions about the same hall cost one request. Today's menu is cached for 15 minutes, a future menu for 6 hours, a past menu for 24 hours and the weekly hours for 24 hours.
  • Stale on error. If the site cannot be reached and a cached copy exists, the copy is served and marked as stale instead of failing the question.
  • One User-Agent. The site answers HTTP 200 to a small set of clients only; python-requests/2.32.3 is the one that has been measured to work, while a generic fetch agent and a headless browser both get 403. It is not the server's real identity, which is why it is configurable.

Contributing

Pull requests are welcome. The test suite, the fixtures and the release process are described in CONTRIBUTING.md.

License

MIT, see LICENSE.

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
npx -y umich-dining-mcp

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-esreddy2-umich-dining-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "umich-dining-mcp"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

umich-dining-mcpnpm

Compatible MCP Clients

UMich Dining works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More