Three ways in

Build on the food graph

Use the MCP server from Claude Code or Cursor. Call the REST API with curl. Or install the SDK. Three paths, same protocol, no registration required.

Get StartedView on GitHub
3
Ways In
6
Base Types
0
Setup Required
MCPClaude Code, Cursor, Windsurf
// Add to MCP config, then talk:
> "Create a sourdough product, organic, ยฃ4.50"
โœ“ substance.product  a3f2c8...
REST APIcurl, fetch, any HTTP client
curl -X POST https://api.foodx.world/foodblock/ \
  -H "Content-Type: application/json" \
  -d '{"type":"substance.product","state":{"name":"Sourdough","organic":true,"price":4.5}}'
SDKJavaScript, Python, Go, Swift
import { create } from '@foodxdev/foodblock';
const bread = create('substance.product', {
  name: 'Sourdough', organic: true, price: 4.50
}); // bread.hash โ†’ SHA-256

API Categories

Everything you need to build on the FoodBlock protocol

API Explorer

Interactive API documentation with live code examples

{}

Blocks

Create, read, update, and query FoodBlocks. The core primitive: three fields (type, state, refs), content-addressed by SHA-256.

POST๐Ÿ” Auth

Create Block

/api/v1/foodblock

Create a new FoodBlock. The block hash is computed from canonical(type + state + refs) using SHA-256. Blocks are immutable and append-only.

โšก 100 requests/minute
GET

Read Block

/api/v1/foodblock/:hash

Retrieve a single block by its content-addressed SHA-256 hash.

โšก 200 requests/minute
GET

Query Blocks

/api/v1/foodblock

Query blocks by type, refs, visibility, and state fields. Supports pagination with limit and offset.

โšก 100 requests/minute
PUT๐Ÿ” Auth

Update Block

/api/v1/foodblock/:hash

Create a new version of a block. Appends a new block with refs.updates pointing to the previous hash. The original block is never modified.

โšก 100 requests/minute

SDK Quick Start

Get building with FoodBlock in your language of choice

Install
npm install @foodxdev/foodblock
Create a Block
import { create } from '@foodxdev/foodblock';

const bread = create('substance.product', {
  name: 'Sourdough Loaf',
  price: 4.50,
  organic: true,
  weight: { value: 500, unit: 'g' }
});

console.log(bread.hash); // SHA-256 content address
Query Blocks
const res = await fetch('https://api.foodx.world/foodblock/blocks?type=substance.product&limit=10');
const { blocks } = await res.json();
Provenance Tree
const tree = await fetch(`https://api.foodx.world/foodblock/tree/${bread.hash}`);
const provenance = await tree.json();
// Returns full ancestor chain: bread โ† flour โ† wheat โ† farm

The Agent Economy

AI agents are first-class participants. They register, trade, and learn using FoodBlocks.

Draft / Approve Pattern
๐Ÿค–
Agent
Creates draft
โ†’
๐Ÿ“
Draft Block
draft: true
โ†’
Auto-approve
amount < threshold
Human Approval
amount >= threshold
โ†’
โœ“
Confirmed
Signed block
Example: Surplus Food Rescue (Zero Humans)
16:00
๐Ÿž
Bakery Agenttransfer.donation
Posts 20 unsold loaves as surplus
16:04
๐Ÿ’š
Charity Agentobserve.claim
Auto-claims matching donation (within 5km)
16:05
๐Ÿš›
Logistics Agenttransfer.shipment
Bids on pickup route, ETA 17:15
17:15
๐Ÿ“ฆ
Logistics Agentobserve.confirmation
Confirms pickup, creates delivery block
17:30
โœ“
Charity Agentobserve.preference
Confirms receipt, stores supplier preference
30 minutes. 5 blocks. 3 agents. Zero human intervention. Full audit trail.
๐Ÿ”’
Scoped Capabilities
Agents can only create block types they are granted. transfer.order, substance.product, etc.
๐Ÿ’ฐ
Amount Caps
Maximum transaction value per action. Prevents runaway spending.
โฑ
Rate Limits
Maximum actions per hour. Prevents spam and abuse.
๐Ÿง 
Memory
Agents store learned preferences as observe.preference blocks. Append-only, portable.
๐ŸŒ
Federation
Agents discover peers across servers via .well-known/foodblock.
๐Ÿ”Œ
MCP Bridge
Any LLM gains food system superpowers via the MCP server. 12 tools.

