ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิวได้แล้วต้นแบบ · อัปเดตทุก 30 นาที
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · วิธีติดตั้งภาษาไทยทุกตัว

RevScope

✓ เจ้าของบริการ · revscope.co

โดย eloffรุ่น 0.1.0i★ 3iรันบนคลาวด์เว็บทางการ ↗
ชื่อใน registryco.revscope/revscope

วิธีติดตั้ง

ใช้ทำอะไรได้

ยังไม่มีคำอธิบายภาษาไทย ดูข้อเท็จจริงด้านล่าง หรือเปิดคำอธิบายต้นฉบับจากผู้ทำ

  • ต่อแบบ คลาวด์ (ต่อผ่านอินเทอร์เน็ต)
  • บัญชีหรือคีย์ ล็อกอินกับบริการตอนต่อ (OAuth)
  • หมวด ร้านค้าออนไลน์และรับเงิน
คำอธิบายต้นฉบับจากผู้ทำ (อังกฤษ)
Query web traffic and revenue attribution analytics with Google and Stripe integrations

ทำไมอยู่อันดับนี้

ตัวนี้อยู่ในแท็บ "แอปที่ต่อกับ AI" ซึ่งเรียงโดยไม่ใช้ดาว ตามลำดับเหล่านี้

1. อยู่ในสมุด connector ของ Claudeไม่
2. ทีมลองใช้จริงแล้วไม่
3. ใช้กับงานคนไทยไม่
4. การใช้งานไม่นับดาว20/100ความนิยม 0 · ความสด 12 · ระบบยังตอบ 8 · ถูกใจจากผู้ใช้ +0
5. ลงทะเบียนเมื่อ2026-11-09

ถูกใจจากผู้ใช้: 0 · บวกในลำดับได้สูงสุด 5 คะแนน (1 คะแนนต่อ 1 คน) ไม่มีใครจ่ายเงินเพื่อเพิ่มได้

คุณภาพ: ผลตรวจเบื้องต้นผ่าน 4/4 ข้อ (แสดงให้ดู ไม่ได้ใช้เรียง)

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ให้ AI ติดตั้งให้ด้วยประโยคเดียว

ติดตั้ง RevScope ให้หน่อย ทำตาม https://mcp.popnx.com/i/revscope.md แสดงคำสั่งให้ฉันดูและรอฉันตกลงก่อนรัน

คัดลอกไปวางในแชตของ AI ที่ทำงานในเครื่องคุณได้ (เช่น Claude Code, Cursor) · AI จะอ่านขั้นตอนจากเรา แสดงคำสั่งให้ดู และรอคุณตกลงก่อน · ไม่ต้องใช้คีย์ ไม่ต้องสมัคร · ดูข้อความเต็มที่ AI จะอ่าน

ผลตรวจผ่าน 4/4 · สิ่งที่คุณถามผ่านเซิร์ฟเวอร์ของผู้ทำ (api.revscope.co) · ✓ ตรวจคำสั่งแล้ว 13 พ.ย. 2569

ขั้นแรก: คุณใช้ AI ตัวไหน

เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง

ต่อกับ Claude ได้ · ประมาณ 2 นาที

ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม · ตั้งครั้งเดียวที่ claude.ai หรือแอปบนคอม แล้วใช้ในแชตได้ · บัญชีฟรีเพิ่มได้ 1 ตัว · แผน Team/Enterprise ให้เจ้าของ (Owner) เป็นคนเพิ่ม

  1. เปิดหน้า Connectors ของ Claude

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  2. กด “Add” → “Custom” → “Web” แล้วกรอก 2 ช่องนี้

    คัดลอกจากที่นี่ไปวางในช่องชื่อเดียวกันบนหน้าจอของ Claude แล้วกด Continue

    Name · ชื่อRevScope
    Remote MCP server URL · ที่อยู่https://api.revscope.co/v2/mcp

    กด Continue ผ่านหน้าตรวจการล็อกอินที่ Claude ตรวจเจอ · หัวข้อ Authentication เลือกตามที่ผู้ทำบอก (Sign in now, Sign in when needed หรือ No sign in) แล้วกด Add

  3. เปิดใช้ในแชต

    +ConnectorsRevScope

  4. ลองเลย

    ใช้ RevScope บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude บอกว่ากำลังใช้ RevScope หรือมีชื่อเครื่องมือของ RevScope ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ ChatGPT ได้ ขึ้นกับแผน

