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.