Set up in AI applications
This guide connects the Nutritionist Pro MCP server to desktop AI applications. Use the CLI tools guide instead if you work in Claude Code or the Codex CLI.
This page uses the production server URL https://mcp.nutritionistpro.com. Wherever you see <MCP_API_KEY>, paste your personal MCP key (it starts with npmcp_).
Before you start
You need:
- A personal MCP key (
<MCP_API_KEY>). See Get your MCP key if you do not have one yet. - Node.js 18 or newer installed, which provides the
npxcommand used to bridge to the remote server.
Claude Desktop
Claude Desktop reads MCP servers from a JSON config file. The Nutritionist Pro server is remote (HTTP), so connect to it through the mcp-remote bridge.
-
Open Claude Desktop and go to Settings > Developer > Edit Config. This opens (or creates) the config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add a
nutritionist-proentry undermcpServers:{"mcpServers": {"nutritionist-pro": {"command": "npx","args": ["-y","mcp-remote@latest","https://mcp.nutritionistpro.com","--header","Authorization:${NP_AUTH}"],"env": {"NP_AUTH": "Bearer <MCP_API_KEY>"}}}}The header value is read from the
NP_AUTHenvironment variable defined in theenvblock. Passing the key this way (rather than inline inargs) avoids issues with spaces in the header value.If you already have other servers in
mcpServers, addnutritionist-proalongside them rather than replacing the block. -
Save the file and fully quit and reopen Claude Desktop.
-
Confirm the connection: open a new chat, open the tools/connectors menu, and check that nutritionist-pro is listed. Ask the assistant to "use the nutritionist-pro
whoamitool" to verify it is authenticated as the right account.
On plans that support remote MCP connectors, you can instead add the server through Settings > Connectors > Add custom connector and paste https://mcp.nutritionistpro.com. Use this if you prefer not to edit the config file. The config-file method above works on all desktop versions.
Codex (desktop app)
The Codex desktop app reads MCP servers from its configuration. Add the Nutritionist Pro server the same way, using the mcp-remote bridge.
-
Open the Codex configuration file at
~/.codex/config.toml(create it if it does not exist). -
Add an
mcp_servers.nutritionist-protable:[mcp_servers.nutritionist-pro]command = "npx"args = ["-y","mcp-remote@latest","https://mcp.nutritionistpro.com","--header","Authorization:${NP_AUTH}",][mcp_servers.nutritionist-pro.env]NP_AUTH = "Bearer <MCP_API_KEY>" -
Save the file and restart Codex.
-
Confirm the server appears in Codex's tool list, then ask it to run the
whoamitool to verify authentication.
Troubleshooting
- Server does not appear: make sure the app was fully restarted (quit, not just closed), and that the JSON or TOML is valid (no trailing commas in JSON).
- Authentication errors: double-check
<MCP_API_KEY>and that theNP_AUTHvalue keeps theBearerscheme prefix (for exampleBearer npmcp_...). npxnot found: install Node.js 18+ and reopen the app so it picks up the newPATH.