MCP แบบเต็ม: ChatGPT Business, Enterprise หรือ Edu บนเว็บ · Pro: ต่อได้ด้วยสิทธิ์อ่านและดึงข้อมูล เครื่องมือที่แก้ข้อมูลอาจใช้ไม่ได้ · Plus: เอกสารยังไม่ยืนยัน ถ้าเห็นเมนูเพิ่ม MCP แบบกำหนดเองในหน้าปลั๊กอิน ลองตามขั้นตอนได้ · ใช้บนเว็บเท่านั้น

  1. เปิดหน้าเพิ่ม MCP ของ ChatGPT บนเว็บ

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. กรอกชื่อและที่อยู่

    ใส่ชื่อ แล้ววางที่อยู่ใต้ Connection ติ๊กยอมรับคำเตือน แล้วกด Create as a plugin

    Name · ชื่อRevScope
    Connection · ที่อยู่https://api.revscope.co/v2/mcp
  3. เลือก RevScope ในแชต

    เปิดแชตใหม่แล้วเลือก RevScope จากรายการปลั๊กอินก่อนพิมพ์

  4. ลองเลย

    ใช้ RevScope บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า ChatGPT บอกว่ากำลังใช้ RevScope หรือมีชื่อเครื่องมือของ RevScope ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ OpenAI เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ Claude Code ได้ · ประมาณ 2 นาที

ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม

  1. เปิด Terminal

    Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell

  2. วางคำสั่งนี้แล้วกด Enter

    claude mcp add --transport http --scope user revscope https://api.revscope.co/v2/mcp
  3. พิมพ์ /mcp ใน Claude Code

    ต้องเห็น RevScope ในรายการและขึ้นว่าเชื่อมต่อแล้ว

  4. ลองเลย

    ใช้ RevScope บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude Code บอกว่ากำลังใช้ RevScope หรือมีชื่อเครื่องมือของ RevScope ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ Cursor ได้ · ประมาณ 2 นาที

ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม

  1. กดปุ่มนี้เพื่อเปิด Cursor

    เปิดใน Cursor

    Cursor จะถามยืนยันการติดตั้ง ให้กด Install

  2. เปิดแชตของ AI ใน Cursor โหมด Agent

  3. ลองเลย

    ใช้ RevScope บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Cursor บอกว่ากำลังใช้ RevScope หรือมีชื่อเครื่องมือของ RevScope ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ VS Code ได้ · ประมาณ 2 นาที

ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม

  1. กดปุ่มนี้เพื่อเปิด VS Code

    เปิดใน VS Code

    VS Code จะถามยืนยันการติดตั้ง ให้กด Install

  2. เปิดแชตของ AI ใน VS Code โหมด Agent

  3. ลองเลย

    ใช้ RevScope บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า VS Code บอกว่ากำลังใช้ RevScope หรือมีชื่อเครื่องมือของ RevScope ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

โปรแกรมอื่นที่ใช้ MCP ได้ เช่น Windsurf, Zed หรือ Gemini CLI มีวิธีเพิ่มต่างกัน ดูวิธีของแต่ละตัวในหน้ารวมโปรแกรม

ดูโปรแกรมที่ใช้ MCP ทั้งหมด →

ที่อยู่สำหรับโปรแกรมที่ต่อผ่านเว็บ

ที่อยู่https://api.revscope.co/v2/mcp

ค่าตั้งแบบไฟล์ JSON อยู่ในหัวข้อ “สำหรับคนเขียนโค้ด” ด้านล่าง

