A Model Context Protocol (MCP) server built with Next.js that provides AI assistants with information about phytosanitary products from the French e-phy catalog (pesticides, fertilizers, adjuvants, mixtures and blends).
Data source: Open data e-phy (ANSES / data.gouv.fr)
| Tool | Description |
|---|---|
search_products |
Search phytosanitary products by name, active substance, AMM number, or holder |
get_product_by_amm |
Retrieve a product by its AMM (Autorisation de Mise sur le Marché) number |
get_product_details |
Get full details of a product by its internal e-phy ID |
get_product_usages |
List authorized usages (crops/targets) with dosage and safety requirements |
search_active_substances |
Search active substances by name with their approval status |
npm install
npm run devThe MCP server will be available at http://localhost:3000/mcp.
Add the following to your MCP client configuration:
{
"mcpServers": {
"ephy": {
"url": "http://localhost:3000/mcp"
}
}
}npm run build
npm startlib/ephy.ts– Type-safe client for the e-phy REST APIapp/[transport]/route.ts– Next.js App Router route handler that exposes the MCP server over Streamable HTTP (supports both GET/POST)
- Next.js 16 (App Router)
@modelcontextprotocol/sdk– Official TypeScript MCP SDK- Zod – Schema validation for tool parameters