Skip to content

Setup · Cursor and VS Code

Samsung Food MCP in Cursor and VS Code.

Plan dinner from the same agent you write code with. Both editors start the server over stdio from a small JSON file.

Cursor
~/.cursor/mcp.json
VS Code
.vscode/mcp.json
Transport
stdio, or HTTP with an API key
Needs
Node.js 20 or newer

Let the setup do it

Terminal
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:

~/.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:

.vscode/mcp.json
{
  "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:

Cursor, MCP over HTTP
{
  "mcpServers": {
    "samsung-food": {
      "url": "http://127.0.0.1:8787/mcp",
      "headers": {
        "Authorization": "Bearer <key>"
      }
    }
  }
}
VS Code, MCP over HTTP
{
  "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 login first. The server reads the stored session.
  • node or npx not found (common with nvm and other version managers): use the absolute path of the binary (which npx).
  • Windows: if npx cannot 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.