Skip to main content
Glama

Canteen MCP

by c0dr
MIT License
1
  • Linux
  • Apple

食堂 MCP

模型上下文协议 (MCP) 服务器可通过简单的 API 集成访问食堂的午餐菜单。

描述

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

构建图像

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. 通过 SSH 进入你的 Hetzner 服务器:
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

Deploy Server
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. Docker
          1. 构建图像
          2. 运行容器
          3. 使用 GitHub 容器注册表
        5. 部署
          1. 部署到 Hetzner
        6. 执照

          Related MCP Servers

          • -
            security
            F
            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 -
            202
            • Linux
            • Apple
          • A
            security
            F
            license
            A
            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.
            Last updated -
            21
            9
          • A
            security
            F
            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
            21
            3
            • Apple
          • -
            security
            F
            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