Sponsored by Deepsite.site

mcp-server-agribalyse

Created By
tracy040401a year ago
MCP Server of Agribalyse API
Content

mcp-server-agribalyse

🌿 A Model Context Protocol (MCP) server for querying the ADEME Agribalyse 3.1 dataset.

This MCP server provides tools and resources to interact with the Agribalyse public API, enabling Large Language Models to retrieve and analyze environmental impact data on food products.

⚠️ Note: This server is based on the FastMCP framework and is actively maintained. API coverage may evolve.


🚀 Overview

Agribalyse is a dataset published by ADEME, offering environmental indicators (climate impact, water use, ecotoxicity, etc.) for thousands of food products.

This MCP server allows LLMs to:

  • Search food product data.
  • Aggregate environmental metrics.
  • List possible filter values.
  • Understand dataset structure.

🧰 Tools

Tool NameDescription
read_linesQuery rows from the Agribalyse dataset
get_valuesGet distinct values for a given text field
get_metric_aggCompute a single metric (avg, min, etc.) on a numeric field
get_simple_metrics_aggCompute metrics on one or more fields at once
get_words_aggRetrieve most frequent tokens in a text field
read_schemaGet the complete column schema of the dataset
read_safe_schemaGet a reduced version of the column schema
read_api_docsFetch the full OpenAPI specification from the ADEME API

📚 Resources

URIDescription
agribalyse://fieldsList of allowed text fields for querying
agribalyse://filesAvailable data files published by ADEME
agribalyse://sample-linesA sample of dataset rows
agribalyse://columns/sortablesFields that can be used for sorting
agribalyse://metrics/fieldsNumeric fields usable for aggregation
agribalyse://metrics/typesSupported metric types (avg, sum, percentiles, etc.)
agribalyse://fields/descriptionsHuman-readable descriptions of each dataset column

💬 Prompts

This server also includes predefined prompts for easier interaction:

  • search_product: Ask for environmental info about a named product
  • ask_stat: Ask for a specific metric on an indicator
  • compare_products: Compare two products by one indicator
  • list_field_values: List possible values of a given field
  • sample_prompt: Ask to preview sample data
  • explain_indicator: Ask for an explanation of an indicator
  • custom_query_prompt: Prompt chain for guided query refinement

🧪 Debugging

You can inspect server behavior using:

npx @modelcontextprotocol/inspector uvx run src/agribalyse/server.py

Or follow logs using:

mcp dev server.py

🧑‍💻 Client Example

To test the MCP server using a client, an example client implementation using OpenAI is provided.

Run the client with:

python client/client.py

This will execute example prompts and display the server responses, allowing you to observe how the MCP server handles requests.

🧪 Running Tests

To run the test suite using pytest, make sure your virtual environment is activated and then run:

pytest tests/test_mcp_tools

This will execute all unit tests and validate the MCP tools integration.

👩‍💻 Maintainer

Author: Tracy André

Organization: Positive Solutions

Contact: tracy.andre@food-pilot.eu

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
CursorThe AI Code Editor
ChatWiseThe second fastest AI chatbot™
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
DeepChatYour AI Partner on Desktop
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Amap Maps高德地图官方 MCP Server
Tavily Mcp
Playwright McpPlaywright MCP server
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Serper MCP ServerA Serper MCP Server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code