Back to Browse

Logly MCP Server

Developer ToolsModerate6.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

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

About

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

Security Report

6.2
Moderate6.2Moderate Risk

This is a well-structured MCP server for Logly analytics with proper authentication, input validation, and no malicious patterns. The server correctly requires API key authentication via environment variables, validates all user inputs with Zod schemas, and safely handles URL construction. Minor code quality observations exist (broad exception handling, no input range validation for date parameters) but do not create security vulnerabilities. Supply chain analysis found 2 known vulnerabilities in dependencies (0 critical, 2 high severity). Package verification found 1 issue.

3 files analyzed · 6 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

env_vars

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

What You'll Need

Set these up before or after installing:

Your Logly API key — create one in Settings → API keys.Required

Environment variable: LOGLY_API_KEY

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-logly-uk-logly-mcp": {
      "env": {
        "LOGLY_API_KEY": "your-logly-api-key-here"
      },
      "args": [
        "-y",
        "@logly-uk/mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

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).

Links

MIT licensed.

Reviews

No reviews yet

Be the first to review this server!