Mealie MCP 服务器
该项目使 AI 助手能够通过 MCP 客户端(例如 Claude Desktop)与您的Mealie食谱数据库进行交互。
先决条件
Python 3.12+
使用 API 密钥运行 Mealie 实例
软件包管理器uv
Related MCP server: clickhouse-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"
}
}
}
}发展
克隆存储库并导航到项目目录
使用 uv 安装依赖项:
uv sync复制提供的模板文件:
cp .env.template .env使用您的 Mealie 实例详细信息编辑
.env文件:
MEALIE_BASE_URL=https://your-mealie-instance.com
MEALIE_API_KEY=your-mealie-api-key运行 MCP 检查器
uv run mcp dev src/server.py执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
This server cannot be installed
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.