Canteen MCP

by c0dr
MIT License
44
  • Linux
  • Apple

Integrations

  • Connects to a lunch menu API hosted on Vercel to retrieve daily canteen meal information for specific dates

食堂MCP

シンプルな API 統合を介して食堂のランチ メニューへのアクセスを提供するモデル コンテキスト プロトコル (MCP) サーバー。

説明

Canteen MCPは、FastMCPベースのサーバーで、食堂から毎日のランチメニューを取得するためのツールを公開しています。メニューAPIに接続し、特定の日付のメニューデータを照会するための構造化インターフェースを提供します。

特徴

  • 特定の日付のランチメニューを入手
  • リアルタイム通信のためのhttpStreamベースのトランスポート
  • 環境ベースの構成
  • 入力検証を備えた型安全なAPI

インストール

npm install

構成

サンプル環境ファイルをコピーし、値で更新します。

cp .env.example .env

環境変数

変数説明
API_URLランチメニューAPIのURLhttps://lunch-menu-ai.vercel.app/api/v1/menu
ポートMCP サーバーのポート8080
終点HTTPエンドポイント/終点

使用法

サーバーを起動します。

npm start

利用可能なツール

ランチメニューを取得する

特定の日付のランチ メニューを取得します。

  • パラメータ:
    • date : YYYY-MM-DD形式の文字列
  • 戻り値: メニューデータを含むJSON文字列
  • const result = await tool.execute({ date: "2024-10-05" });

発達

前提条件

  • Node.js >= 18
  • npm

開発モードで実行

npm run dev

ドッカー

イメージの構築

docker build -t canteen-mcp .

コンテナの実行

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

GitHub コンテナレジストリの使用

最新のイメージをプルします:

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

展開

Hetznerへの導入

  1. Hetzner サーバーに SSH で接続します。
ssh root@your-server-ip
  1. まだインストールされていない場合は Docker をインストールします。
curl -fsSL https://get.docker.com | sh
  1. docker-compose.yml ファイルを作成します。
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. サービスを開始します:
docker-compose up -d

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

https://github.com/punkpeye/fastmcp-boilerplateに基づいています

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
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.

シンプルな API 統合を通じて、特定の日付の食堂のランチ メニューへの構造化されたアクセスを提供するモデル コンテキスト プロトコル サーバー。

  1. 説明
    1. 特徴
      1. インストール
        1. 構成
          1. 環境変数
        2. 使用法
          1. 利用可能なツール
        3. 発達
          1. 前提条件
          2. 開発モードで実行
        4. ドッカー
          1. イメージの構築
          2. コンテナの実行
          3. GitHub コンテナレジストリの使用
        5. 展開
          1. Hetznerへの導入
        6. ライセンス

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            Model Context Protocol server that provides seamless access to Google Calendar API with asynchronous operation support, enabling efficient calendar management through a standardized interface.
            Last updated -
            Python
            • Apple
            • Linux
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that provides seamless interaction with Workato's API through custom AI tools, enabling management of recipes, connections, connectors, folders, and activity logs.
            Last updated -
            TypeScript
            MIT License
            • Apple
            • Linux
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server providing utility tools for development and testing, offering functionalities like personalized greetings, random card drawing, and datetime formatting with an extensible architecture.
            Last updated -
            19
            105
            2
            TypeScript
            MIT License
            • Apple
            • Linux
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that provides tools for interacting with Gmail and Calendar APIs, enabling programmatic management of emails and calendar events.
            Last updated -
            8
            7
            JavaScript
            MIT License
            • Apple

          View all related MCP servers

          ID: kec2zuh2yo