ติดตรงไหน? ถามคนที่ใช้ RevScope อยู่💬 พูดคุย →
สำหรับคนเขียนโค้ด: คำสั่ง Terminal และค่าตั้ง JSON

ต่อผ่านเว็บ

Claude Code

claude mcp add --transport http --scope user revscope https://api.revscope.co/v2/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "revscope": {
      "url": "https://api.revscope.co/v2/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "revscope": {
      "type": "http",
      "url": "https://api.revscope.co/v2/mcp"
    }
  }
}

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

สรุป

ดาวน์โหลดต่อสัปดาห์i
ไม่มียอดใน npm/PyPI
โดเมนที่ยืนยัน
✓ revscope.co
licensei
ไม่ระบุ license
การเชื่อมต่อ
รันบนคลาวด์
รุ่นล่าสุดi
0.1.0
ส่งเข้า registryi
10 พ.ย. 2569
แก้โค้ดล่าสุดi
19 พ.ย. 2569
ตรวจล่าสุดเมื่อ
18 พ.ย. 2569
ผู้ทำ
eloff
เว็บผู้ทำ
revscope.co
สถานะใน registry
ใช้งานอยู่

ใช้กับโปรแกรมไหนได้

ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569

ต่อผ่านคลาวด์ได้ใน

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

ดูโปรแกรมทั้งหมดพร้อมข้อดีข้อเสีย →

คู่มือที่เกี่ยวข้อง

ทำอะไรได้บ้าง

server ให้ล็อกอินก่อนจึงจะแสดงรายการเครื่องมือ

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 19 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันโดเมน revscope.co แล้ว (registry ตรวจความเป็นเจ้าของโดเมน)

  • ✓ ผ่าน

    ยังมีคนดูแล

    มีการแก้โค้ดล่าสุด วันนี้

  • – ไม่เกี่ยว

    มีสัญญาอนุญาต (license)

    ไม่เกี่ยว: server บนคลาวด์ของเจ้าของ revscope.co เอง คุณไม่ได้รันโค้ดจากรีโป

  • ✓ ผ่าน

    endpoint ตอบ

    ตอบกลับใน 241 ms (HTTP 401)

  • ✓ ผ่าน

    ล็อกอินแบบ OAuth

    ประกาศวิธีล็อกอินแบบ OAuth ให้โปรแกรม AI พาไปล็อกอินเอง

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    ยังไม่ได้ตรวจ เราอ่านรายการเครื่องมือตอนตรวจ endpoint

เราตรวจอะไรบ้าง → · JSON

ผู้ทำ: ขอให้ตรวจใหม่ หรือแจ้งข้อมูลผิด
สำหรับผู้ทำ: ติดป้ายใน README

ถ้าคุณเป็นผู้ทำตัวนี้ คัดลอกโค้ดนี้ไปวางใน README ได้เลย ป้ายลิงก์กลับมาที่หน้านี้

