david3951445/FoodNutritionDatabaseMcpServer
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
- Search for food data in an offline database built from Taiwan FDA Food Nutrition Database
Getting Started
Prerequisites
- .NET 8 SDK
- MCP client (or compatible tool)
Setup
- Clone this repository
- Restore and build:
dotnet restore dotnet build - 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 projectData/- Nutrition database
License
This project is licensed under the MIT License. See the file for details.