Back to MCP directory
publicPublicdnsLocal runtime

mealie-mcp-server

该项目为AI助手提供与Mealie食谱数据库交互的MCP服务,支持通过Claude Desktop等客户端访问。

article

README

🚀 Mealie MCP 服务器

该项目能让 AI 助手借助 MCP 客户端(例如 Claude Desktop)与您的 Mealie 菜谱数据库进行交互,为您在菜谱数据的获取和使用上提供便利。

🚀 快速开始

🔍 先决条件

  • Python 3.12+
  • 运行中的 Mealie 实例,带有 API 密钥
  • 包管理器 uv

💻 使用 Claude Desktop

选项 1:使用 fastmcp(推荐)

可以直接通过 fastmcp 命令来安装服务器:

fastmcp install src/server.py \
  --env-var MEALIE_BASE_URL=https://your-mealie-instance.com \
  --env-var MEALIE_API_KEY=your-mealie-api-key

选项 2:手动配置

将服务器添加到您的 claude_desktop_config.json 文件中:

{
  "mcpServers": {
    "mealie-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/repo/src",
        "run",
        "server.py"
      ],
      "env": {
        "MEALIE_BASE_URL": "https://your-mealie-instance.com",
        "MEALIE_API_KEY": "your-mealie-api-key"
      }
    }
  }
}

🛠️ 开发

  1. 克隆仓库并进入项目目录。
  2. 使用 uv 安装依赖项:
uv sync
  1. 复制提供的模板文件:
cp .env.template .env
  1. .env 文件中编辑您的 Mealie 实例详细信息:
MEALIE_BASE_URL=https://your-mealie-instance.com
MEALIE_API_KEY=your-mealie-api-key
  1. 运行 MCP 检查器:
uv run mcp dev src/server.py

📄 许可证

此项目在 MIT License 下授权 - 有关详细信息,请参阅 LICENSE 文件。

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