Mealie MCP Server

by rldiao
Verified

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.

Integrations

  • Enables interaction with a Mealie recipe database, allowing AI assistants to access and manipulate recipe data stored in a Mealie instance.

Mealie MCP 服务器

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

先决条件

  • Python 3.12+
  • 使用 API 密钥运行 Mealie 实例
  • 软件包管理器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. 使用您的 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文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

使 AI 助手能够通过 Claude Desktop 等 MCP 客户端与 Mealie 食谱数据库进行交互。

  1. Prerequisites
    1. Usage with Claude Desktop
      1. Option 1: Using fastmcp (Recommended)
      2. Option 2: Manual Configuration
    2. Development
      1. License
        ID: 1q7q3euxzk