Foodblock MCP logo

Foodblock MCP

by FoodXDevelopment

Create, query, version, validate, and describe signed FoodBlocks through natural language or structured MCP tools.

Install Foodblock MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "foodxdevelopment-foodblock-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "foodblock-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

FoodXDevelopment/foodblock-mcp exposes the FoodBlock data model through MCP for recording food-system entities, events, relationships, and observations. Agents can submit plain-English descriptions through foodblock_fb or work directly with structured blocks covering actors, places, substances, transforms, transfers, and observations. Append-only updates, hashes, references, provenance trees, validation, agent identities, drafts, approvals, and tombstones support traceable data workflows. Reach for it when an agent needs structured, content-addressed food data without requiring application-specific schemas at the point of entry.

Use cases

  • Describe food products and receive structured records
  • Track ingredient, processing, and delivery provenance
  • Query the latest version of food-system entities
  • Manage agent-created drafts before approval
  • Validate or tombstone food records

Key features

  • Natural-language FoodBlock creation
  • Content-addressed SHA-256 records
  • Append-only version chains
  • Recursive provenance trees
  • Agent signing and draft approval
  • Schema validation and batch imports

Tools17

What Foodblock MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

20/20 checks healthy over the last 86d

What it can do

From the 17 tools this server returned when we ran it.

Handles credentials · 2Makes network requests · 2Read-only tools · 17
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age246 days
Maintainers1

Observed 2026-10-22 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · foodblock-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads137Package downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Tools exposed17Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Foodblock MCP works

What FoodXDevelopment/foodblock-mcp does

FoodXDevelopment/foodblock-mcp gives MCP-compatible AI clients an interface for creating and reading FoodBlocks. A FoodBlock is organized around three fields: a type, a state containing its properties, and refs linking it to other blocks. The server's food-oriented model covers actors such as people and organizations, places, ingredients and products, processing or cooking transforms, transfers such as sales and deliveries, and observations such as reviews or certifications.

The natural-language tool, foodblock_fb, accepts descriptions such as a product with a price and allergen information, a farm with acreage and crops, a temperature reading, or a flour order. It returns structured FoodBlocks without requiring the caller to select types, fields, or hashes. Applications that need exact control can use the lower-level creation and query tools instead.

Blocks are content-addressed with SHA-256 hashes. Updates are represented as new blocks rather than in-place edits, preserving a chain from the newest version back to the original. References can also connect related blocks into a provenance tree, such as a finished food linked to a transformation, its ingredients, and their source.

How it works

Start with foodblock_info to inspect server information, the number of stored blocks, and a protocol summary. Create records with foodblock_create, retrieve them by hash with foodblock_get, or search by type, reference, or head status using foodblock_query. foodblock_heads lists the latest block for each entity or item, while foodblock_chain follows version history and foodblock_tree recursively follows all references.

foodblock_update creates a replacement version and records the previous block through refs.updates. Its state argument replaces the complete prior state; it is not merged with the existing state. foodblock_batch accepts multiple blocks, orders them by dependency, and reports inserted, duplicate, and failed items.

The server also supports agent-mediated workflows. foodblock_create_agent registers an AI agent with an Ed25519 keypair and an operator, and foodblock_load_agent restores an agent from saved credentials after a restart. Agents can create drafts, while foodblock_approve_draft turns an approved draft into a confirmed version. foodblock_tombstone records a content-erasure action while retaining the target's hash, type, and references for chain continuity.

Setup and configuration

Run the standalone server with npx foodblock-mcp. The documented quick-start path requires no configuration, making it suitable for connecting from an MCP client without setting up a separate database or service. The server is intended for Claude, Cursor, Windsurf, Gemini CLI, and other MCP-compatible autonomous systems.

When creating an agent, save the returned credentials outside the running process. They are needed by foodblock_load_agent after a server restart and cannot be recovered after that restart. This matters whenever signed agent actions must continue across sessions.

Tools and capabilities

  • Create, update, retrieve, search, and batch FoodBlocks.
  • Inspect current heads, historical update chains, and recursive provenance trees.
  • Convert plain-English food descriptions into structured blocks with foodblock_fb.
  • Register agents, restore their credentials, and manage draft approval workflows.
  • Validate blocks against declared or supplied schemas, including required fields, types, references, and instance identifiers.
  • Mark blocks for content erasure through tombstone records.

Limitations and notes

FoodBlocks are append-only: changing a record creates another block rather than modifying the existing one. Updates replace the full state, so callers must provide every state property that should remain in the new version. Agent credentials require deliberate storage because a restart removes the ability to recover them from the server.

The protocol distinguishes duplicate batch entries from inserted and failed entries, so import code should inspect the returned counts. Validation returns an array of errors; an empty array indicates that the block passed the selected checks.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Foodblock MCP

FoodXDevelopment/foodblock-mcp is an MCP server that connects AI clients to the FoodBlock food-data system. Its main tools create, update, retrieve, query, validate, batch, and trace FoodBlocks, while foodblock_fb converts plain-English food descriptions into structured, content-addressed records.

Run it with npx foodblock-mcp. The standalone server is designed to work with zero configuration, so an MCP client can launch it without separately configuring a database or service.

Yes, FoodXDevelopment/foodblock-mcp works with Cursor. It is exposed over MCP and is also identified for use with Claude, Windsurf, Gemini CLI, and other MCP-compatible autonomous systems.

Use foodblock_fb to describe the food or event in plain English, or use foodblock_create for direct structured input. The natural-language tool can turn descriptions of products, farms, reviews, temperatures, and orders into FoodBlocks.

It preserves history by creating a new block for each update and linking it to the previous version through refs.updates. Use foodblock_chain to follow versions backward, or foodblock_tree to follow all references and inspect provenance.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFoodblock MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/foodxdevelopment-foodblock-mcp?style=directory)](https://allmcps.com/mcp/foodxdevelopment-foodblock-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/foodxdevelopment-foodblock-mcp"><img src="https://allmcps.com/api/badge/foodxdevelopment-foodblock-mcp?style=directory" alt="Foodblock MCP on AllMCPs" /></a>