Logly

السجل الرسمي التسويق والمبيعات

Query your Logly web analytics — traffic, funnels and real-time visitors — from any MCP client.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package @logly-uk/mcp
Claude Code
claude mcp add logly -e 'LOGLY_API_KEY=<your logly_api_key>' -- npx -y @logly-uk/mcp@1.0.2
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "logly": {
            "command": "npx",
            "args": [
                "-y",
                "@logly-uk/mcp@1.0.2"
            ],
            "env": {
                "LOGLY_API_KEY": "<your logly_api_key>"
            }
        }
    }
}

متغيرات البيئة

  • LOGLY_API_KEY إلزامي سري Your Logly API key — create one in Settings → API keys.

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Logly MCP server
  2. Requirements
  3. Setup
  4. Tools
  5. Environment variables
  6. Links

Logly MCP server

Query your Logly web analytics from Claude, Cursor, or any Model Context Protocol client.

Logly is privacy-first web analytics — under 1 KB, cookie-free, GDPR compliant by design. This server exposes your analytics over MCP so an AI assistant can answer questions like "how did traffic change this week?" or "where is my signup funnel losing people?" — and even hand you the install snippet for a new site.

Requirements

  • Node.js 18 or newer
  • A Logly account and an API key — create one in Settings → API keys in your Logly dashboard. The key looks like logly_a1b2c3... and is shown only once.

Setup

The server runs via npx — no install step needed.

Claude Desktop

Edit claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "logly": {
      "command": "npx",
      "args": ["-y", "@logly-uk/mcp"],
      "env": { "LOGLY_API_KEY": "logly_your_key_here" }
    }
  }
}

Restart Claude Desktop.

Claude Code
claude mcp add logly -e LOGLY_API_KEY=logly_your_key_here -- npx -y @logly-uk/mcp
Cursor

Add to .cursor/mcp.json in your project (or the global one):

{
  "mcpServers": {
    "logly": {
      "command": "npx",
      "args": ["-y", "@logly-uk/mcp"],
      "env": { "LOGLY_API_KEY": "logly_your_key_here" }
    }
  }
}

Tools

ToolWhat it does
logly_list_sitesList every site in your account with its site ID — start here.
logly_statsPageviews, sessions, visitors, bounce rate, avg duration, daily series, previous-period comparison.
logly_breakdownTop pages, referrers, countries and device/browser split.
logly_realtimeVisitors active right now.
logly_eventsCustom event counts.
logly_funnelsList a site's conversion funnels and their steps.
logly_funnel_resultsCompletion counts and drop-off per funnel step.
logly_install_snippetThe <script> tag to add Logly to a site's <head>.
Date filters

Stats tools accept a days window (7, 30 or 90 — defaults to 30) or an explicit from / to pair (YYYY-MM-DD). If both are given, from/to wins.

Environment variables

VariableRequiredPurpose
LOGLY_API_KEYyesYour Logly API key.
LOGLY_API_BASEnoOverride the API base URL (default https://app.logly.uk).

MIT licensed.

الأسئلة الشائعة

ما هو Logly؟

Query your Logly web analytics — traffic, funnels and real-time visitors — from any MCP client.

كيف أثبّت Logly؟

يعمل على جهازك. في Claude Code: claude mcp add logly -e 'LOGLY_API_KEY=<your logly_api_key>' -- npx -y @logly-uk/mcp@1.0.2. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Logly إلى مفتاح API؟

نعم. يتطلب LOGLY_API_KEY، وتضبطها في إعداداته.

هل Logly مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون Logly؟

ينشره logly-uk. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.