Skip to main content
Glama
Mensa TUD MCP Server

Mensa TUD MCP Server

by ScaDS

Mensa TUD MCP Server

An MCP (Model Context Protocol) server for accessing the TU Dresden canteen API (Studentenwerk Dresden). This server provides tools to query canteen information, available days, and daily meal menus through the OpenMensa v2 API.

You can access it, e.g. via the jan.ai GUI or using Claude Desktop.

Features

This MCP server provides three tools:

  1. list_canteens - List all available canteens with their IDs, names, addresses, and coordinates

  2. list_canteen_days - List all days for which a specific canteen has meal data available

  3. get_meals - Get all meals available at a specific canteen on a specific date (defaults to today)

Related MCP server: Cafeteria MCP

Installation

  1. Install uv (fast Python package manager)

  2. The dependencies will be automatically installed by uv when running the server

Integrating with GUIs

To use this MCP server e.g. with Claude Desktop, add it to your Claude Desktop configuration file:

On Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the following to your configuration:

{
  "mcpServers": {
    "mensa-tud": {
        "command": "uv",
        "args": [
        "--directory",
        "path\\to\\mensa-tud-mcp",
        "run",
        "server.py"
        ]
    }
  }
}

Make sure to adjust the path to match your installation location. In jan.ai you can enter this information under Settings > MCP Servers.

Under the hood

This server uses the OpenMensa v2 API provided by Studentenwerk Dresden:

  • Base URL: https://api.studentenwerk-dresden.de/openmensa/v2

  • Documentation: OpenMensa API

License

This is a simple MCP server implementation for educational and personal use provided unter MIT License.

Available Tools

3 tools
get_mealsA

Get all meals available at a specific canteen on a specific date.

Notes:

  • To figure out the ID of a specific canteen, first use the list_canteens tool.

  • Also make sure to check which days have meal data available using the list_canteen_days tool.

Args: canteen_id: The ID of the canteen to query (e.g., 9 for Alte Mensa) date: The date in YYYY-MM-DD format (e.g., 2026-01-13). If not provided, uses today's date.

Returns meal names, categories, prices, and dietary information.

Inputs: canteen_id (required), date. Returns: result

list_canteen_daysA

List all days for which a canteen has meal data available.

Args: canteen_id: The ID of the canteen to query (e.g., 9 for Alte Mensa)

Returns dates for which you can query meals.

Inputs: canteen_id (required). Returns: result

list_canteensA

List all available canteens from the Studentenwerk Dresden.

Returns canteen IDs, names, addresses, and coordinates for all available canteens.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: listing canteens, listing available days for a canteen, and getting meals for a specific canteen and date. No overlap or ambiguity.

    Naming Consistency4/5

    Two tools use the 'list_' prefix while one uses 'get_', creating a minor inconsistency. However, the verb-noun pattern is consistent and all names are descriptive.

    Tool Count5/5

    With 3 tools, the set is well-scoped for a canteen query system, covering all necessary operations without unnecessary bloat.

    Completeness5/5

    The tools cover the full workflow: discover canteens, check available days, and retrieve meals with dietary info. No obvious gaps for the intended use case.

    Related MCP Connectors

    Related MCP Servers