DM

deadletterq/mcp-opennutrition

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

207 stars 32 forks 品質 66 トレンド 21MIT

deadletterq/mcp-opennutritionは、https://github.com/deadletterq/mcp-opennutrition.からインポートされたMCPサーバー候補です。

概要

deadletterq/mcp-opennutritionは、https://github.com/deadletterq/mcp-opennutrition.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

モデルコンテキストプロトコル(MCP)サーバーで、30万+の食品、栄養データ、バーコード検索を含む包括的なOpenNutrition食品データベースへのアクセスを提供します。

OpenNutritionは、USDA、CNF、FRIDA、AUSNUTなどの権威ある公開情報源を組み合わせることで、断片化され信頼性の低い栄養データという長年の課題に取り組みます。ユーザー生成コンテンツや商業ライセンスの制限が多い他のデータベースとは異なり、OpenNutritionは開発者や研究者が自由にアクセスできる透明で包括的かつ正確な栄養データを提供しています。

道具

  • 名前で検索:名前、ブランド、または部分的な一致で食品を検索
  • 食品を閲覧:利用可能な食品のページ付きリストを取得
  • ID で検索:食品IDを使って詳細な栄養情報を取得
  • バーコード検索:EAN-13バーコードを使用する食品検索

設置

Docker(推奨)

サーバーを動かす最も簡単な方法はDockerを使うことです。ビルドステップは不要です。

コンテナを動かす:

そしてMCPの設定に以下を追加しました:

ソースより

  1. 依存関係のインストール:

  2. プロジェクトの構築:

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

MCP OpenNutrition

A Model Context Protocol (MCP) server providing access to the comprehensive OpenNutrition food database with 300,000+ food items, nutritional data, and barcode lookups.

OpenNutrition addresses the longstanding issues with fragmented and unreliable nutritional data by combining authoritative public sources (USDA, CNF, FRIDA, AUSNUT). Unlike other databases that suffer from inconsistent user-generated content or restrictive commercial licensing, OpenNutrition provides transparent, comprehensive, and accurate nutritional data that’s freely accessible to developers and researchers.

Tools

  • Search by Name: Find foods by name, brand, or partial matches
  • Browse Foods: Get paginated lists of all available foods
  • Get by ID: Retrieve detailed nutritional information using food IDs
  • Barcode Lookup: Find foods using EAN-13 barcodes

Installation

The easiest way to run the server is via Docker. No build steps required.

Run the container:

docker run --rm -p 9113:3000 deadletterq/mcp-opennutrition

Then add to your MCP configuration:

"mcp-opennutrition": {
    "type": "streamable-http",
    "url": "http://localhost:9113"
}

From source

  1. Install dependencies:

    npm install
    
  2. Build the project:

    npm run build
    
  3. Add to your MCP configuration (set the same version of node that you used to build the project):

    "mcp-opennutrition": {
        "command": "/Users/YOUR.USERNAME/.nvm/versions/node/v20.19.0/bin/node",
        "args": [
            "/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-opennutrition/build/index.js"
        ]
    }
    

Data Source

This server uses the OpenNutrition dataset.

The dataset provides comprehensive nutritional profiles including macronutrients, vitamins, and minerals.

Usage

Once configured, the MCP server runs fully locally on your machine and automatically provides food and nutrition query capabilities to Claude/Cline. All data processing and queries happen locally with no external API calls, ensuring privacy and fast response times.

Example

Here is an example of how Claude uses the tool for a brownie recipe:

GitHub で README 全文を見る

インストール

docker run --rm -p 9113:3000 deadletterq/mcp-opennutrition
MCP 初心者?mcpskill.org のガイドから始めましょう →