
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

An MCP server that exposes a SQL query function for the ANSES Ciqual French food composition database.
ANSES Ciqual MCP Server is cataloged as an MCP server attributed to zzgael. An MCP server that exposes a SQL query function for the ANSES Ciqual French food composition database. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for ANSES Ciqual MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It queries the ANSES Ciqual French food composition database.
Yes. Queries must be SELECT or WITH statements, which gives read-only access.
Yes. Food names are available in French and English, and full-text search supports fuzzy matching with French/English names.
README.md · 82b5f4b499ae · 采集于 2026-11-13 08:13:09 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
An MCP (Model Context Protocol) server providing SQL access to the ANSES Ciqual French food composition database. Query nutritional data for over 3,000 foods with full-text search support.

pip install ciqual-mcp
uvx ciqual-mcp
git clone https://github.com/zzgael/ciqual-mcp.git
cd ciqual-mcp
pip install -e .
Add to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"ciqual": {
"command": "uvx",
"args": ["ciqual-mcp"]
}
}
}
Add to your Gemini CLI configuration file ~/.gemini/settings.json:
{
"mcpServers": {
"ciqual": {
"command": "uvx",
"args": ["ciqual-mcp"]
}
}
}
Add to your Codex CLI configuration file ~/.codex/config.toml:
[mcp_servers.ciqual]
command = "uvx"
args = ["ciqual-mcp"]
The server implements the Model Context Protocol and exposes a single query function:
# Start the server standalone (for testing)
ciqual-mcp
from ciqual_mcp.data_loader import initialize_database
# Initialize/update the database
initialize_database()
# Then use SQLite directly
import sqlite3
conn = sqlite3.connect("~/.ciqual/ciqual.db")
cursor = conn.execute("SELECT * FROM foods WHERE alim_nom_eng LIKE '%apple%'")
queryThe server exposes a single MCP function for executing SQL queries on the Ciqual database.
async def query(sql: str) -> list[dict]
sql (string, required): The SQL query to execute on the database
foods_fts tablelist[dict]: Array of result rows, where each row is a dictionary with column names as keys
"error" key if query failsThe function returns an error dictionary in these cases:
{"error": "Database not initialized..."}{"error": "Only SELECT queries are allowed for safety."}{"error": "SQL error: [details]"}{"error": "Table not found. Available tables: foods, nutrients, composition, foods_fts, food_groups"}{
"method": "query",
"params": {
"sql": "SELECT f.alim_nom_eng, n.const_nom_eng, c.teneur, n.unit FROM foods f JOIN composition c ON f.alim_code = c.alim_code JOIN nutrients n ON c.const_code = n.const_code WHERE f.alim_nom_eng LIKE '%apple%' AND n.const_code IN (328, 25000, 31000)"
}
}
[
{
"alim_nom_eng": "Apple, raw",
"const_nom_eng": "Energy",
"teneur": 52.0,
"unit": "kcal/100g"
},
{
"alim_nom_eng": "Apple, raw",
"const_nom_eng": "Protein",
"teneur": 0.3,
"unit": "g/100g"
}
]
foods - Food itemsalim_code (INTEGER, PK): Unique food identifieralim_nom_fr (TEXT): French namealim_nom_eng (TEXT): English namealim_grp_code (TEXT): Food group codenutrients - Nutrient definitionsconst_code (INTEGER, PK): Unique nutrient identifierconst_nom_fr (TEXT): French nameconst_nom_eng (TEXT): English nameunit (TEXT): Measurement unit (g/100g, mg/100g, etc.)composition - Nutritional valuesalim_code (INTEGER): Food identifierconst_code (INTEGER): Nutrient identifierteneur (REAL): Value per 100gcode_confiance (TEXT): Confidence level (A/B/C/D)foods_fts - Full-text searchVirtual table for fuzzy matching with French/English names
| Category | Code | Nutrient | Unit |
|---|---|---|---|
| Energy | 327 | Energy | kJ/100g |
| 328 | Energy | kcal/100g | |
| Macros | 25000 | Protein | g/100g |
| 31000 | Carbohydrates | g/100g | |
| 40000 | Fat | g/100g | |
| 34100 | Fiber | g/100g | |
| 32000 | Sugars | g/100g | |
| Minerals | 10110 | Sodium | mg/100g |
| 10200 | Calcium | mg/100g | |
| 10260 | Iron | mg/100g | |
| 10190 | Potassium | mg/100g | |
| Vitamins | 55400 | Vitamin C | mg/100g |
| 56400 | Vitamin D | µg/100g | |
| 51330 | Vitamin B12 | µg/100g |
-- Find foods by name
SELECT * FROM foods WHERE alim_nom_eng LIKE '%orange%';
-- Fuzzy search (handles typos)
SELECT * FROM foods_fts WHERE foods_fts MATCH 'orang*';
-- Get vitamin C content for oranges
SELECT f.alim_nom_eng, c.teneur as vitamin_c_mg
FROM foods f
JOIN composition c ON f.alim_code = c.alim_code
WHERE f.alim_nom_eng LIKE '%orange%'
AND c.const_code = 55400;
-- Find foods highest in protein
SELECT f.alim_nom_eng, c.teneur as protein_g
FROM foods f
JOIN composition c ON f.alim_code = c.alim_code
WHERE c.const_code = 25000
ORDER BY c.teneur DESC
LIMIT 10;
-- Compare macros for different foods
SELECT
f.alim_nom_eng as food,
MAX(CASE WHEN c.const_code = 25000 THEN c.teneur END) as protein_g,
MAX(CASE WHEN c.const_code = 31000 THEN c.teneur END) as carbs_g,
MAX(CASE WHEN c.const_code = 40000 THEN c.teneur END) as fat_g,
MAX(CASE WHEN c.const_code = 328 THEN c.teneur END) as calories_kcal
FROM foods f
JOIN composition c ON f.alim_code = c.alim_code
WHERE f.alim_nom_eng IN ('Apple, raw', 'Banana, raw', 'Orange, raw')
AND c.const_code IN (25000, 31000, 40000, 328)
GROUP BY f.alim_code, f.alim_nom_eng;
-- Find low-sodium foods (<100mg/100g)
SELECT f.alim_nom_eng, c.teneur as sodium_mg
FROM foods f
JOIN composition c ON f.alim_code = c.alim_code
WHERE c.const_code = 10110
AND c.teneur < 100
ORDER BY c.teneur ASC;
-- High-fiber foods (>5g/100g)
SELECT f.alim_nom_eng, c.teneur as fiber_g
FROM foods f
JOIN composition c ON f.alim_code = c.alim_code
WHERE c.const_code = 34100
AND c.teneur > 5
ORDER BY c.teneur DESC;
Data is sourced from the official ANSES Ciqual database:
The database is automatically updated yearly when the server starts (data hasn't changed since 2020, so yearly updates are sufficient).
MIT License - See LICENSE file for details
Contributions are welcome! Please feel free to submit a Pull Request.
# Install development dependencies
pip install -e .
pip install pytest pytest-asyncio
# Run unit tests
python -m pytest tests/test_server.py -v
# Run functional tests (requires database)
python -m pytest tests/test_functional.py -v
~/.ciqual/ directorypython -m ciqual_mcp.data_loader~/.ciqual/ciqual.db and restartDeveloped by Gael Debost as part of GPT Workbench, a multi-LLM interface for medical research developed by Ideagency.
Data provided by ANSES (Agence nationale de sécurité sanitaire de l'alimentation, de l'environnement et du travail).
If you use this tool in your research, please cite:
@software{ciqual_mcp,
title = {ANSES Ciqual MCP Server},
author = {Gael Debost},
year = {2025},
url = {https://github.com/zzgael/ciqual-mcp}
}
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for ANSES Ciqual MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/anses-ciqual-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.