Logly MCP server
OfficialLogly 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.
Related MCP server: rybbit-mcp
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/mcpCursor
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
Tool | What it does |
| List every site in your account with its site ID — start here. |
| Pageviews, sessions, visitors, bounce rate, avg duration, daily series, previous-period comparison. |
| Top pages, referrers, countries and device/browser split. |
| Visitors active right now. |
| Custom event counts. |
| List a site's conversion funnels and their steps. |
| Completion counts and drop-off per funnel step. |
| The |
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
Variable | Required | Purpose |
| yes | Your Logly API key. |
| no | Override the API base URL (default |
Links
Logly — https://logly.uk
MCP server page — https://logly.uk/mcp/
Public API reference — https://logly.uk/docs
MIT licensed.
Available Tools
8 toolslogly_breakdownC
Top pages, top referrers, top countries and device/browser split for a site over the given period.
Inputs: site (required), days, from, to.
logly_eventsB
Custom event counts for a site (events sent via logly('event', ...)) over the given period.
Inputs: site (required), days, from, to.
logly_funnel_resultsC
Completion counts and drop-off per step for one conversion funnel.
Inputs: funnel_id (required), days.
logly_funnelsA
List the conversion funnels defined for a site, with their IDs and step sequences.
Inputs: site (required).
logly_install_snippetA
Return the Logly tracking snippet for a site — the single tag to add to the site's . Works offline, no API call.
Inputs: site (required).
logly_list_sitesA
List every website in the authenticated Logly account with its site ID. Start here to find the site ID the other tools need.
Inputs: no named parameters.
logly_realtimeB
Visitors currently active on a site (real-time, the last few minutes).
Inputs: site (required).
logly_statsB
Traffic totals for a site — pageviews, sessions, visitors, bounce rate, average duration — plus a daily series and a comparison against the previous period.
Inputs: site (required), days, from, to.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool maps to a distinct analytics concern: site selection, overall stats, dimensional breakdown, realtime activity, custom events, funnel definitions, funnel performance, and snippet installation. Stats and breakdown are related but their descriptions make the outputs clearly non-overlapping.
All tools share a consistent logly_ prefix and snake_case style, which makes the set predictable. However, names mix noun-style resources like stats and events with verb-style actions like list_sites and install_snippet, so the convention is not perfectly uniform.
Eight tools is a well-scoped count for a web analytics server. Each tool covers a meaningful slice of the analytics workflow without redundancy.
The set covers site discovery, high-level and dimensional traffic reporting, realtime monitoring, custom events, funnel definition and result retrieval, plus snippet installation. There are no obvious dead ends for the read-only analytics use case implied by the tools.
Maintenance
Related MCP Connectors
Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.
Google Search Console, GA4, Bing Webmaster and PageSpeed MCP for Claude, ChatGPT, Cursor. Free.
Read-only analytics for Convex apps, queryable via MCP from Claude, Cursor, and other clients.
Query your Logspot analytics, companies, and revenue from any AI assistant, and run your actions.
Related MCP Servers
- AlicenseAqualityBmaintenanceConnects Google Analytics 4 data to Claude, Cursor and other MCP clients, enabling natural language queries of website traffic, user behavior, and analytics data with access to 200+ GA4 dimensions and metrics.122,517 PyPI243MIT
- AlicenseBqualityBmaintenanceEnables querying Rybbit Analytics data directly through MCP-compatible clients like Claude Code. It provides tools for monitoring website statistics, user sessions, error logs, funnels, and performance metrics via natural language.4320 npm4MIT
- AlicenseAqualityCmaintenanceConnects MCP clients like Claude Desktop to Google Analytics 4 Data API, enabling natural language queries for reports, top pages, traffic sources, conversions, realtime users, and period comparisons.776 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceEnables querying Google Analytics 4 data using natural language through MCP clients like Claude and Cursor, supporting 200+ dimensions and metrics for traffic, user behavior, and e-commerce analysis.MIT