Skip to main content
Glama
Mess MCP Server

Mess MCP Server

Mess MCP Server

A Model Context Protocol (MCP) server for the IIIT-H Mess portal. This server provides robust, real-time integration enabling AI assistants to securely interact with the institution's mess dining and marketplace systems over standard STDIO transports.

Architecture & Features

The server interfaces via the official Anthropic mcp SDK, abstracting the mess.iiit.ac.in/api into easily digestible Resources, Tools, and Prompts.

  • Resources: Exposes static read-only constraints such as system capacities, current multi-week menus, available extras, operating hours, and standard meal rates.

  • Tools: Authorizes state mutations including modifying registrations (cancel, skip, un-cancel, register), applying for extras, and seamlessly filing formal qualitative feedback.

  • Prompts: Provides pre-programmed reasoning flows, assisting agents with weekly meal planning and historic billing analysis, mitigating overspending on non-essential items.

Related MCP server: mit-dining-mcp

Prerequisites

  • Python 3.10+

  • uv (recommended for seamless environments) or pip

Installation

  1. Clone the repository to your local environment:

    git clone https://github.com/shrey715/mess-mcp.git
    cd mess-mcp
  2. Sync the dependencies and build the virtual environment:

    uv sync
    # Or using standard pip
    pip install .

Configuration

The server operations are authenticated. You must set the correct environment variables before launch, preventing API tokens from passing unnecessarily through the language model context window.

export MESS_API_KEY="your-api-token"

Usage Integration

The server operates exclusively via standard stdio, assuring strong compatibility with high-performance desktop clients.

Claude Desktop Integration

Locate your Claude Desktop JSON configuration and append the following:

{
  "mcpServers": {
    "mess-mcp": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mess-mcp", "mess-mcp"],
      "env": {
        "MESS_API_KEY": "your-api-key"
      }
    }
  }
}

Cursor or VS Code Integration

Use standard integration settings inside Cursor or VS Code Copilot to register local MCPs. Provide the exact executable invocation:

Command Path: uv run --directory /path/to/mess-mcp mess-mcp

Documentation

Full architectural insights are encoded directly into the MCP introspection system (mcp list). Endpoints trace the official OpenAPI 3.0 specification available from the institution portal.

License

This software is released under the GNU General Public License v3.0 (GPLv3). Review the LICENSE file for strict distribution and modification stipulations.

Available Tools

27 tools
cancel_mealA

Cancel a meal registration.

Monthly cancellation limits may apply. Check get_cancellation_count first.

Args: meal_date: Target date (YYYY-MM-DD). meal_type: One of 'breakfast', 'lunch', 'snacks', 'dinner'. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: meal_date (required), meal_type (required), api_key. Returns: result

check_registrationsA

List all meal registrations (past and upcoming) within a date range (max 2 months).

Args: from_date: Range start date (YYYY-MM-DD), inclusive. to_date: Range end date (YYYY-MM-DD), inclusive. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: to_date (required), from_date (required), api_key. Returns: result

create_auth_keyA

Create a new named API key.

The returned key value is only shown once — store it securely.

Args: name: A unique human-readable name for the key. expiry: Expiry date in YYYY-MM-DD format. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: name (required), expiry (required), api_key. Returns: result

create_monthly_registrationA

Enrol in a mess for an entire calendar month.

Args: month: Month number (1-12). year: Year (YYYY). mess_id: Mess identifier, e.g. 'yuktahar'. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: year (required), month (required), mess_id (required), api_key. Returns: result

delete_auth_keyA

Delete an API key by name.

The key is identified by its human-readable name, not its token value.

Args: name: The name of the key to delete. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: name (required), api_key. Returns: result

delete_extraA

Cancel an extra item booking.

Extra registrations cannot be modified — delete and recreate if needed.

Args: registration_id: ID of the extra registration (from list_registered_extras). api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: registration_id (required), api_key. Returns: result

delete_monthly_registrationA

Remove the monthly registration for a given month.

