chowapi-mcp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -0
- package/dist/index.js +13925 -0
- package/package.json +40 -0
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# chowapi-mcp
|
|
2
|
+
|
|
3
|
+
MCP server for [ChowAPI](https://chowapi.dev) — search 784K+ foods and get nutrition data directly from Claude Desktop, Claude Code, or any MCP client.
|
|
4
|
+
|
|
5
|
+
34 nutrients per food, barcode lookup, allergen data, and 600+ restaurant chains.
|
|
6
|
+
|
|
7
|
+
## Setup
|
|
8
|
+
|
|
9
|
+
### Claude Desktop
|
|
10
|
+
|
|
11
|
+
Add to your `claude_desktop_config.json`:
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"mcpServers": {
|
|
16
|
+
"chowapi": {
|
|
17
|
+
"command": "npx",
|
|
18
|
+
"args": ["-y", "chowapi-mcp"],
|
|
19
|
+
"env": {
|
|
20
|
+
"CHOWAPI_API_KEY": "chow_live_YOUR_KEY"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Claude Code
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
claude mcp add chowapi -- env CHOWAPI_API_KEY=chow_live_YOUR_KEY npx -y chowapi-mcp
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Get an API key at [chowapi.dev/signup](https://chowapi.dev/signup). Credit packs start at $5 for 5K calls.
|
|
34
|
+
|
|
35
|
+
## Tools
|
|
36
|
+
|
|
37
|
+
### search_foods
|
|
38
|
+
Search foods by name with fuzzy/typo-tolerant matching. Returns nutrition facts per serving and per 100g.
|
|
39
|
+
- `query` (string): Food name (e.g. "chicken breast", "quaker oatmeal")
|
|
40
|
+
- `limit` (number, 1-20, default 5): Number of results
|
|
41
|
+
|
|
42
|
+
### lookup_barcode
|
|
43
|
+
Look up a food by UPC/EAN barcode. Returns full nutrition facts.
|
|
44
|
+
- `barcode` (string): 8-14 digit barcode
|
|
45
|
+
|
|
46
|
+
### get_food
|
|
47
|
+
Get a food by its ChowAPI ID. Returns full nutrition data.
|
|
48
|
+
- `id` (string): Food UUID
|
|
49
|
+
- `detailed` (boolean): If true, includes per-nutrient confidence, units, RDI, %RDI
|
|
50
|
+
|
|
51
|
+
## Environment Variables
|
|
52
|
+
|
|
53
|
+
- `CHOWAPI_API_KEY` — Your API key (required). Get one at [chowapi.dev/signup](https://chowapi.dev/signup).
|
|
54
|
+
- `CHOWAPI_BASE_URL` — Custom API URL (default: https://api.chowapi.dev)
|
|
55
|
+
|
|
56
|
+
## Documentation
|
|
57
|
+
|
|
58
|
+
Full API docs at [chowapi.dev/docs](https://chowapi.dev/docs).
|