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

模型上下文协议 (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

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. Docker
          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