Let the setup do it
npx unofficial-samsung-food-mcp setup
It logs you in and writes the Cursor entry, with a backup of the file. For VS Code it prints the snippet below. Restart the editor afterwards.
Cursor
Global in ~/.cursor/mcp.json, or per project in .cursor/mcp.json:
{
"mcpServers": {
"samsung-food": {
"command": "npx",
"args": ["-y", "unofficial-samsung-food-mcp"]
}
}
}
Then ask the agent, for example: “Import this recipe link and plan it for Friday.”
VS Code
Create .vscode/mcp.json in the workspace, or run MCP: Open User Configuration from the command palette for your profile. Note the key servers (not mcpServers) and the type:
{
"servers": {
"samsung-food": {
"type": "stdio",
"command": "npx",
"args": ["-y", "unofficial-samsung-food-mcp"]
}
}
}
VS Code’s newer Copilot agent harness also reads a workspace-root .mcp.json with the key mcpServers, in the same shape as the Cursor example.
Over HTTP instead of stdio
When one running server should serve several clients, start the local HTTP API and point the editor at its /mcp endpoint with the API key:
{
"mcpServers": {
"samsung-food": {
"url": "http://127.0.0.1:8787/mcp",
"headers": {
"Authorization": "Bearer <key>"
}
}
}
}
{
"servers": {
"samsung-food": {
"type": "http",
"url": "http://127.0.0.1:8787/mcp",
"headers": {
"Authorization": "Bearer <key>"
}
}
}
}
For one editor on one machine, stdio is simpler: no key, no running server.
When it does not start
- Restart the editor after every config change. The server logs to stderr only; stdout carries the protocol.
- Not logged in: run the setup command or
sf loginfirst. The server reads the stored session. nodeornpxnot found (common with nvm and other version managers): use the absolute path of the binary (which npx).- Windows: if
npxcannot be launched directly, use"command": "cmd"with"args": ["/c", "npx", "-y", "unofficial-samsung-food-mcp"]. - Inspect it by hand:
npx @modelcontextprotocol/inspector npx -y unofficial-samsung-food-mcp.
More in troubleshooting.