FoodNutritionDatabaseMcpServer

david3951445/FoodNutritionDatabaseMcpServer

3.1

If you are the rightful owner of FoodNutritionDatabaseMcpServer and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server for querying and analyzing food nutrition data in SQLite format.

FoodNutritionDatabaseMcpServer

A Model Context Protocol (MCP) server for querying and analyzing food nutrition data in SQLite format.

Features

Getting Started

Prerequisites

Setup

  1. Clone this repository
  2. Restore and build:
    dotnet restore
    dotnet build
    
  3. Run the MCP server:
    dotnet run --project FoodNutritionDatabaseMcpServer/FoodNutritionDatabaseMcpServer.csproj
    

MCP Tools

Usage Examples

You can interact with the MCP server in two ways:

  • Natural language (via an MCP Host or compatible client):

    • 「給我一些常見的富含維他命C的蔬菜」
    • 「比較地瓜和馬鈴薯的蛋白質含量」
    • 「哪些魚類富含 Omega-3?」
    • 「雞蛋的營養成分?」
  • SQL queries (using the QueryDatabase tool):

    • SELECT * FROM nutrition_data WHERE 樣品名稱 LIKE '%雞蛋%';
    • SELECT 樣品名稱, 粗蛋白(g) FROM nutrition_data WHERE 樣品名稱 IN ('地瓜', '馬鈴薯');

The server will respond with relevant nutrition data from the database, either as a table or a natural language answer (depending on your client).

Project Structure

  • FoodNutritionDatabaseMcpServer/ - Main MCP server project
  • Data/ - Nutrition database

License

This project is licensed under the MIT License. See the file for details.