Back to MCP directory
publicPublicdnsLocal runtime

mcp-recipes

一个基于MCP协议的食谱查询服务器,支持通过名称、食材、菜系或ID查询食谱。

article

README

🚀 MCP 食谱服务器

MCP 食谱服务器是一个借助 Model Context Protocol (MCP) 协议来实现食谱查询功能的服务器,为用户提供便捷的食谱查询服务。

🚀 快速开始

MCP 食谱服务器允许你使用 MCP 协议查询食谱。以下是启动服务器和运行客户端示例的步骤。

✨ 主要特性

  • 支持按名称、食材、菜系或 ID 对食谱进行查询。

📦 安装指南

# 克隆仓库
git clone <repository-url>
cd mcp-recipes

# 安装依赖项
yarn install

💻 使用示例

基础用法

启动服务器

# 开发模式
yarn dev

# 生产模式
yarn build
yarn start

默认情况下,服务器将在端口 3000 上运行。你可以通过设置 PORT 环境变量来更改端口。

运行客户端示例

# 确保服务器在另一个终端中已经启动
yarn client

📄 许可证

本项目采用 MIT 许可证。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client