mcp-plu-upc

mcp-plu-upc

MCP server for looking up product information by UPC, EAN, GTIN barcodes and PLU produce codes.

Category
Visit Server

README

mcp-plu-upc

MCP server for looking up product information by UPC, EAN, GTIN barcodes and PLU produce codes.

Problem

Quick product lookups from barcodes — name, brand, nutrition, ingredients, packaging, origin, eco-score — without opening a browser or app. Use it from any MCP-compatible client (Claude Desktop, Cursor, etc.) via a lookup_upc tool call.

What It Does

Three MCP tools backed by the Open Food Facts database (4M+ products, free, no API key):

Tool Description
lookup_upc Look up a product by UPC/EAN/GTIN barcode (8-14 digits)
lookup_plu Look up produce by PLU code (4-5 digits, e.g. 4011=banana)
search_product Search products by name/brand (1-10 results)

Quick Start

git clone https://github.com/indigokarasu/mcp-plu-upc.git
cd mcp-plu-upc
node server.js
# Server starts on http://localhost:8789

Set PORT env var to change the port.

Deploy on Your Own Server

Systemd (recommended for always-on)

sudo cp upc-mcp.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable upc-mcp
sudo systemctl start upc-mcp

Edit the WorkingDirectory and ExecStart paths in upc-mcp.service to match your install location.

On Cloudflare Workers

The src/ directory contains the Cloudflare Workers version with KV caching. Deploy with:

npx wrangler deploy

Note: Cloudflare Workers currently cannot reach the OpenFood Facts API due to CF-to-CF SSL handshake failures (HTTP 525). Use the Node.js version for reliable data access.

Endpoints

Endpoint Method Description
/health GET Health check — returns {status: "ok"}
/mcp POST JSON-RPC MCP protocol
/ GET Info page (tool list)

MCP Protocol

Initialize

{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{}},"id":1}

List Tools

{"jsonrpc":"2.0","method":"tools/list","id":2}

Call Tool

curl -X POST http://localhost:8789/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"lookup_upc","arguments":{"barcode":"3017620422003"}},"id":3}'

Example Response

{
  "content": [{
    "type": "text",
    "text": "## Nutella\nBarcode: 3017620422003\nBrand: Nutella\nCategory: Petit-déjeuners > Produits à tartiner\nEco-Score: UNKNOWN\nProcessing: NOVA 4 — ultra-processed food\nPer 100g: 539 kcal, 6.3g protein, 57.5g carbs, 30.9g fat"
  }]
}

Claude Desktop Integration

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "upc-plu-lookup": {
      "command": "npx",
      "args": ["mcp-remote", "http://YOUR_SERVER:8789/mcp"]
    }
  }
}

Or for local use:

{
  "mcpServers": {
    "upc-plu-lookup": {
      "command": "node",
      "args": ["/path/to/mcp-plu-upc/server.js"]
    }
  }
}

Platform Notes

Platform Status Notes
Node.js (local/VPS) Works Recommended deployment
Cloudflare Workers Partial MCP protocol works; OFF API returns 525 (CF-to-CF SSL)
Fly.io Works ~$2/mo minimum (no free tier)
Render Works Free tier available (sleeps after 15min)

Project Structure

.
├── server.js           # Standalone Node.js MCP server
├── package.json
├── upc-mcp.service     # Systemd service file
├── src/index.ts        # Cloudflare Workers version (with KV caching)
├── wrangler.toml        # Workers config
└── README.md

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured