Skip to main content
Glama
mcp-nutrition-db

mcp-nutrition-db

by KireinaHoro

mcp-nutrition-db

mcp-nutrition-db 是一个私有 MCP 服务,让 ChatGPT 可以记录、更正和查询膳食营养与营养目标。ChatGPT 负责解读餐食照片和对话上下文;本服务负责持有持久、可审计的数据。

生产服务计划运行在 NixOS 主机 kage 上。它仅监听回环地址,ChatGPT 通过 OpenAI Secure MCP Tunnel 访问它,因此不需要 nginx 路由或公共 MCP 端点。

项目文档

  • 系统设计定义了产品边界、MCP 工具、数据模型、安全模型和 NixOS 部署。

  • 实施计划是各阶段、验收标准、进度和暂缓工作的权威来源。

  • 本地测试说明了直接挂载 Codex 和面向 ChatGPT Web 的临时 Secure MCP Tunnel 工作流。

实施计划应与有意义的实现里程碑在同一提交中更新。设计变更应在依赖它们的代码之前或与之同步记录到决策日志中。

Related MCP server: cronometer-api-mcp

当前状态

本地 MVP 已实现 SQLite schema 和全部八个 MCP 工具。仓库、schema、日历、MCP 进程、Streamable HTTP、包和 NixOS 评估检查均通过;有关确切的已验证状态,请参阅实施计划。

开发

进入锁定环境并运行检查:

nix develop
PYTHONPATH=src ruff format --check src tests
PYTHONPATH=src ruff check src tests
PYTHONPATH=src mypy src
PYTHONPATH=src pytest

运行一个使用临时状态的回环开发服务器:

nix run . -- serve --database /tmp/mcp-nutrition-db.sqlite3

MCP 端点为 http://127.0.0.1:8787/mcp;就绪检查位于 http://127.0.0.1:8787/healthz。默认情况下,服务器拒绝非回环的 HTTP 绑定。参见本地测试以挂载新的 Codex 会话,或为 ChatGPT Web 运行锁定的隧道客户端。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables tracking food intake and nutrition using the USDA FoodData Central database. Supports logging meals, setting daily nutrition goals, viewing food diaries, and analyzing nutrition trends over time with local SQLite storage.
      9 npm
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables nutrition tracking with Cronometer, including food logging, food search, diary management, and nutrition data retrieval via natural language.
      13
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to log and edit meals, query a food journal, and retrieve calorie/macro/quality KPIs with server-side nutritional grading, plus manage staples and targets.
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables local nutrition journaling with markdown storage, including tools for logging meals, managing foods, viewing summaries, and exporting records.
      MIT