Args: month: Month number (1-12). year: Year (YYYY). api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: year (required), month (required), api_key. Returns: result

get_all_billsA

Return a full historical breakdown of mess bills across all recorded months.

Bills are returned in paise (1 INR = 100 paise) and include food, extras, and infrastructure costs.

Args: api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: api_key. Returns: result

get_cancellation_countA

Return how many cancellations the user has used for a meal in a given month.

Compares this against the system maximum (from get_config_windows) to determine remaining budget before penalties apply.

Args: meal: One of 'breakfast', 'lunch', 'snacks', 'dinner'. month: Month (1-12). Defaults to current month. year: Year (YYYY). Defaults to current year. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: meal (required), year, month, api_key. Returns: result

get_capacitiesA

Return available seat counts and maximum capacity for every mess for a meal.

Call this before registering to verify a mess is not full.

Args: meal: One of 'breakfast', 'lunch', 'snacks', 'dinner'. date: Target date (YYYY-MM-DD). Defaults to today. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: meal (required), date, api_key. Returns: result

get_config_windowsA

Return all system operational windows in seconds.

Includes registration, cancellation, feedback, extras, and skip windows, as well as the registration maximum date.

Args: api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: api_key. Returns: result

get_meal_scan_countA

Return aggregated meal scan/availment counts for a mess on a given day.

This is public data — no authentication is required, but an api_key can be provided for consistency.

Args: meal: One of 'breakfast', 'lunch', 'snacks', 'dinner'. mess: Mess identifier, e.g. 'yuktahar'. date: Target date (YYYY-MM-DD). Defaults to today. api_key: API key. Optional.

Inputs: meal (required), mess (required), date, api_key. Returns: result

get_meal_timingsA

Return official meal serving timings for each mess.

Args: date: Target date (YYYY-MM-DD). Defaults to today. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: date, api_key. Returns: result

get_monthly_billA

Return the projected and confirmed mess bill for a calendar month.

Bills are returned in paise (1 INR = 100 paise).

Args: month: Month (1-12). Defaults to current month. year: Year (YYYY). Defaults to current year. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: year, month, api_key. Returns: result

get_monthly_registrationA

Return the current monthly registration status.

Args: month: Month (1-12). Defaults to current month. year: Year (YYYY). Defaults to current year. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: year, month, api_key. Returns: result

get_preferencesA

Fetch all saved user preferences from the Mess portal.

Args: api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: api_key. Returns: result

get_registrationA

Look up the registration for a single meal.

If meal is omitted, returns registrations for all meals on that date. If date is omitted, today is assumed.

Args: meal: One of 'breakfast', 'lunch', 'snacks', 'dinner'. Optional. date: Target date (YYYY-MM-DD). Optional. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: date, meal, api_key. Returns: result

list_auth_keysA

List all API keys belonging to the authenticated user, including expired ones.

Args: api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: api_key. Returns: result

list_available_extrasA

List extra items (e.g. omelettes, special dishes) available to book for a meal.

Args: meal_type: One of 'breakfast', 'lunch', 'snacks', 'dinner'. date: Target date (YYYY-MM-DD). Defaults to today. mess: Filter results to a specific mess. Optional. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: meal_type (required), date, mess, api_key. Returns: result

list_extras_in_rangeA

List all extra registrations within a date range (max 2 months).

Args: from_date: Range start date (YYYY-MM-DD), inclusive. to_date: Range end date (YYYY-MM-DD), inclusive. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: to_date (required), from_date (required), api_key. Returns: result

list_registered_extrasA

List extra items the user has already booked for a meal.

Args: meal_type: One of 'breakfast', 'lunch', 'snacks', 'dinner'. date: Target date (YYYY-MM-DD). Defaults to today. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: meal_type (required), date, api_key. Returns: result

manage_skippingA

Mark a registered meal as skipped (or un-skipped).

Notifying the kitchen reduces food waste. Must be submitted before the skip window closes (typically 3 hours before the meal).