Powered by the FoodBlock Protocol

Every API creates, reads, or traverses FoodBlocks. One primitive with three fields and six base types describes every food interaction.

Aactor
People & organisations
Pplace
Physical locations
Ssubstance
Ingredients & products
Ttransform
Cooking, processing, growing
Xtransfer
Sales, deliveries, gifts
Oobserve
Reviews, certifications, photos

What You Can Build

One protocol across all 14 sectors of the food system. Every device, agent, and platform speaks the same language.

Autonomous agents, agent-to-agent networks, and MCP as the protocol bridge between AI and the global food system.

1. Primary Production
๐Ÿšœ

Autonomous Farm Agent

AgTech platforms & agent framework builders

An autonomous agent tuned for farming. Checks soil sensors and weather APIs every hour, creates transform.harvest blocks when crops are picked, and messages the farmer on WhatsApp with yield summaries. Works offline first in any language.

transform.harvestobserve.measurementplace.field
// Farm Agent config
role: "Crop management & yield tracking"
tools: [foodblock-mcp, weather-api, whatsapp]
schedule: "every 1h"

// Agent loop:
// 1. Read soil moisture + weather forecast
// 2. If harvest window detected โ†’ alert farmer
// 3. On harvest confirmation:
//    create transform.harvest block
//    refs: { field, grower, season }
//    reply: "Logged 340kg tomatoes (af3cโ€ฆ)"
๐ŸŸ

Fishery Catch Logger

Marine tech & sustainable fishing platforms

Vessel mounted agent logs catches via voice or NFC fish tags. Creates substance blocks geotagged to the catch zone, linked to the vessel, skipper, and fishing licence. Meets EU catch documentation requirements out of the box.

substance.productactor.vesselplace.zone
// Skipper voice logs at sea:
// "120kg haddock, zone IVa"

create('substance.product', {
  species: 'Haddock',
  weight_kg: 120,
  method: 'line',
  zone: 'ICES IVa',
  vessel: 'FV Endeavour',
  logged_via: 'voice'
}, { vessel: vesselBlock.hash,
     licence: licenceBlock.hash,
     zone: zoneBlock.hash });
2. Processing & Manufacturing
๐Ÿญ

Batch Traceability Agent

Food manufacturers & ERP vendors

Every production batch is a transform block linking input ingredients to outputs. An MCP connected agent monitors the production line, creates blocks at each stage, and flags if any input has an expired certification.

transform.processsubstance.ingredientobserve.qc
// Agent monitors production line via MCP
create('transform.process', {
  batch: 'B-2026-0441',
  product: 'Tinned Tomatoes 400g',
  line: 'Line 3',
  output_units: 2400
}, { inputs: [tomato.hash, tin.hash,
              water.hash, salt.hash],
     facility: factory.hash,
     operator: shift.hash });
// Agent auto-checks: all input certs valid?
๐Ÿ‘๏ธ

Quality Control Vision

Machine vision & food safety companies

Cameras on the production line run real-time defect detection. Every inspection frame creates an observe block. Reject items are flagged and linked to the batch. The agent learns over time and shares defect patterns across a QC agent network.

observe.inspectionsubstance.producttransform.process
// Vision model on production line
create('observe.inspection', {
  model: 'foodqc-v3',
  result: 'pass',
  defects_found: 0,
  frame: 'cam-02-frame-88421',
  confidence: 0.99
}, { batch: batchBlock.hash,
     line: lineBlock.hash });

// On defect: alert + reject block
// Agents share defect patterns via network
3. Distribution & Logistics
๐ŸŒก๏ธ

Cold Chain Agent Fleet

Logistics companies & IoT platforms

A fleet of autonomous agents, one per vehicle or warehouse zone. Every few minutes they read IoT sensors, create observation blocks, and chain them to the shipment. Break the cold chain and the block graph proves exactly where and when.

