Cursor and VS Code

Add the MCP server to Cursor or VS Code.

Cursor

Source: Cursor MCP documentation. Edit ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

mcp.json
{
  "mcpServers": {
    "ucartz-seo": {
      "url": "https://search-scanner.ucartz.com/mcp"
    }
  }
}

Cursor starts the sign-in the first time it needs it. For a fixed client from Settings, Connect AI add an auth block with environment variables, so the secret is not written into the file:

mcp.json
{
  "mcpServers": {
    "ucartz-seo": {
      "url": "https://search-scanner.ucartz.com/mcp",
      "auth": {
        "CLIENT_ID": "${env:UCARTZ_CLIENT_ID}",
        "CLIENT_SECRET": "${env:UCARTZ_CLIENT_SECRET}",
        "scopes": ["seo:read"]
      }
    }
  }
}

Cursor's documented redirect addresses are http://localhost:8787/callback (desktop) and https://www.cursor.com/agents/mcp/oauth/callback (web and agents). The second is a preset in Settings; the first is matched by the localhost preset only if you register http://localhost:8787/callback explicitly.

VS Code

  1. Open the command palette and run MCP: Add Server, or in the Chat view open Chat: Open Customizations, MCP Servers, Add Server.
  2. Choose HTTP and enter https://search-scanner.ucartz.com/mcp.
  3. Name it, then accept the sign-in prompt. A browser opens on the Ucartz consent page.