Allergen Detector
Checks food and cosmetic ingredients against each household member's allergies, incl. hidden names.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
claude mcp add --transport http allergen-detector 'https://allergen-detector-mcp.onrender.com/mcp' --header 'X-API-Key: <Optional partner key. Not needed for normal use.>'
{
"mcpServers": {
"allergen-detector": {
"type": "http",
"url": "https://allergen-detector-mcp.onrender.com/mcp",
"headers": {
"X-API-Key": "<Optional partner key. Not needed for normal use.>"
}
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
Allergen Detector MCP
The Allergen Detector matching engine as an MCP server, so AI assistants and shopping agents (ChatGPT, Claude, and others) can check a product against a household's allergies before recommending or buying it.
It uses the same matcher.js and allergen map as the Chrome extension (51 allergens, 1,078 names). The map refreshes daily from GitHub, so map updates reach agents with no redeploy.
Tools
| Tool | What it does |
|---|---|
check_product_allergens | Checks an ingredient list against one or more people's allergens (with severity) and returns who is affected, by which ingredient, and why. "Free from" claims never hide a real ingredient. |
lookup_ingredient | Tells which allergen an ingredient name belongs to ("sodium caseinate" → milk). |
list_supported_allergens | Lists the allergens the service covers. |
The same checks are also a plain web API for agents that don't use MCP: POST /api/check, POST /api/lookup and GET /api/allergens, described at /openapi.json.
API keys are optional. Set API_KEYS="muse=<key>,acme=<key>" on the host to give each partner its own key, sent as X-API-Key or Authorization: Bearer. Requests without a key still work; a wrong key gets a 401. A valid key names the partner in /stats.
All tools are read-only and stateless. Nothing about the person (allergens, ingredients) is stored or logged. The only log is an anonymous count of tool calls per day, for measuring traction.
Run it
npm install
npm test # end-to-end test over MCP
npm start # remote server: http://localhost:3000/mcp
npm run stdio # local server for Claude Desktop and similar
npm run sync # copy the latest matcher.js and map from the extension
To use it locally in Claude Desktop, add this to the mcpServers section of its config:
"allergen-detector": { "command": "node", "args": ["/path/to/allergen-mcp/server.js", "--stdio"] }
Launch steps
- Host it at a public HTTPS URL. Render or Fly.io can run
npm startfrom a GitHub repo for $0–7/month. Later, pointmcp.safi.aiat it. - Privacy policy and terms page. Every directory requires one. Until safi.ai is live, host it on GitHub Pages. Its main point: no health data is stored.
- List it in the official MCP Registry (registry.modelcontextprotocol.io) with the
mcp-publisherCLI, underio.github.daniellemeng1022/allergen-detector. Many clients and directories pull from it. - Submit to the community directories: Smithery, Glama, PulseMCP and mcp.so.
- Claude: anyone can add it today as a custom connector by pasting the URL. To appear in Anthropic's connectors directory, submit it through their directory form.
- ChatGPT: test it in developer mode, then submit it as an app through OpenAI's Apps SDK submission process. This needs a verified developer account.
- Meta Muse (do this first): submit at muse.ai/platform. Choose "Existing MCP," enter the hosted URL, choose "API keys" and give Meta a key from
API_KEYS(e.g.muse=…) so its calls show up asmusein/statsand payments to "no," then describe the service. Meta tests the live endpoint, so step 1 has to be done first. Muse already shops at Sephora, Walmart, Best Buy and the Shopify catalog, which covers both of our categories (cosmetics and food). - Instinct and similar assistants: Instinct doesn't document custom MCP support. It shops through Shopify and Shop Pay. Reach out for a partnership instead.
- Shopping agents: contact teams building agentic-commerce products and offer the endpoint free during a pilot.
- Measure: set
STATS_KEYon the host, then openhttps://<your-url>/stats?key=<STATS_KEY>to see calls by day, agent and tool. Aconnectcount is an agent connecting; tool counts are real checks./statsresets when the server restarts, but every count is also a[usage]JSON line in the host's logs. Track weekly checks and the number of distinct agents.
Before scaling
- Add rate limiting and an API key for heavy business users. Keep a free tier.
- Keep the disclaimer in every response. Don't present results as medical advice.
الأسئلة الشائعة
ما هو Allergen Detector؟
Checks food and cosmetic ingredients against each household member's allergies, incl. hidden names.
كيف أثبّت Allergen Detector؟
يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http allergen-detector 'https://allergen-detector-mcp.onrender.com/mcp' --header 'X-API-Key: <Optional partner key. Not needed for normal use.>'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج Allergen Detector إلى مفتاح API؟
نعم. يتطلب X-API-Key، وتضبطها في إعداداته.
هل Allergen Detector مفتوح المصدر؟
شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.
من يصون Allergen Detector؟
ينشره daniellemeng1022. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.