食堂 MCP
模型上下文协议 (MCP) 服务器可通过简单的 API 集成访问食堂的午餐菜单。
描述
Canteen MCP 是一个基于 FastMCP 的服务器,它提供了一个用于检索食堂每日午餐菜单的工具。它连接到菜单 API,并提供一个结构化的接口来查询特定日期的菜单数据。
特征
获取任何特定日期的午餐菜单
基于httpStream的实时通信传输
基于环境的配置
具有输入验证的类型安全 API
安装
配置
复制示例环境文件并使用您的值更新它:
环境变量
多变的 | 描述 | 例子 |
API_URL | 午餐菜单 API 的 URL | |
港口 | MCP 服务器的端口 | 8080 |
端点 | HTTP 端点 | /端点 |
用法
启动服务器:
可用工具
获取午餐菜单
检索特定日期的午餐菜单。
参数:
date:YYYY-MM-DD 格式的字符串
返回:包含菜单数据的 JSON 字符串
例子:
const result = await tool.execute({ date: "2024-10-05" });
发展
先决条件
Node.js >= 18
npm
以开发模式运行
Docker
构建图像
运行容器
使用 GitHub 容器注册表
拉取最新镜像:
部署
部署到 Hetzner
通过 SSH 进入你的 Hetzner 服务器:
如果尚未安装,请安装 Docker:
创建 docker-compose.yml 文件:
启动服务:
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
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.
Tools
模型上下文协议服务器通过简单的 API 集成提供对特定日期的食堂午餐菜单的结构化访问。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA 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
- AsecurityFlicenseAqualityA 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.
- AsecurityFlicenseAqualityA Model Context Protocol server for AI models to access and manipulate Apple Calendar data on macOS through a standardized interface.Last updated -7164
- -securityFlicense-qualityA 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 -