Logly
@logly-uk
About Logly
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"
}
}
}
}Tools
8List every website in the authenticated Logly account with its site ID. Start here to find the site ID the other tools need.
Traffic totals for a site — pageviews, sessions, visitors, bounce rate, average duration — plus a daily series and a comparison against the previous period.
Top pages, top referrers, top countries and device/browser split for a site over the given period.
Visitors currently active on a site (real-time, the last few minutes).
Custom event counts for a site (events sent via logly('event', ...)) over the given period.
List the conversion funnels defined for a site, with their IDs and step sequences.
Completion counts and drop-off per step for one conversion funnel.
Return the Logly tracking snippet for a site — the single <script> tag to add to the site's <head>. Works offline, no API call.
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.
FAQ from Logly
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.
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.
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.
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.
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.
Frequently asked questions
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](https://app.logly.uk).
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.
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.
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.
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`.
Basic information
More Other MCP servers
ICSS
chokcoco不止于 CSS
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
Comments