Logly MCP Server

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

Local serverstdio

What is the Logly MCP server?

Query your Logly web analytics — traffic, funnels and real-time visitors — from any MCP client. The logly mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 9 defined tools rather than through you.

What it actually does

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.

Its toolset

Everything the assistant can do here goes through one of these:

  • logly_list_sites — List every site in your account with its site ID — start here
  • logly_stats — Pageviews, sessions, visitors, bounce rate, avg duration, daily series, previous-period comparison
  • logly_breakdown — Top pages, referrers, countries and device/browser split
  • logly_realtime — Visitors active right now
  • logly_events — Custom event counts
  • logly_funnels — List a site's conversion funnels and their steps
  • logly_funnel_results — Completion counts and drop-off per funnel step
  • logly_install_snippet — The tag to add Logly to a site's
  • Cursor — Add to .cursor/mcp.json in your project (or the global one):

Configuration

You will need one environment variable: LOGLY_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

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

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at @logly-uk/mcp on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

When to reach for it

Plenty of browser automation servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Logly's toolset — logly_list_sites, logly_stats, logly_breakdown and 6 more — is a fair guide to whether it matches your workflow. It is maintained by logly-uk; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 9 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Logly.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the logly mcp server does with a few real requests.

Available 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>.
CursorAdd to .cursor/mcp.json in your project (or the global one):

How to install the Logly MCP server

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

Configuration as documented by the project. Restart the client after saving.

Configuration

  • 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.
VariableDescriptionRequired
LOGLY_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Logly to logly list sites.
  • Use Logly to logly stats.
  • Use Logly to logly breakdown.

Frequently asked questions

It connects Logly to MCP-compatible AI assistants such as Claude and Cursor, exposing 9 tools (logly_list_sites, logly_stats, logly_breakdown, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Logly directly.