Args: meal_date: Target date (YYYY-MM-DD). meal_type: One of 'breakfast', 'lunch', 'snacks', 'dinner'. meal_mess: The mess at which the user is registered. skipping: True to mark as skipping, False to undo. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: meal_date (required), meal_mess (required), meal_type (required), api_key, +1 more. Returns: result

register_extraA

Book an extra item for a meal.

The user must have an existing regular registration at the same mess for that meal before booking extras.

Args: extra_id: Identifier of the extra item (from list_available_extras). meal_date: Target date (YYYY-MM-DD). meal_type: One of 'breakfast', 'lunch', 'snacks', 'dinner'. meal_mess: Mess where the extra will be served. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: extra_id (required), meal_date (required), meal_mess (required), meal_type (required), +1 more. Returns: result

register_mealA

Create or update a meal registration.

If the registration already exists it will be updated. Use check_registrations to confirm the registration or cancellation window is open before calling this.

Args: meal_date: Target date (YYYY-MM-DD). meal_type: One of 'breakfast', 'lunch', 'snacks', 'dinner'. meal_mess: Mess identifier, e.g. 'yuktahar', 'kadamba-nonveg', 'north'. guests: Number of external guests (0–5, billed additionally). api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: meal_date (required), meal_mess (required), meal_type (required), guests, +1 more. Returns: result

submit_feedbackA

Submit quality feedback for a consumed meal.

Args: meal_date: Date the meal was consumed (YYYY-MM-DD). meal_type: One of 'breakfast', 'lunch', 'snacks', 'dinner'. rating: Star rating out of 5 (1 = poor, 5 = excellent). remarks: Optional free-text comment on taste, hygiene, temperature, etc. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: rating (required), meal_date (required), meal_type (required), api_key, +1 more. Returns: result

uncancel_mealB

Reverse a meal cancellation.

Args: meal_date: Target date (YYYY-MM-DD). meal_type: One of 'breakfast', 'lunch', 'snacks', 'dinner'. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: meal_date (required), meal_type (required), api_key. Returns: result

update_preferencesB

Update all user preferences in the Mess portal.

Args: preferences: A dictionary of preference keys and their new values. api_key: API key. Falls back to MESS_API_KEY environment variable.

Inputs: preferences (required), api_key. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 27 tools

    Disambiguation4/5

    Most tools target distinct resource-action pairs (capacities, meal registration, extras, bills, auth, preferences), and descriptions clarify the scope. A few read operations overlap in name and intent, such as check_registrations vs get_registration and list_registered_extras vs list_extras_in_range, but the descriptions are sufficient to disambiguate.

    Naming Consistency4/5

    The server consistently uses snake_case and mostly follows a verb_noun pattern. However, verb selection is inconsistent: check_registrations vs get_registration, register_meal vs create_monthly_registration, cancel_meal vs delete_extra, and manage_skipping as a gerund all break the pattern slightly.

    Tool Count2/5

    27 tools exceeds the 25+ threshold and will feel heavy for an agent to navigate, even though the broad mess-management scope justifies some of the count. The number is high enough that an agent may struggle to choose efficiently among overlapping read operations.

    Completeness5/5

    The tool surface provides thorough lifecycle coverage: capacity checks, meal timings, meal and monthly registration CRUD, cancellation/skip workflows, extras booking, feedback, bills, config windows, auth key management, and preferences. No critical dead-end operations are missing.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to interact with the IIIT Hyderabad Mess Management System through natural language, allowing students to view menus, manage meal registrations, check bills, submit feedback, and configure preferences.
      29
      11
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 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 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables LLMs to interact with the IIIT Hyderabad Mess System to manage meal registrations, view menus, and track billing. It supports conversational commands for tasks like cancelling meals, estimating nutrition, and checking account balances.
      45
      5
      AGPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Aggregates Swiggy's food delivery, Instamart groceries, and Dineout table booking services into one MCP server, letting AI agents search, order, and book via a single OAuth token.
      MIT