MCP guides

Use SiteLens MCP globally in Cursor

SiteLens MCP runs as a standalone Node process. It does not require the SiteLens monorepo to be open.

npm install

npm install @sitelensapi/mcp
npx -y @sitelensapi/mcp sitelens-mcp setup
npx -y @sitelensapi/mcp -- --self-test
npx -y @sitelensapi/mcp sitelens doctor --cursor

Global ~/.cursor/mcp.json (recommended)

Use stdio MCP only — no extra subcommands in args:

{
  "mcpServers": {
    "sitelens": {
      "command": "npx",
      "args": ["-y", "@sitelensapi/mcp"],
      "env": {
        "SITELENS_MODE": "local",
        "SITELENS_DEFAULT_URL": "http://127.0.0.1:3000"
      }
    }
  }
}

Restart Cursor after saving mcp.json.

Do not use in Cursor mcp.json

Diagnostics

npx -y @sitelensapi/mcp sitelens doctor --cursor

Local free vs cloud (optional)

Local tools (sitelens_qa_run, auth, compare/list local runs) are free with no API key. Cloud tools register when SITELENS_API_KEY is set and SITELENS_MODE is all or cloud. Dashboard copy-paste: app.sitelensapi.com/mcp.

Related