mcp-server-canteen

mcp-server-canteen

0

The Restaurant Data MCP Server provides a service to query and obtain statistics on cafeteria dining data, specifically for breakfast and lunch within a certain date range. It features easy installation, and configuration requires setting specific environment variables. It is compatible with 'Claude for Desktop' and provides detailed error handling solutions.

Restaurant Data MCP Server

This service is designed to query the cafeteria dining data, providing statistics on the number of diners for breakfast and lunch within a specified date range.

Installation

Install via pip

  • pip install mcp-server-canteen

Install via uv

  • uv pip install mcp-server-canteen

Development Environment Installation

  • Clone the repository and install with uv pip.

Environment Variable Configuration

Configure the following environment variables before using the service:

  • CANTEEN_API_TOKEN: API authentication token
  • CANTEEN_API_BASE: API base URL

Running the Service

  • Use uv run or python -m commands to run the server.

Features

  • Queries dining statistics for breakfast and lunch based on a specified date range and period options such as today, yesterday, this week, etc.

Error Handling

Common Errors and Solutions

  1. Environment Variables Not Set: Ensure all required environment variables are set correctly.
  2. Date Format Error: Use the correct format YYYYMMDD.
  3. API Request Failed: Check network connections, API token, and base URL.
  4. Server Connection Failed: Ensure the server is running and configurations are correct.