Skip to main content
Glama

Canteen MCP

by c0dr
MIT License
0
  • Linux
  • Apple

Kantine MCP

Ein Model Context Protocol (MCP)-Server, der über eine einfache API-Integration Zugriff auf das Mittagsmenü der Kantine bietet.

Beschreibung

Canteen MCP ist ein FastMCP-basierter Server, der ein Tool zum Abrufen täglicher Mittagsmenüs aus der Kantine bereitstellt. Es verbindet sich mit einer Menü-API und bietet eine strukturierte Schnittstelle zum Abfragen von Menüdaten für bestimmte Tage.

Merkmale

  • Holen Sie sich das Mittagsmenü für ein bestimmtes Datum

  • httpStream-basierter Transport für Echtzeitkommunikation

  • Umgebungsbasierte Konfiguration

  • Typsichere API mit Eingabevalidierung

Installation

npm install

Konfiguration

Kopieren Sie die Beispielumgebungsdatei und aktualisieren Sie sie mit Ihren Werten:

cp .env.example .env

Umgebungsvariablen

Variable

Beschreibung

Beispiel

API_URL

URL der Mittagsmenü-API

https://lunch-menu-ai.vercel.app/api/v1/menu

HAFEN

Port für den MCP-Server

8080

ENDPUNKT

HTTP-Endpunkt

/Endpunkt

Verwendung

Starten Sie den Server:

npm start

Verfügbare Tools

Mittagsmenü erhalten

Ruft das Mittagsmenü für ein bestimmtes Datum ab.

  • Parameter :

    • date : Zeichenfolge im Format JJJJ-MM-TT

  • Gibt zurück : JSON-Zeichenfolge mit den Menüdaten

  • Beispiel :

    const result = await tool.execute({ date: "2024-10-05" });

Entwicklung

Voraussetzungen

  • Node.js >= 18

  • npm

Ausführen im Entwicklungsmodus

npm run dev

Docker

Erstellen des Bildes

docker build -t canteen-mcp .

Ausführen des Containers

docker run -d \ -p 8080:3000 \ -e API_URL=your_api_url \ -e PORT=3000 \ -e ENDPOINT=/http \ --name canteen-mcp \ canteen-mcp

Verwenden der GitHub Container Registry

Rufen Sie das neueste Bild ab:

docker pull ghcr.io/[your-username]/canteen-mcp:latest

Einsatz

Bereitstellung für Hetzner

  1. Melden Sie sich per SSH bei Ihrem Hetzner-Server an:

ssh root@your-server-ip
  1. Installieren Sie Docker, falls es noch nicht installiert ist:

curl -fsSL https://get.docker.com | sh
  1. Erstellen Sie eine docker-compose.yml-Datei:

version: '3.8' services: canteen-mcp: image: ghcr.io/c0dr/canteen-mcp:latest restart: always ports: - "8080:3000" environment: - API_URL=your_api_url - PORT=3000 - ENDPOINT=/http
  1. Starten Sie den Dienst:

docker-compose up -d

Lizenz

Dieses Projekt ist unter der MIT-Lizenz lizenziert – Einzelheiten finden Sie in der Datei LICENSE.

Basierend auf https://github.com/punkpeye/fastmcp-boilerplate

Deploy Server
A
security – no known vulnerabilities
-
license - not tested
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Ein Model Context Protocol-Server, der über eine einfache API-Integration strukturierten Zugriff auf Kantinen-Mittagsmenüs für bestimmte Tage bietet.

  1. Beschreibung
    1. Merkmale
      1. Installation
        1. Konfiguration
          1. Umgebungsvariablen
        2. Verwendung
          1. Verfügbare Tools
        3. Entwicklung
          1. Voraussetzungen
          2. Ausführen im Entwicklungsmodus
        4. Docker
          1. Erstellen des Bildes
          2. Ausführen des Containers
          3. Verwenden der GitHub Container Registry
        5. Einsatz
          1. Bereitstellung für Hetzner
        6. Lizenz

          Related MCP Servers

          • -
            security
            -
            license
            -
            quality
            A proof-of-concept Model Context Protocol server that enables LLM applications to interact with Uber Eats, allowing AI agents to browse and order food through natural language.
            Last updated -
            204
            • Linux
            • Apple
          • -
            security
            -
            license
            -
            quality
            A Model Context Protocol (MCP) server that interacts with system APIs, allowing users to check connections, search employees, register breakfast, and update chemical information by shifts.
          • A
            security
            -
            license
            A
            quality
            A Model Context Protocol server for AI models to access and manipulate Apple Calendar data on macOS through a standardized interface.
            Last updated -
            7
            16
            4
            • Apple
          • -
            security
            -
            license
            -
            quality
            A simple Model Context Protocol (MCP) server that provides date and time functionality in any timezone, along with user profiles and personalized greeting resources.
            Last updated -
            • Linux
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/c0dr/canteen-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server