Basic information
About Logly MCP Server
Query your Logly web analytics — traffic, funnels and real-time visitors — from any MCP client.
Logly is a MCP server in the Other category listed in the AddMCP.net directory, published by logly-uk. It exposes 8 tools, including logly_list_sites, logly_stats, logly_breakdown, logly_realtime and more. Supported transport: stdio. License: MIT. Source code is hosted on github.com. Related topics: analytics, claude, cursor, gdpr, privacy.
Setup
{
"mcpServers": {
"logly": {
"command": "npx",
"args": [
"-y",
"@logly-uk/mcp"
],
"env": {
"LOGLY_API_KEY": "your_logly_api_key_here"
}
}
}
}
{
"mcpServers": {
"logly": {
"command": "npx",
"args": [
"-y",
"@logly-uk/mcp"
],
"env": {
"LOGLY_API_KEY": "your_logly_api_key_here"
}
}
}
}
{
"servers": {
"logly": {
"command": "npx",
"args": [
"-y",
"@logly-uk/mcp"
],
"env": {
"LOGLY_API_KEY": "your_logly_api_key_here"
}
}
}
}
Logly MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"logly": {
"command": "npx",
"args": [
"-y",
"@logly-uk/mcp"
],
"env": {
"LOGLY_API_KEY": "your_logly_api_key_here"
}
}
}
}
Logly MCP Server tools
-
logly_list_sites
— List every website in the authenticated Logly account with its site ID. Start here to find the site ID the other tools need.
(no parameters) -
logly_stats
— Traffic totals for a site — pageviews, sessions, visitors, bounce rate, average duration — plus a daily series and a comparison against the previous period.
site:string*, days:integer, from:string, to:string -
logly_breakdown
— Top pages, top referrers, top countries and device/browser split for a site over the given period.
site:string*, days:integer, from:string, to:string -
logly_realtime
— Visitors currently active on a site (real-time, the last few minutes).
site:string* -
logly_events
— Custom event counts for a site (events sent via logly('event', ...)) over the given period.
site:string*, days:integer, from:string, to:string -
logly_funnels
— List the conversion funnels defined for a site, with their IDs and step sequences.
site:string* -
logly_funnel_results
— Completion counts and drop-off per step for one conversion funnel.
funnel_id:string*, days:integer -
logly_install_snippet
— Return the Logly tracking snippet for a site — the single <script> tag to add to the site's <head>. Works offline, no API call.
site:string*
Overview
What is Logly?
Logly is an MCP server that lets you query your Logly privacy-first web analytics directly from AI assistants like Claude Desktop, Claude Code, or Cursor. It exposes analytics data—pageviews, sessions, visitors, funnels, real-time activity, and more—through the Model Context Protocol, enabling natural-language questions about your site’s performance.
How to use Logly?
Install is zero-config via npx. Add the server to your MCP client’s config file (e.g., claude_desktop_config.json) with the command npx -y @logly-uk/mcp and the LOGLY_API_KEY environment variable. Restart the client, then use the provided tools (e.g., logly_list_sites, logly_stats) via the assistant. No separate installation step is required.
Key features of Logly
- Nine MCP tools covering stats, breakdowns, funnels, and more.
- Privacy-first analytics: cookie-free, under 1 KB, GDPR compliant.
- Supports both relative date windows (7, 30, 90 days) and explicit date ranges.
- Real-time visitor counts via
logly_realtime. - Funnel analysis with completion and drop-off data.
- Install snippet generation for new sites.
- Runs via
npx—no manual install needed.
Use cases of Logly
- Ask an AI assistant how traffic changed this week compared to last.
- Identify where your signup funnel loses users.
- Get the install
<script>tag for adding Logly to a new site’s<head>. - Monitor current active visitors on your site in real time.
- Analyze top pages, referrers, countries, and device/browser splits.
Frequently asked questions
1 What dependencies or runtime are required?
Node.js 18 or newer is required. You also need a Logly account and an API key from Settings → API keys in the Logly dashboard.
2 How do I get a Logly API key?
Create one in your Logly dashboard under Settings → API keys. The key starts with logly_ and is shown only once.
3 What tools does the server provide?
It provides nine tools: logly_list_sites, logly_stats, logly_breakdown, logly_realtime, logly_events, logly_funnels, logly_funnel_results, and logly_install_snippet. Each returns analytics data relevant to its name.
4 How do date filters work?
Stats tools accept a days window (7, 30, or 90; defaults to 30) or explicit from/to parameters in YYYY-MM-DD format. If both are given, from/to takes precedence.
5 Where is the API base URL configurable?
You can override the base URL with the optional LOGLY_API_BASE environment variable. The default is https://app.logly.uk.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In