observe.measurementtransfer.shipmentobserve.alert
// Cold Chain Agent (runs every 5 min)
// 1. Read temperature sensors (zone A-F)
// 2. For each reading:
//    create observe.measurement block
//    chain to previous reading
// 3. If temp > 5ยฐC for > 10 min:
//    create observe.alert block
//    refs: { shipment, sensor, last_ok }
//    notify duty_manager via Slack
๐Ÿง 

Supply Chain Copilot

Enterprise logistics & 3PL platforms

An MCP powered copilot that sees every block in the supply chain. Ask it "which shipments are at risk?" and it queries observation blocks for temperature anomalies, cross references ETAs, and suggests rerouting. All through natural language.

transfer.shipmentobserve.measurementplace.facility
// MCP tool call from Claude:
"Which chilled shipments arriving
 tomorrow have had temp breaches?"

โ†’ search_blocks({
    type: 'observe.alert',
    state: { severity: 'temp_breach' },
    since: '24h'
  })
โ†’ get_chain(alert.refs.shipment)
โ†’ "3 shipments flagged. SH-441 had
   2 breaches in transit. Recommend
   inspection on arrival."
4. Retail
๐Ÿช

Smart Shelf Agent

Retail tech & shelf monitoring companies

Computer vision on shelves tracks stock in real time. The agent creates substance blocks for new stock, observe blocks for shelf gaps, and triggers reorder transfer blocks when thresholds are hit. Connects to the supplier agent network for automated replenishment.

substance.productobserve.stockchecktransfer.order
// Agent checks every 15 min:
create('observe.stockcheck', {
  aisle: 'A3', shelf: 'S2',
  items: [
    { sku: 'OAT-500', count: 3, min: 8 },
    { sku: 'RYE-400', count: 12, min: 6 }
  ]
}, { store: storeBlock.hash });

// count < min โ†’ auto-reorder:
create('transfer.order', {
  sku: 'OAT-500', qty: 24
}, { store: store.hash,
     supplier: supplier.hash });
๐Ÿ“ฑ

Consumer Scan & Trace

Mobile app developers & retailers

Shoppers scan any barcode or NFC tag, resolve the block hash, and see the full story. Who grew it, how it travelled, every certification. One API call returns the entire provenance tree. Builds trust, drives brand loyalty.

observe.scansubstance.producttransfer.shipment
// Scan barcode โ†’ resolve GS1 โ†’ tree
const tree = await fetch(
  `${API}/foodblock/tree/${hash}`
);
// Returns:
// substance.product (Organic Oats)
//  โ”œโ”€ actor.venue (Highland Farm)
//  โ”œโ”€ observe.certification (Soil Assoc.)
//  โ”œโ”€ transfer.shipment (Edinburghโ†’London)
//  โ””โ”€ place.field (Inverness, Scotland)
// All hashes verifiable by the consumer
5. Hospitality
๐Ÿจ

Hotel Kitchen Agent

Hospitality groups & hotel management systems

A single agent managing inventory across multiple hotel kitchens. Syncs stock levels on a schedule, tracks inter venue transfers, and auto creates purchase orders. The MCP connection lets the head chef ask "what's the truffle stock across all venues?" in plain English.

substance.ingredienttransfer.internalplace.venue
// Chef asks via MCP:
"Truffle stock across all venues?"

โ†’ search_blocks({
    type: 'substance.ingredient',
    state: { name: 'truffle' }
  })
โ†’ "The Savoy: 200g (received yesterday)
   Claridge's: 50g (reorder suggested)
   The Connaught: 0g (order in transit)"

// Auto-reorder for venues below threshold
๐ŸŽช

Event Catering Tracker

Catering companies & event platforms

Every event is a place block. Every dish served is a transfer. Every ingredient is traced back to the supplier. Post event, the block graph generates allergen compliance reports, waste metrics, and supplier performance reviews automatically.

place.eventtransfer.serviceobserve.compliance
create('transfer.service', {
  event: 'Tech Summit 2026',
  covers: 450,
  menu: ['salmon_canapes', 'vegan_bowl',
         'chocolate_tart'],
  allergen_protocols: ['nut_free_zone']
}, { event: eventBlock.hash,
     caterer: catererBlock.hash,
     menu_items: [salmon.hash, vegan.hash,
                  choc.hash] });
