Skip to main content
Glama
rldiao
by rldiao

Mealie MCP 服务器

该项目使 AI 助手能够通过 MCP 客户端(例如 Claude Desktop)与您的Mealie食谱数据库进行交互。

先决条件

  • Python 3.12+

  • 使用 API 密钥运行 Mealie 实例

  • 软件包管理器uv

Related MCP server: Mealie MCP Server

与 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. 使用您的 Mealie 实例详细信息编辑.env文件:

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文件。

Related MCP Connectors

  • Your Recipes, Beautifully Kept. weReci MCP server lets Claude and other MCP clients work with your personal weReci cookbook, the recipes you've imported from the web, social video and scanned family books. Interactive UI in the chat. weReci supports MCP Apps, so in clients that support it, tools return live views instead of plain text: recipe cards, shopping lists and your recipe graph. Clients without MCP Apps support get the same results as text. Find and read recipes: search your collection in plain language, open any recipe in full, or get an overview of what's in your cookbook. Cook with them: scale a recipe to any serving count, with cooking adjustments as well as amounts. Get substitution suggestions with ratios and caveats. Explore connections: browse your recipe graph (shared ingredients, techniques and cuisines), trace the connection between two recipes, and look up where a dish sits on the cuisine map. Themed collections: list the themed groups weReci curates from your cookbook, or ask it to reshuffle them. Shop: build a shopping list from one or more recipes, add or update items, and read the list back. Share: email a recipe to someone. Longer jobs like conceit reshuffles run in the background, with tools to check their progress. Everything is scoped to your own cookbook, or to a shared one you've joined.

  • MCP server that lets AI assistants use all OneSchema features exposed via the public API.

  • Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.

  • Persistent memory for AI assistants. Save once; recall from Claude, ChatGPT, or any MCP client.

Related MCP Servers