[![แนะนำบน PopNx MCP](https://mcp.popnx.com/badge/revscope.svg?lang=th)](https://mcp.popnx.com/th/servers/revscope)

พูดคุย

ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์

ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย

ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx

เข้าสู่ระบบเพื่อโพสต์

รีวิวจากผู้ใช้

ยังไม่มีรีวิว

เข้าสู่ระบบเพื่อเขียนรีวิว

เทียบกับตัวอื่นในหมวด ร้านค้าออนไลน์และรับเงินi

  • ดาวมากกว่า 95% ของอีก 2947 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 75% ของอีก 2947 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 99% ของอีก 2947 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

RevScope ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 4 จาก 4 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนคลาวด์ของผู้ทำ ต่อผ่านอินเทอร์เน็ตได้เลย ไม่ต้องลงโปรแกรม แต่ข้อมูลที่ส่งให้จะผ่านเซิร์ฟเวอร์ของผู้ทำ

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด วันนี้ และส่งรุ่นล่าสุด (0.1.0) เข้า registry 9 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต่อผ่าน URL จึงใช้กับโปรแกรมที่รับ remote MCP ได้ เช่น ChatGPT บนเว็บ (แบบเต็มในแผน Business ขึ้นไป · Pro แบบอ่านอย่างเดียว)

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Stripe MCP, flightclaw, Trade It, Marketplace Ad Pros: Amazon Ads & Seller Central, idealo MCP Server

ตัวอื่นที่ทำงานคล้ายกัน

หมวดเดียวกันจากผู้ทำคนอื่น ผ่านตัวตรวจคำสั่งแล้ว ตัวทางการขึ้นก่อน แล้วเรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Stripe MCP

server ทางการของ Stripe ให้ AI ดูและจัดการลูกค้า สินค้า การชำระเงิน และใบแจ้งหนี้ ต่อผ่านคลาวด์ของ Stripe และล็อกอินแบบ OAuth

โดย stripeใช้กันมาก★ 2.1Kอัปเดต 13 เดือนที่ผ่านมา

รันบนคลาวด์✓ เจ้าของบริการ · stripe.com

flightclaw

Search ~300 airlines and book flights with a checkout link. OAuth sign-in by email code.

โดย flightclawกำลังโต★ 86อัปเดต 2 เดือนที่ผ่านมา

รันบนคลาวด์✓ เจ้าของบริการ · flightclaw.com

Trade It

Connect brokerage accounts to AI assistants: holdings, orders, asset lookup, and approved trading.

โดย trade-it-incเริ่มต้น★ 62อัปเดต 34 วันที่ผ่านมา

รันบนคลาวด์✓ เจ้าของบริการ · tradeit.app

idealo MCP Server

Search products, compare prices and discover deals across 6 European markets with your AI assistant.

โดย idealoเริ่มต้น★ 28อัปเดต 6 เดือนที่ผ่านมา

รันบนคลาวด์✓ เจ้าของบริการ · mcp.idealo.com
เทียบกับตัวที่คล้ายกัน
ตัวนี้
RevScope
Stripe MCPflightclawTrade ItMarketplace Ad Pros: Amazon Ads & Seller Centralidealo MCP Server
ทำงานที่ไหนใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่อง
ต้องใส่คีย์ไม่ไม่ไม่ไม่ไม่ไม่
กด + ใน Claude ได้ไม่ใช่ไม่ไม่ไม่ไม่
ผลตรวจเบื้องต้น4/44/44/45/54/44/4
สัญญาอนุญาตNOASSERTIONMITMITCC0-1.0MITMIT
ราคาไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียน

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

RevScope

RevScope is revenue attribution analytics for websites. A small script on your pages records what visitors do (the pages they view, the searches and referrers that brought them, the events they trigger). RevScope then joins that activity to the payments they make in Stripe, Polar, Shopify, and other billing systems. The result shows which pages, channels, and campaigns actually bring in revenue, not just traffic.

There are two ways to use it:

  • The hosted service at revscope.co. There is nothing to install.
  • Your own server. This repository has everything needed to run a private instance. The fastest route is Docker, described next.

Agents and scripts can set up the hosted service from the command line, with no browser: create an account, install the tracker, connect integrations, and query analytics. See cli/. MCP clients that only run local servers can reach the hosted MCP server through the Docker bridge in mcp-bridge/.

Run your own instance with Docker

You need a machine with Docker and Compose v2. compose.yaml builds a single backend image that also serves the web app, and runs it next to Postgres.

  1. Create the configuration file:
   cp docker.env.example .env
  1. In .env, fill in INTEGRATION_ENCRYPTION_KEY and POSTGRES_PASSWORD. The comments above each one show the command that generates it.
  1. Build and start:
   docker compose up -d --build

The first build compiles the Rust backend and takes several minutes.

  1. Open http://localhost:4320/ui/signup and create your login right away. The first person to sign up owns the instance, and signup closes after that. Everyone else joins by invitation (see How accounts work).
Make it reachable from the internet

The backend listens only on 127.0.0.1:4320, so at first nothing outside the server can reach it. To put it on a public domain, choose one of these:

  • Use the bundled Caddy server. Point your domain's DNS at the server and open ports 80 and 443. Then set these in .env:
  COMPOSE_PROFILES=caddy

REVSCOPE_DOMAIN=analytics.example.com REVSCOPE_WEB_BASE_URL=https://analytics.example.com/ui

Run docker compose up -d again. Caddy gets a certificate from Let's Encrypt and serves HTTPS.

  • Use your own reverse proxy (nginx, Traefik, and so on). Proxy to 127.0.0.1:4320 and make sure the proxy sets the X-Forwarded-For header. The container reads the visitor's IP address from that header. This is safe only because nothing but this machine can reach port 4320, so don't publish the port more widely.

REVSCOPE_WEB_BASE_URL matters in both cases, because it is the address used in emailed links such as invitations and password resets.

Add the tracker to your site

Copy the snippet from tracker/INSTALL.md into the of every page. The snippet sends data to the hosted service unless you give it your instance's URL, so add that URL as the third argument on its last line:

})(window, "examplecom", "https://analytics.example.com/");