// Post-event agent generates full report
6. Food Service
๐Ÿฝ๏ธ

Restaurant POS Integration

POS system vendors & restaurant groups

Every order is a transfer block linked to menu items and suppliers. Surface allergens in real-time, trace ingredients back to the farm, and give diners a QR code on the receipt that resolves the full provenance chain for what they just ate.

transfer.ordersubstance.dishactor.venue
create('transfer.order', {
  items: ['sourdough_toast', 'flat_white'],
  total: 12.50,
  table: 4,
  allergens: ['gluten', 'dairy'],
  receipt_qr: true // generates trace URL
}, { venue: cafeBlock.hash,
     menu: menuBlock.hash });

// Diner scans receipt QR:
// โ†’ sees sourdough from Borough Bakery
// โ†’ flour from Wessex Mill
// โ†’ wheat from Hampshire farm
๐Ÿ‘ป

Dark Kitchen Multi-Brand Agent

Ghost kitchen operators & delivery platforms

One physical kitchen, five virtual brands. An autonomous agent manages shared inventory across brands, creates separate transfer.order blocks per brand, and optimises prep schedules. Cross-brand ingredient sharing is tracked block-by-block.

actor.brandtransfer.ordersubstance.ingredient
// Agent manages 5 brands from 1 kitchen
// Shared inventory, separate order streams

// Brand A order:
create('transfer.order', {
  brand: 'Burger Society',
  items: ['classic_burger', 'fries'],
  platform: 'deliveroo'
}, { kitchen: kitchen.hash,
     brand: burgerBrand.hash });

// Agent: "Tomato stock shared across
// 3 brands, reorder at 5kg threshold"
7. Food Waste & Sustainability
โ™ป๏ธ

Surplus Matching Network

Waste redistribution & charity platforms

An agent network for food surplus. Restaurant agents post surplus blocks. Charity agents subscribe by food type and location. Logistics agents bid on pickup routes. No humans in the loop. Agents negotiate, match, and schedule autonomously.

transfer.donationobserve.availabilityactor.agent
// Bakery agent posts at 16:00:
create('transfer.donation', {
  items: ['sourdough_x20', 'rye_x12'],
  weight_kg: 18,
  available_until: '18:00',
  pickup: 'SE1 9SG'
}, { donor: bakery.hash });

// Charity agent auto-claims (4 min):
// Logistics agent routes pickup:
// โ†’ "Driver ETA 17:15, 2.3km away"
// All blocks linked โ†’ auditable trail
๐ŸŒ

Carbon Footprint Agent

ESG platforms & sustainability consultancies

An agent that walks the block graph for any product and calculates total CO2 from farm to shelf. Transport distances, processing energy, packaging. Creates an observe.carbon block. Brands display verified carbon labels. Auditors verify on chain.

observe.carbontransfer.shipmenttransform.process
// Agent traverses full provenance chain:
const chain = await get_chain(product.hash);

// Calculates CO2 at each step:
create('observe.carbon', {
  total_co2_kg: 2.4,
  breakdown: {
    farming: 0.8, processing: 0.3,
    transport: 1.1, packaging: 0.2
  },
  methodology: 'GHG Protocol'
}, { product: product.hash,
     chain: chain.map(b => b.hash) });
8. Regulation & Food Safety
๐Ÿ”ฌ

HACCP Compliance Agent

Food safety consultancies & EHO platforms

An autonomous agent that monitors HACCP critical control points via connected sensors. Creates observation blocks for temperature, pH, and hygiene checks on a continuous schedule. Gaps in the record are flagged instantly. Inspection ready reports generated on demand via MCP.

observe.inspectionobserve.measurementplace.facility
// HACCP Agent (continuous monitoring)
- Check CCP sensors (temp, pH, metal det.)
- For each CCP:
  โ†’ create observe.measurement block
  โ†’ if out of limits:
    โ†’ create observe.alert (corrective action)
    โ†’ notify food_safety_manager
- Generate daily HACCP log (all blocks)
- Flag any gaps > 30 min (non-compliance)
๐Ÿšจ

