mcpField
L
Logly

Logly

Local
logly.ukData & Analytics2Updated 23w ago

About Logly

Logly's MCP server exposes web analytics to MCP clients such as Claude and Cursor. It is for teams that want to query traffic and conversion data in natural language, and also provides an installation snippet for a site.

Key features

  1. 01Lists sites in an account
  2. 02Queries traffic metrics and trends
  3. 03Breaks down pages, referrers, and devices
  4. 04Shows live visitors and custom events
  5. 05Inspects funnel steps and drop-offs
  6. 06Generates an installation snippet

Use cases

  1. 01Compare traffic across date ranges
  2. 02Find leading pages and referrers
  3. 03Inspect drop-offs in funnel steps
  4. 04Get an installation snippet for a site

MCP support

The MCP server makes Logly analytics tools available to clients, including statistics, breakdowns, live visitors, events, and funnel queries. It also provides site listing and installation snippet tools.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"logly": {
"command": "npx",
"args": [
"-y",
"@logly-uk/mcp"
],
"env": {
"LOGLY_API_KEY": "<LOGLY_API_KEY>"
}
}
}
}
Run commandnpx -y @logly-uk/mcp
Environment variables to set
LOGLY_API_KEYSecretYour Logly API key — create one in Settings → API keys.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@logly-uk/mcp1.0.2

Tools

8

Saved tool list · updated 3w ago

This tool takes no parameters.

Details

From the project 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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.