examplecom stands for your project's name: the one you chose at signup, or for a project you add later, the name the dashboard shows.

Back up, upgrade, and configure

Your data lives in two Docker volumes. revscope-data holds one SQLite file per project with the analytics events, and postgres-data holds logins, settings, and integrations. Back up both.

To upgrade, run git pull and then docker compose up -d --build. Database migrations run automatically on startup.

Every variable in .env is passed to the backend, so any option from revscope/.env.example works there too, such as email, AI chat, or error reporting. Run docker compose up -d after changing it.

Visitor locations (country and city) need MaxMind's free GeoLite2-City database, which can't be redistributed in this repository. Create a free MaxMind account and set MAXMIND_ACCOUNT_ID and MAXMIND_LICENSE_KEY in .env before building, and the build downloads the database and embeds it. If revscope/GeoLite2-City.mmdb already exists in the checkout, the build uses that file instead. Without either, geolocation is turned off.

How accounts work on your own instance

A self-hosted instance has one account, and every user sees all of its projects. Signup creates the first project, named as you choose, and you can add more from the dashboard. After the first person signs up, they invite others from Settings. An invitation link lets the invited person choose a password and expires after 7 days, and someone who hasn't accepted 30 days after their latest invitation is removed, so they stop reserving their email address. RevScope emails the link if email is configured (MAILCHANNELS_API_KEY and MAILCHANNELS_FROM_EMAIL), and Settings always shows it so you can send it yourself.

The hosted service's plan limits don't apply. There is no cap on events and no monthly budget for AI chat. Links to documentation point at revscope.co.

Run your own instance without Docker

The self-hosted build is a single binary. It contains the backend, the web app, the tracker script, the database migrations, and optionally the GeoLite2 database. You need the prerequisites installed. Build it like this:

(cd web && pnpm install && pnpm build:bundle)

cd revscope && cargo build --release --bin revscope --features self-hosted

The binary is revscope/target/release/revscope. Build it on a machine with the same OS and CPU architecture as your server, or cross-compile.

To run it:

  1. Create a Postgres database for it (createdb revscope).
  2. Copy revscope/.env.example to .env in the directory you will run the binary from, and fill it in. Only DATABASE_URL and INTEGRATION_ENCRYPTION_KEY are required. Set REVSCOPE_WEB_BASE_URL to your public URL followed by /ui, for example https://analytics.example.com/ui.
  3. Run the binary as an unprivileged user under a process manager such as systemd.
  4. Put it behind a reverse proxy that handles HTTPS, and set REVSCOPE_TRUST_X_FORWARDED_FOR=true so visitor IPs come from the proxy's X-Forwarded-For header. Make sure the backend's port can be reached only through the proxy, because otherwise anyone could forge that header.

The web app is served under /ui, and / redirects to /ui/dashboard. It calls the API on the same origin, so no cross-origin (CORS) setup is needed. Project databases are stored in data/ inside the working directory, so back up that directory along with Postgres.