Recall Propagation Engine

Food brands, regulators & retailers

When a contamination is detected, an agent creates an observe.recall block and traverses every downstream ref. Every shipment, every store, every consumer scan. Within minutes, every affected party has a notification. The block graph IS the recall audit trail.

observe.recalltransfer.shipmentsubstance.product
// Contamination detected at processor:
create('observe.recall', {
  reason: 'Salmonella detected',
  batch: 'B-2026-0441',
  severity: 'class_1'
}, { batch: batchBlock.hash,
     lab_report: labBlock.hash });

// Agent traces all downstream blocks:
// โ†’ 12 shipments, 47 stores, 3 regions
// โ†’ Auto-notifies each store agent
// โ†’ Stores pull product within 2 hours
// โ†’ Full audit trail in the block graph
9. Food Education & Media
๐Ÿ“–

Recipe Knowledge Graph

Recipe platforms & cooking apps

Every recipe is a transform block with refs to ingredient substance blocks. Fork a recipe and the block chain preserves attribution. An MCP copilot lets users ask "what can I make with what's in my fridge?" and it cross-references inventory blocks with the recipe graph.

transform.recipesubstance.ingredientactor.chef
create('transform.recipe', {
  name: 'Sourdough Bread',
  servings: 1,
  time_hours: 18,
  steps: ['mix', 'fold_x4', 'prove',
          'shape', 'bake_230c_35m']
}, { author: chefBlock.hash,
     ingredients: [flour.hash, water.hash,
                   salt.hash, starter.hash],
     forked_from: originalRecipe.hash });

// MCP: "What can I make with flour,
//  eggs, and butter?" โ†’ 47 matches
๐ŸŽฌ

Food Media Agent

Food journalists, influencers & content platforms

An agent that generates provenance stories from block data. "This sourdough travelled 12 miles from a Hampshire wheat field, through Wessex Mill, to your local bakery." Content teams get verified narratives, not marketing copy. Every claim is verifiable on chain.

observe.storysubstance.productactor.venue
// Agent generates content from blocks:
"Tell the story of this sourdough"

โ†’ get_tree(sourdough.hash)
โ†’ Agent composes:

"This loaf started as Maris Otter wheat
 grown by James at Leckford Farm (51.1ยฐN).
 Milled at Wessex Mill on 12 Feb.
 Baked at Bread & Butter, Borough Market.
 12 miles, 3 hands, 0 additives."

// Every fact linked to a verifiable block
10. Community & Social Food
๐Ÿ˜๏ธ

Community Fridge Agent

Community food projects & local councils

A WhatsApp agent for community fridges. Donors text what they're dropping off. The agent creates substance blocks, tracks stock, and broadcasts availability to local residents. When items aren't claimed, it alerts food bank agents nearby.

substance.producttransfer.donationplace.community
// Donor texts WhatsApp bot:
// "Dropping off 6 eggs and some milk"

create('transfer.donation', {
  items: ['eggs_x6', 'milk_1L'],
  donor_type: 'individual',
  logged_via: 'whatsapp'
}, { fridge: communityFridge.hash,
     donor: donor.hash });

// Agent broadcasts to local group:
// "Fresh items just added! 6 eggs,
//  1L milk. First come first served."
// Unclaimed after 12h โ†’ food bank alert
๐ŸŒฑ

Community Garden Network

Urban farming & allotment platforms

Every plot, every planting, every harvest is a block. Gardeners log via voice or app. Agents aggregate harvest data across the network, coordinate seed swaps as transfer blocks, and generate seasonal yield reports for the whole community.

transform.harvestplace.plottransfer.swap
create('transform.harvest', {
  crop: 'Courgettes',
  quantity_kg: 4.2,
  method: 'no-dig organic',
  plot: 'Plot 17'
}, { garden: gardenBlock.hash,
     grower: growerBlock.hash });

// Network agent aggregates:
// "This season: 2.4 tonnes across
//  34 plots. Top crop: tomatoes.
//  Surplus courgettes โ†’ food bank"
11. Health & Nutrition
๐Ÿ“Š

Dietary AI Agent

Health apps, dietitians & wearable companies

