Logly logo

Logly

Query Logly analytics for traffic, funnels, events, breakdowns, and real-time visitors through MCP.

Install Logly

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "logly": {
      "command": "npx",
      "args": [
        "-y",
        "@logly-uk/mcp"
      ],
      "env": {
        "LOGLY_API_KEY": "YOUR_VALUE_HERE",
        "LOGLY_API_BASE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env LOGLY_API_KEY=YOUR_VALUE_HERE --env LOGLY_API_BASE=YOUR_VALUE_HERE --transport stdio logly -- npx -y @logly-uk/mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @logly-uk/mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The Logly MCP server connects MCP clients to Logly web analytics through an API key. It exposes tools for site discovery, traffic metrics, page and audience breakdowns, events, funnels, real-time visitors, and tracking snippets. Use it when an AI assistant needs to answer analytics questions or inspect conversion performance. It runs through npx and supports Claude Desktop, Claude Code, and Cursor configurations.

Use cases

  • Compare traffic with the previous period
  • Inspect top pages, referrers, and audience segments
  • Monitor visitors currently active on a site
  • Find drop-off points in a conversion funnel
  • Retrieve the Logly installation snippet

Key features

  • Traffic and engagement statistics
  • Page, referrer, country, device, and browser breakdowns
  • Real-time visitor counts
  • Custom event reporting
  • Conversion funnel analysis
  • Installation snippet retrieval

Tools8

What Logly lets your agent do. Expand a tool for its parameters.

Verified live~939 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 84d

What it can do

From the 8 tools this server returned when we ran it.

Can delete or modify data · 1Makes network requests · 1Read-only tools · 7
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age152 days
Maintainers1

Observed 2026-10-16 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · @logly-uk/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads166Package downloads in the last 30 days.
Last commit6mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed8Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Logly works

What the Logly MCP server does

The Logly MCP server gives an MCP-compatible AI client access to analytics held in a Logly account. It can identify the sites associated with the account, retrieve traffic metrics, inspect audience and acquisition breakdowns, report current visitors, and examine custom events.

Conversion analysis is covered through separate funnel tools. An assistant can list a site's funnels and steps, then retrieve completion totals and drop-off at each step. The server can also return the Logly tracking script needed to add analytics to a site's HTML head.

Logly describes its analytics product as privacy-first, cookie-free, GDPR compliant by design, and under 1 KB. Those properties belong to the connected Logly product; this server exposes the account data and installation snippet through MCP.

How it works

The server uses a Logly API key to access account and site analytics. Start with logly_list_sites to obtain the site ID needed for site-specific queries. The remaining tools use that account and site context to retrieve the requested metrics or configuration.

Stats queries support either a relative window of 7, 30, or 90 days, or explicit from and to dates in YYYY-MM-DD format. The default window is 30 days. When both styles are supplied, the explicit date pair takes precedence. Results from the statistics tool include headline metrics, a daily series, and a comparison with the previous period.

Setup and configuration

Node.js 18 or newer is required, along with a Logly account and API key. Create the key in the Logly dashboard under Settings → API keys. The key is shown only once, so store it securely.

No local package installation is required. Run the server with npx -y @logly-uk/mcp and provide the key through LOGLY_API_KEY.

For Claude Desktop or Cursor, add an MCP server entry whose command is npx, whose argument is -y @logly-uk/mcp, and whose environment contains the API key. Claude Code can register the same command with claude mcp add, passing the key with -e LOGLY_API_KEY=.... The optional LOGLY_API_BASE variable overrides the default API base URL of https://app.logly.uk.

Tools and capabilities

  • logly_list_sites: Lists account sites and their IDs.
  • logly_stats: Returns pageviews, sessions, visitors, bounce rate, average duration, daily data, and prior-period comparison.
  • logly_breakdown: Reports top pages, referrers, countries, and device or browser splits.
  • logly_realtime: Shows visitors currently active.
  • logly_events: Returns custom event counts.
  • logly_funnels: Lists conversion funnels and their steps.
  • logly_funnel_results: Reports funnel completions and step-level drop-off.
  • logly_install_snippet: Provides the script tag for a site's head.

The Logly MCP server is MIT licensed and is intended for clients that support standard MCP server configuration.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Logly

Logly is an MCP server that connects AI assistants to Logly web analytics through an API key. Its main tools retrieve site lists, traffic statistics, breakdowns, real-time visitors, events, funnel definitions and results, and installation snippets. It lets supported MCP clients query analytics and obtain the tracking script.

Run it with npx rather than installing a package locally. Node.js 18 or newer and a Logly API key are required; configure `npx -y @logly-uk/mcp` with `LOGLY_API_KEY` in Claude Desktop, Cursor, or Claude Code.

Yes, Logly works with Cursor through its `.cursor/mcp.json` configuration. Add an entry that runs `npx -y @logly-uk/mcp` and supplies `LOGLY_API_KEY`, either in the project configuration or the global Cursor configuration.

Use the `days` window or an explicit `from` and `to` date pair. Supported relative windows are 7, 30, and 90 days, with 30 days as the default; explicit `YYYY-MM-DD` dates take precedence when both options are provided.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLogly AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/logly?style=directory)](https://allmcps.com/mcp/logly)
HTML Embed
<a href="https://allmcps.com/mcp/logly"><img src="https://allmcps.com/api/badge/logly?style=directory" alt="Logly on AllMCPs" /></a>