该项目能让 AI 助手借助 MCP 客户端(例如 Claude Desktop)与您的 Mealie 菜谱数据库进行交互,为您在菜谱数据的获取和使用上提供便利。
可以直接通过 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
将服务器添加到您的 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 sync
cp .env.template .env
.env 文件中编辑您的 Mealie 实例详细信息:MEALIE_BASE_URL=https://your-mealie-instance.com
MEALIE_API_KEY=your-mealie-api-key
uv run mcp dev src/server.py
此项目在 MIT License 下授权 - 有关详细信息,请参阅 LICENSE 文件。