npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@foodxdev/foodblock-mcp

v0.1.0

Published

MCP server for the FoodBlock protocol — lets any AI agent read, write, and query FoodBlocks

Readme

FoodBlock MCP Server

An MCP server that connects any AI agent to the FoodBlock protocol — the universal data primitive for the food system.

Quick Start

npx @foodxdev/foodblock-mcp

Or install globally:

npm install -g @foodxdev/foodblock-mcp
foodblock-mcp

Configure with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "foodblock": {
      "command": "npx",
      "args": ["-y", "@foodxdev/foodblock-mcp"]
    }
  }
}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Custom server URL

To point at a different FoodBlock server:

{
  "mcpServers": {
    "foodblock": {
      "command": "npx",
      "args": ["-y", "@foodxdev/foodblock-mcp"],
      "env": {
        "FOODBLOCK_URL": "http://localhost:3111"
      }
    }
  }
}

Configure with Claude Code

Add to your .claude/settings.json:

{
  "mcpServers": {
    "foodblock": {
      "command": "npx",
      "args": ["-y", "@foodxdev/foodblock-mcp"]
    }
  }
}

Tools

The server exposes 12 tools:

| Tool | Description | |------|-------------| | foodblock_info | System overview — call this first | | foodblock_create | Create a new block | | foodblock_update | Create a new version of an existing block | | foodblock_get | Fetch a block by hash | | foodblock_query | Search blocks by type, ref, or heads | | foodblock_chain | Trace the version history of a block | | foodblock_tree | Build the full provenance tree | | foodblock_heads | List latest versions of all entities | | foodblock_create_agent | Register an AI agent identity | | foodblock_agent_draft | Create a draft block as an agent | | foodblock_approve_draft | Approve an agent's draft | | foodblock_list_agents | List all AI agents |

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | FOODBLOCK_URL | https://api.foodx.world/foodblock | FoodBlock API endpoint |

How It Works

The server communicates over stdio using the Model Context Protocol. It connects to a live FoodBlock API server and exposes all protocol operations as MCP tools that any compatible AI agent can call.

AI Agent  <--stdio-->  MCP Server  <--HTTP-->  FoodBlock API

License

MIT