npm @logly-uk/mcpstdioMITupdated 3mo ago
Query your Logly web analytics from Claude, Cursor, or any Model Context Protocol client.
Logly 能做什么?
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
| Tool | What it does |
|---|---|
logly_list_sites |
List every site in your account with its site ID — start here. |
logly_stats |
Pageviews, sessions, visitors, bounce rate, avg duration, daily series, previous-period comparison. |
logly_breakdown |
Top pages, referrers, countries and device/browser split. |
logly_realtime |
Visitors active right now. |
logly_events |
Custom event counts. |
logly_funnels |
List a site's conversion funnels and their steps. |
logly_funnel_results |
Completion counts and drop-off per funnel step. |
logly_install_snippet |
The <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
| Variable | Required | Purpose |
|---|---|---|
LOGLY_API_KEY |
yes | Your Logly API key. |
LOGLY_API_BASE |
no | Override the API base URL (default https://app.logly.uk). |
Links
- Logly — https://logly.uk
- MCP server page — https://logly.uk/mcp/
- Public API reference — https://logly.uk/docs
MIT licensed.
安装
把 Logly 添加到你的客户端。选择你正在使用的那个。
claude mcp add mcp -- npx -y @logly-uk/mcpcodex mcp add mcp -- npx -y @logly-uk/mcpamp mcp add mcp -- npx -y @logly-uk/mcp{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@logly-uk/mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@logly-uk/mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"mcp","command":"npx","args":["-y","@logly-uk/mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@logly-uk/mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@logly-uk/mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@logly-uk/mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@logly-uk/mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@logly-uk/mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @logly-uk/mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
8 个工具
Logly 向已连接的智能体提供 8 个工具。
- logly_list_sites
- List every site in your account with its site ID — start here.
- logly_stats
- Pageviews, sessions, visitors, bounce rate, avg duration, daily series, previous-period comparison.
- logly_breakdown
- Top pages, referrers, countries and device/browser split.
- logly_realtime
- Visitors active right now.
- logly_events
- Custom event counts.
- logly_funnels
- List a site's conversion funnels and their steps.
- logly_funnel_results
- Completion counts and drop-off per funnel step.
- logly_install_snippet
- The `<script>` tag to add Logly to a site's `<head>`.
评分
69 / 100
良好
- 文档22/25
- 维护13/25
- 可信度16/20
- 能力6/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 105 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 8 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 1.0.2最新 | 2026年5月18日 |