NutriScan MCP server
A nutrition MCP server for Claude, Codex and your own agents
Connect an AI agent to the NutriScan Nutrition API with one command. The agent sends a line of text, a meal photo or a nutrition label photo and gets back each food with its portion in grams, 21 nutrients and a NutriScore grade from A to E.
A scan through MCP uses the same credits as the REST API. No seats, no MCP fee and no subscription.
Log my lunch: grilled chicken with rice and a green salad
Toolanalyze_meal
Inputtype text
Credits0 with a test key
Tool result
Grilled chicken with rice and salad
515kcal
- Grilled chicken breast248 kcal150 g
- Steamed white rice205 kcal1 cup (158 g)
- Green salad with olive oil62 kcal80 g
Lean protein and vegetables balance the rice; moderate sodium from the marinade.
Which tools does the server give an agent?
Three tools: analyze_meal, get_scan and get_usage. They are the same three calls as the REST API, and they return the same JSON.
analyze_mealNutrition for a text description (type: "text"), a meal photo URL ("meal") or a nutrition label photo URL ("label"). Optional language and context hints such as meal_time, cooking_method and consumed_quantity.Live key: credits per scan, the same as REST, about 65 for a typical plate. Test key: free, fixed sample result.get_scanAn earlier scan of your account, by id.Freeget_usageCredits left and credits used.FreeThe result is the same JSON as a REST scan: calories, macros, 21 nutrients, a NutriScore grade and each item with its portion. The rate limit is your account's REST limit, 60 requests a minute.
What does MCP access cost?
The same as the REST API. A scan through MCP uses the same credits as a REST scan, about 65 for a typical plate, and there are no seats, no MCP fee and no subscription.
No seats and no MCP fee
Every person and every agent on your account draws from one credit balance. Credits come in prepaid packs from $49, never expire, and cost the same whether a scan comes in through MCP or REST.
A free test key
Sign up and you get a test key that returns a fixed sample result and uses no credits, so you can wire up an agent and test it at no cost.
One header to sign in
The server reads your API key from an Authorization: Bearer header. It is the same key you use for REST, made in the console.
Text, meal photo and label photo
One tool takes all three. A single food is a line of text with an amount, such as 150 g of Greek yogurt.
12 languages
Pass language and food names come back in English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Russian, Turkish, Hindi or Arabic.
21 nutrients and a NutriScore
Calories, 7 macro fields and 13 micronutrients for each item, plus a grade from A to E with a one-line reason the agent can quote.
Checked 2026-11-29
For comparison, FatSecret's MCP server gives 5 seats by default on its Premier plans and sells MCP Team Seats. FatSecret MCP server guide Edamam's Food MCP is priced from $14 a month. Edamam Food MCP
How do I connect an agent?
Get a key, add the server to your client, and ask about a meal. In Claude Code that is one command.
Step-by-step pages for each client:
Get a key
Sign in at platform.nutriscan.app with your email and a 6-digit code. Your test key, starting
ns_test_, is ready right away.Add the server
Put the key in an environment variable, then add the server. This is the Claude Code command:
export NUTRISCAN_KEY="ns_test_..." claude mcp add --transport http nutriscan \ https://platform-api.nutriscan.app/mcp \ --header "Authorization: Bearer $NUTRISCAN_KEY"Ask about a meal
The agent calls
analyze_mealand answers from the result. Ask it for your credit balance and it callsget_usage.
A live key spends credits, and an agent in a loop can spend them fast. Build with a test key, keep the key in an environment variable instead of a committed file, and revoke it in the console if it leaks.
What can I ask once it is connected?
Ask in plain words. The agent picks the tool, sends the meal and answers from the numbers it gets back.
Photos go in as a public https link. Set language and the food names come back in German, French or any of the 12 languages.
What are the macros in a chicken burrito bowl with rice and beans?
Wie viele Kalorien hat ein Schnitzel mit Kartoffelsalat?
Analyze this meal photo: https://example.com/lunch.jpg
Read this nutrition label and tell me the sugar per serving: https://example.com/label.jpg
How many NutriScan credits do I have left?
How much do credits cost?
1 credit is $0.001, sold in three prepaid packs. A typical plate uses about 65 credits, so the $49 Starter pack covers about 750 meal photos.
Credits never expire and purchases are final. Failed scans and test scans cost 0.
Full pricing- Starter$4949,000 credits, about 750 meal photos
- Growth$199199,000 credits, about 3,000 meal photos
- Scale$599599,000 credits, about 9,200 meal photos
What does the MCP server not do yet?
It has no OAuth sign-in, takes photos by URL only, does not stream, and has no food search or barcode tool.
What it does
Reads a line of text, a meal photo or a nutrition label photo through analyze_meal.
Returns each food with its portion, 21 nutrients and a NutriScore grade, in the same JSON as REST.
Fetches earlier scans and your credit balance for free with get_scan and get_usage.
Works in Claude Code, the Claude desktop app, Codex and other clients that speak Streamable HTTP and can send a header.
What it does not do yet
No OAuth. The server signs in with an API key in a header, so the connector screen in claude.ai and the Claude mobile apps cannot connect to it.
Photos by public https URL only. There is no base64 upload through MCP; the REST API has one.
No streaming. A scan can take up to 95 seconds, so give the tool a timeout of 120 seconds where your client lets you set one.
No food search tool and no barcode tool. For one food, send text with an amount.
Questions about the MCP server
Setup for each client and every tool field are in the MCP docs.
What is the NutriScan MCP server?
A remote MCP server at https://platform-api.nutriscan.app/mcp that gives an AI agent three tools: analyze_meal, get_scan and get_usage. They are the same three calls as the NutriScan REST API and return the same JSON.
Does a scan through MCP cost more than through REST?
No. A scan through MCP uses the same credits as a REST scan, about 65 for a typical plate. There are no seats, no MCP fee and no subscription, and get_scan and get_usage are free.
Which clients can connect?
Any MCP client that speaks Streamable HTTP and can send an Authorization header. Claude Code and Codex connect directly. The Claude desktop app connects through the mcp-remote bridge, which needs Node.js. Other clients use the same url and headers settings as Claude Code.
Does it work in claude.ai or the Claude mobile apps?
Not yet. The connector screen in claude.ai and the Claude mobile apps need an OAuth sign-in, and the server signs in with an API key in a header. Use Claude Code, the Claude desktop app, Codex or another client that can send a header.
How do I test without spending credits?
Connect with a test key, which starts with ns_test_. It is free at sign-up, uses no credits and returns a fixed sample result in the live format: grilled chicken with rice and salad, grade B, 515 kcal. Swap in a live key when your agent is ready.
Can I send a photo from my computer?
Not through MCP. analyze_meal takes meal and label photos as a public https URL. To send image data directly, use the REST API, which accepts base64.
How long does a scan take?
A scan can take up to 95 seconds, and MCP results do not stream. Codex stops a tool after 60 seconds by default, so set tool_timeout_sec to 120 in its config.
Can the agent look up a single food or a barcode?
There is no food search tool and no barcode tool. For one food, send text with an amount, such as 150 g of Greek yogurt. For a packaged food, send a photo of its nutrition label with type label.
Give your agent real nutrition numbers
Sign in with your email, connect your client with the test key, and buy credits when your agent goes live.
- Test key at sign-up
- Packs from $49
- No subscription
- Credits never expire

