Skip to main content
MCP server CX Codex

FoodEx2 Encoder — Claude Code MCP server: FoodEx2 codes

FoodEx2 Encoder takes a food description written in English and returns an EFSA FoodEx2 code, with the base term, facets and free text for whatever the code cannot hold.

MIT updated 2026-10-23

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http foodex2-encoder https://foodex2-encoder.foodnotes.org/mcp
Open on GitHub

What FoodEx2 Encoder does

The server works through the MTX catalogue in stages: lexical lookup first, then a walk down the tree, term selection and residuals. There is a single tool, encode. It answers with the code, base term, facets, free text, a fit score, the method used and a short explanation.

Lexical matches come back in roughly a second. Anything that needs a catalogue walk usually runs 15–25 seconds. Input has to be English, foreign dish names included when English already uses them.

Node.js 20+ is required, plus Python 3 for the one-time catalogue build from the vendored .ecf file and a key for an OpenAI-compatible endpoint (OpenRouter by default). Check each code yourself. Where the catalogue only knows a name as several separate terms, that part lands in free text and the code ends up broader than the description.

What it helps with

  • get a FoodEx2 code for a dish name
  • split a product description into base term and facets
  • move what the code cannot express into free text
  • encode a batch from the CLI without a chat client
  • compare model output against the gold set in eval/encode-base-term.yaml

Example prompts for the agent

  • Encode “fried rice with chicken” in FoodEx2 and list the facets
  • Run “orange juice” through encode and explain the base term you picked
  • Encode “canned shellfish” and tell me what went into free text

How to install FoodEx2 Encoder

Platform CLI: remote server

claude mcp add --transport http foodex2-encoder https://foodex2-encoder.foodnotes.org/mcp

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about FoodEx2 Encoder

How do I install FoodEx2 Encoder in Claude Code?

Run claude mcp add --transport http foodex2-encoder https://foodex2-encoder.foodnotes.org/mcp. That connects the hosted server over HTTP.

What does FoodEx2 Encoder do?

It maps an English food description to an EFSA FoodEx2 code and returns the base term, facets and free text for the parts the code misses.

Why is the returned code sometimes broader than the description?

Some names exist in the catalogue only as several separate terms. The server then picks the more general term and puts the detail in free text — “canned shellfish” becomes canned seafood with the shellfish noted separately.

Similar MCP servers

All MCP servers for Data and databases →
tao-train-mask-auto-encoder NVIDIA Corporation tao-train-mask-auto-encoder — a skill for pretraining and fine-tuning Masked Auto-Encoders in NVIDIA TAO. Lets an agent drive train, evaluate, inference and export for MAE backbones. CX Codex +1 1,600installs rpg-encoder userFRM rpg-encoder builds a semantic graph of your repo with Tree-sitter and hands the agent a whole-project map in one call. Useful when code search drowns in grep and file reads. CX Codex +1 ★ 33repo stars vector-db-setup patricio0312rev vector-db-setup sets up vector databases like Pinecone and Chroma with OpenAI embedding pipelines and similarity search queries for AI apps. CX Codex +1 266installs zomato-ai-data-engineering-pipeline reason-machines zomato-ai-data-engineering-pipeline is a Claude Code skill for building a food delivery batch pipeline across S3, Snowflake, dbt, and Airflow, with OpenAI for review enrichment and text-to-SQL. CX Codex +1 128installs llm-document-extraction datadrivenconstruction The llm-document-extraction skill parses unstructured PDFs—RFIs, submittals, contracts, specifications—into structured JSON and Excel. Uses LLMs to analyze text, classify document types, and extract fields automatically. CX Codex +1 125installs embeddings-runtime-stinger Legion Code Inc. embeddings-runtime-stinger helps pick and run an embedding model: OpenAI, Cohere, Voyage AI or a self-hosted alternative. Triggers on model selection, swaps, batching and caching fixes. CX Codex +1 ★ 96repo stars

Project sponsors

Companies that keep this analytics open