Node.js와 Clarity 프로젝트를 준비합니다. Clarity 설정에서 데이터 내보내기 API 토큰을 발급하고 YOUR_CLARITY_TOKEN을 바꿉니다. 이 설정 파일은 공개 저장소에 올리지 마세요.
Claude Desktop의 설정 → 개발자 → 설정 편집에서 mcpServers에 아래 항목을 추가합니다. Cursor는 .cursor/mcp.json에 같은 형식을 사용합니다.
{
"mcpServers": {
"mcp-clarity-mcp": {
"command": "npx",
"args": [
"@microsoft/clarity-mcp-server",
"--clarity_api_token=YOUR_CLARITY_TOKEN"
]
}
}
}
Windows에서 npx를 찾지 못하면 command를 cmd로, args 맨 앞을 ["/c", "npx", ...기존 args]로 바꿉니다. macOS·Linux는 위 설정을 그대로 사용합니다.