Every meal, supplement, and biomarker is a block. A health agent reads your CGM, correlates glucose with meal blocks, and learns what works for your body. Clinical-grade data with cryptographic proof of what was consumed and when.

substance.mealobserve.measurementactor.user
// Agent reads continuous glucose monitor:
create('observe.measurement', {
  metric: 'blood_glucose',
  value: 5.4, unit: 'mmol/L',
  timing: 'post_meal_2h'
}, { meal: lunchBlock.hash,
     subject: userBlock.hash });

// After 30 days, agent reports:
// "Your glucose spikes 40% less with
//  sourdough vs white bread. Oats
//  at breakfast keep you stable until
//  lunch. Here's the block evidence."
๐Ÿงช

Clinical Trial Food Logger

CROs, clinical research & pharma

Participants log meals via voice or photo. Every entry is a cryptographically signed substance block. Researchers get tamper proof dietary compliance data. The block chain proves what was eaten, when, and by whom. Admissible as trial evidence.

substance.mealactor.participantobserve.compliance
// Participant logs via voice:
create('substance.meal', {
  description: 'Grilled chicken, rice, broccoli',
  photo_hash: 'sha256:a4f2...',
  logged_via: 'voice',
  trial_id: 'NCT-09284756',
  compliant: true
}, { participant: participant.hash,
     trial: trialBlock.hash,
     dietary_protocol: protocol.hash });

// Signed with participant's Ed25519 key
// Immutable, auditable, compliant
12. Food Finance & Economics
๐Ÿ“ˆ

Commodity Price Agent

Trading platforms & agricultural finance

An agent that monitors commodity markets and annotates substance blocks with real-time price data. Farmers get price alerts when their harvest blocks hit target values. Traders query the block graph for verified supply chain positions.

observe.pricesubstance.commodityactor.market
// Agent runs on every market tick:
create('observe.price', {
  commodity: 'wheat_milling',
  price: 215.40, currency: 'GBP',
  unit: 'tonne',
  exchange: 'LIFFE',
  timestamp: '2026-02-17T14:30:00Z'
}, { commodity: wheatType.hash });

// Farmer alert: "Your 340kg Roma
// tomatoes are worth ยฃ612 at today's
// wholesale price (+8% vs last week)"
๐Ÿ›ก๏ธ

Crop Insurance Agent

Agricultural insurers & parametric platforms

Harvest blocks plus weather observation blocks equals automated claims. The agent verifies harvest yields against insured amounts, checks weather blocks for drought or flood events, and processes parametric payouts directly from the block graph. No paperwork, no adjusters.

transform.harvestobserve.weathertransfer.payout
// Weather agent creates:
create('observe.weather', {
  event: 'drought',
  rainfall_mm: 2.1,  // vs 30mm expected
  period: '2026-01-15/2026-02-15',
  source: 'Met Office'
}, { region: regionBlock.hash });

// Insurance agent auto-processes:
// harvest.quantity < insured_yield
// AND drought.rainfall < threshold
// โ†’ create transfer.payout block
// โ†’ ยฃ4,200 released to farmer wallet
13. Cultural Food
๐Ÿบ

Heritage Recipe Preservation

Cultural institutions, UNESCO & food historians

Traditional recipes as immutable transform blocks with refs to region, culture, and lineage. A grandmother's biryani recipe becomes a permanent, hash verified block. Attributed, timestamped, and linked to its cultural origin. Forks preserve the evolution.

transform.recipeplace.regionactor.tradition
create('transform.recipe', {
  name: 'Nonna Rosa's Ragรน',
  origin: 'Naples, Campania',
  generation: 3,
  oral_history: true,
  technique: 'slow_braise_6h',
  notes: 'Never add garlic. Only San Marzano.'
}, { author: nonnaBlock.hash,
     region: campaniaBlock.hash,
     tradition: italianCooking.hash,
     parent_recipe: mammaRecipe.hash });

// Immutable. Attributed. Permanent.
๐Ÿ—บ๏ธ

Terroir & Regional Mapping

PDO/PGI bodies, regional food groups & tourism

Link products to geography, climate, soil, and tradition. A block graph that proves Champagne is from Champagne, Parmigiano is from Parma. Place blocks carry GIS data. Observe blocks hold climate records. The terroir is encoded in the graph.

