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.