Instead of a reverse proxy, the backend can serve HTTPS itself with certificates from Let's Encrypt. Set REVSCOPE_LISTEN_TLS=0.0.0.0:443, REVSCOPE_LISTEN=0.0.0.0:80 (Let's Encrypt validates the domain over port 80), and REVSCOPE_TLS_DOMAINS to your hostname, for example analytics.example.com. Binding ports below 1024 as an unprivileged user needs the CAP_NET_BIND_SERVICE capability.

The backend sends Strict-Transport-Security for the hostnames in REVSCOPE_WEB_BASE_URL (or the older APP_BASE_URL) and REVSCOPE_API_BASE_URL when they start with https://, and for REVSCOPE_TLS_DOMAINS when it serves HTTPS itself. For a year after a visit, browsers then refuse plain HTTP to that hostname on every port, so don't serve anything else over plain HTTP on it.

Configuration

The backend reads its settings from environment variables, and also from a .env file in its working directory. Real environment variables take precedence. revscope/.env.example lists every option with a comment explaining it. The main groups are:

VariablesPurpose
DATABASE_URL, INTEGRATION_ENCRYPTION_KEYRequired: the Postgres URL and the credential key
REVSCOPE_LISTENAddress for plain HTTP (default 127.0.0.1:4320)
REVSCOPE_WEB_BASE_URL, REVSCOPE_API_BASE_URLPublic URLs used in emailed links and MCP metadata
REVSCOPE_TRUST_X_FORWARDED_FORRead visitor IPs from a reverse proxy's header
REVSCOPE_MAX_CONNECTIONSConnection cap (100,000, or less if ulimit -n is low)
MAILCHANNELS_API_KEY, MAILCHANNELS_FROM_EMAILSending email (invitations, password resets)
REVSCOPE_GOOGLE_CLIENT_ID, REVSCOPE_APPLE_CLIENT_IDSign in with Google and Apple, hidden unless configured
REVSCOPE_GOOGLE_CLIENT_ID, REVSCOPE_GOOGLE_CLIENT_SECRET"Connect with Google" for Google Analytics imports
REVSCOPE_CHAT_URL, REVSCOPE_CHAT_API_KEY, REVSCOPE_CHAT_*The AI chat tab, which is hidden unless configured
SENTRY_DSNError reporting to Sentry
REVSCOPE_CORS_ORIGINSHosts of a web app deployed separately from the backend
REVSCOPE_LISTEN_TLS, REVSCOPE_TLS_DOMAINS, REVSCOPE_ACME_*Built-in HTTPS with Let's Encrypt certificates
REVSCOPE_REQUIRE_CLOUDFLARESettings for the hosted service's servers
REVSCOPE_MCP_DEMO_TOKENAn rsm_ MCP token that reads only the public demo

INTEGRATION_ENCRYPTION_KEY encrypts the API keys you enter for integrations such as Stripe before they are stored. If you lose it, those keys can't be decrypted and have to be entered again.

The AI chat tab sends requests to an OpenAI-compatible chat completions endpoint. It was built for Cloudflare AI Gateway forwarding to xAI, so REVSCOPE_CHAT_GATEWAY_TOKEN is sent as Cloudflare's cf-aig-authorization header and the default model is grok/grok-4.7.

Development

The repository has these parts:

DirectoryWhat it is
tracker/tracker.js, the single-file ES5 script that site owners embed on their pages.
revscope/The Rust backend: event ingest, the query API, accounts, and integrations. SQLite per project, Postgres for accounts.
web/A pnpm workspace with the web app (web/app, Astro and Solid) and its auth client (web/shared).
cli/The revscope command line tool, which calls only the HTTP API.
mcp-bridge/A Docker bridge to the hosted MCP server, for MCP clients that only run local servers.
crates/revscope-api/The HTTP contract the backend and the CLI share: request and response types, route paths, and limits.
e2e/Playwright tests that drive the public demo dashboard. They only read.

See CONTRIBUTING.md for code conventions, the checks to run, and how to send a pull request.

Prerequisites
  • [Rust](ht

ตัดมาแค่ช่วงต้น อ่านต่อใน repo