place.regionsubstance.productobserve.terroir
create('observe.terroir', {
  product: 'Comtรฉ AOP',
  altitude_m: 850,
  soil_type: 'Jurassic limestone',
  grass_species: ['fescue', 'clover'],
  climate: 'continental_montane',
  ageing_months: 18
}, { product: comteBlock.hash,
     region: juraBlock.hash,
     certification: aopBlock.hash });

// Consumers scan โ†’ see the terroir
// "Aged 18 months in Jura caves, 850m.
//  Milk from Montbรฉliarde cows grazing
//  on limestone meadows since 1264."
14. Food Technology & Innovation
๐Ÿงฌ

Lab-Grown Meat Provenance

Cultivated meat companies & biotech

Every bioreactor cycle is a transform block. Cell line origin, growth media composition, harvest timestamps, all cryptographically linked. Consumers scan the pack and see the complete production history. Regulators audit the block graph, not paperwork.

transform.culturesubstance.productobserve.analysis
create('transform.culture', {
  product: 'Cultivated Chicken Breast',
  cell_line: 'CL-2024-0087',
  bioreactor: 'BR-12',
  cycle_hours: 336,
  yield_kg: 12.4,
  media: 'serum-free v3'
}, { cell_line: cellLineBlock.hash,
     facility: labBlock.hash,
     analysis: [sterility.hash,
                nutrition.hash,
                safety.hash] });
๐Ÿ”ฎ

MCP Food Copilot

AI companies, Claude/GPT/local model builders

Install the FoodBlock MCP server and every LLM gains food system superpowers. Ask "trace this salmon to the farm" and the agent traverses the chain in one tool call. Build food aware agents, copilots, and assistants through the standard MCP protocol.

substance.producttransfer.shipmentobserve.certification
// claude_desktop_config.json
{ "mcpServers": {
    "foodblock": {
      "command": "foodblock-mcp",
      "args": ["--api-url",
               "https://api.foodx.world"]
    }
  }
}
// Now ask Claude anything about food:
// "Trace this salmon back to the farm"
// "Is this product certified organic?"
// "What's the carbon footprint of this
//  supply chain?"
// โ†’ All answered from the block graph

Documentation

Quick Start Guide

Three ways to start using FoodBlocks. Pick whichever fits your workflow.

Option A: MCP Server โ€” Claude Code, Cursor, Windsurf

Add this to your MCP config. Your AI tool gets 12 food system tools instantly.

// Add to MCP config:
{
  "mcpServers": {
    "foodblock": {
      "command": "npx",
      "args": ["@anthropic/foodblock-mcp"]
    }
  }
}

// Then just ask:
// "Create a sourdough product, organic, ยฃ4.50"
// "Trace this block back to the farm"
// "Register an AI agent for my bakery"

Option B: REST API โ€” curl, fetch, any HTTP client

Hit the API directly. No auth needed for the sandbox.

# Create a block
curl -X POST https://api.foodx.world/foodblock/ \
  -H "Content-Type: application/json" \
  -d '{"type":"substance.product","state":{"name":"Sourdough","price":4.5,"organic":true}}'

# Query blocks by type
curl https://api.foodx.world/foodblock/?type=substance.product

# Get provenance tree
curl https://api.foodx.world/foodblock/HASH/tree

Option C: SDK โ€” JavaScript, Python, Go, Swift

Install the SDK and build FoodBlocks into your application.

npm install @foodxdev/foodblock

import { create } from '@foodxdev/foodblock';

const bread = create('substance.product', {
  name: 'Sourdough Loaf',
  price: 4.50,
  organic: true
});

console.log(bread.hash); // SHA-256 content address

Community & Support

๐Ÿ“ง

Email Support

Get help from our team

developers@foodx.world
๐Ÿ’ฌ

Discord Community

Join other developers

Join Discord
๐Ÿ“š

GitHub

SDKs, issues, and discussions

View on GitHub

Start in 30 seconds

Add the MCP server to your AI tool and start creating FoodBlocks in natural language. No registration required.

Get the MCP ServerTry the Playground