Mitr Analytics
概览
作者提供的说明(英文原文)
Ask about your Mitr cookie-free analytics: apps, reports, funnels, alerts and usage.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i3 项中通过 3 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 82/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 电脑或云端
- 传输方式: stdio, Streamable HTTP
- 分类: 营销与社交媒体
- 你需要填写:MITR_API_KEY, Authorization
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:3 项中通过 3 项
- 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
- 需要你自己填写:
MITR_API_KEY,MITR_API_BASE_URL,Authorization
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
或者在你的电脑上运行
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"mitr": {
"command": "npx",
"args": [
"-y",
"@mitr-analytics/mcp"
],
"env": {
"MITR_API_KEY": "your-value",
"MITR_API_BASE_URL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http mitr https://mcp.mitranalytics.dev/mcp --header 'Authorization: your-value'或者在你的电脑上运行
claude mcp add mitr --env MITR_API_KEY=your-value --env MITR_API_BASE_URL=your-value -- npx -y @mitr-analytics/mcp运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"mitr": {
"url": "https://mcp.mitranalytics.dev/mcp",
"headers": {
"Authorization": "your-value"
}
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"mitr": {
"command": "npx",
"args": [
"-y",
"@mitr-analytics/mcp"
],
"env": {
"MITR_API_KEY": "your-value",
"MITR_API_BASE_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"mitr": {
"type": "http",
"url": "https://mcp.mitranalytics.dev/mcp",
"headers": {
"Authorization": "your-value"
}
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"mitr": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mitr-analytics/mcp"
],
"env": {
"MITR_API_KEY": "your-value",
"MITR_API_BASE_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- Workspace API key from Mitr dashboard → Settings → API keys (mitr_live_...)
MITR_API_BASE_URLenvOverride the API URL. Leave unset unless told otherwise.Authorization机密 必填 HTTP headerBearer followed by your Mitr API key (mitr_live_...), from the Mitr dashboard: Settings → API keys
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
服务器要求先登录,才会列出它的工具。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 shiv9thakur 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- ✓ 通过
端点有响应
在 165 毫秒内响应(HTTP 401)
- ✓ 通过
使用 OAuth 登录
声明支持 OAuth 登录,你的 AI 应用可以带你去登录
- … 尚未检查
工具描述中没有隐藏指令
尚未检查;我们会在检查端点时读取工具列表
与“营销与社交媒体”中的其他服务器比较i
- 星标数多于此分类中其他 3610 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 3610 个服务器的 62% 更新
- 基础检查结果等于或优于此分类中其他 3610 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Mitr Analytics 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:MITR_API_KEY, Authorization
它在我的电脑上运行还是在云端?
两种方式都可以:安装在你的电脑上,或者连接云端版本。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(1.1.0)于19天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
有什么可以替代它?
同一分类中有:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Google Analytics MCP
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
BibiGPT YouTube Video Summarizer
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
@mitr-analytics/mcp
Ask Claude, Gemini or any other MCP client about your Mitr analytics, in plain English. It reads your own data (apps, reports, funnels, alerts, plan usage) and hands it to the assistant to analyse.
Mitr is cookie-free analytics, so there is no consent banner to wire up and nothing here changes that: this server only reads what is already in your dashboard.
What you can ask
- "Which of my apps had the biggest drop in visitors this week, and where did it come from?"
- "Show my signup funnel for the last 30 days. Where do people leave?"
- "Is anything odd in the last events for my marketing site? Are the UTM tags coming through?"
- "How much of my monthly event quota have I used?"
- "Register a new web app called Docs for docs.example.com."
Set up (about two minutes)
You need a Mitr account. Nothing to install if you use the hosted endpoint.
1. Create an API key. In the dashboard open Settings → API keys & AI assistants → Create key, give it a name (for example "Claude Code") and copy it. It is shown once.
Keys are read-only unless you tick permissions when creating them: "Can register apps", "Can manage funnels", "Can manage QR campaigns", "Can manage webhooks", and "Can delete" (which also needs one of the manage permissions). They expire after 365 days by default (30, 90, 365 days or never). A key stops working if you leave or are removed from the workspace it was created in.
2. Connect your assistant.
Hosted (no install)
Point any client that supports remote MCP servers at https://mcp.mitranalytics.dev/mcp and send the key in the Authorization header. Never put the key in the URL; the endpoint refuses it.
*Claude Code*:
claude mcp add --transport http mitr https://mcp.mitranalytics.dev/mcp --header "Authorization: Bearer mitr_live_..."
*Cursor* (~/.cursor/mcp.json):
{
"mcpServers": { "mitr": { "url": "https://mcp.mitranalytics.dev/mcp", "headers": { "Authorization": "Bearer mitr_live_..." } } } }
*VS Code* (.vscode/mcp.json):
{
"servers": { "mitr": { "type": "http", "url": "https://mcp.mitranalytics.dev/mcp", "headers": { "Authorization": "Bearer mitr_live_..." } } } }
*Gemini CLI* (~/.gemini/settings.json):
{
"mcpServers": { "mitr": { "httpUrl": "https://mcp.mitranalytics.dev/mcp", "headers": { "Authorization": "Bearer mitr_live_..." } } } }
Local (npx)
For clients that run a command, such as Claude Desktop. You need Node.js 18 or newer. Open claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\) and add:
{
"mcpServers": { "mitr": { "command": "npx", "args": ["-y", "@mitr-analytics/mcp"], "env": { "MITR_API_KEY": "mitr_live_..." } } } }
The same works in Claude Code (claude mcp add mitr --env MITR_API_KEY=mitr_live_... -- npx -y @mitr-analytics/mcp) and the Gemini CLI if you prefer running it locally.
3. Ask a question (restart the assistant first if it's a local setup). The dashboard shows when the key was last used.
Tools
| Tool | What it does |
|---|---|
list_apps | Every app in your workspace, with the siteId the other tools need. |
get_campaign_report | Marketing attribution: visitors and conversions per UTM campaign, source or medium, vs the previous period. |
get_app_report | A 7-day report for one app: visitors, pageviews, traffic, sources, countries, devices, web vitals, conversions. |
get_recent_events | The latest raw events for one app, to check what is really being tracked. |
list_funnels | Your saved conversion funnels. |
get_funnel_results | Step-by-step conversion and drop-off for one funnel over a date range. |
get_alert_rule | Your traffic spike/drop alert settings, if you have set one. |
get_billing_usage | Your plan, subscription status and event usage. |
get_workspace_overview | One summary of every app's traffic, webhooks, QR campaigns and funnels, with anything that needs attention. |
list_qr_campaigns | Your QR campaigns with ids, status, scan totals and your plan's QR limits. |
get_qr_campaign | One campaign with its codes and per-code scan counts. |
get_webhook_health | Per webhook endpoint: delivery counts by status and the latest failure. Payloads are never returned. |
add_app | Register a new app. Needs "Can register apps". The app's secret key is not returned: copy it from the dashboard. |
create_funnel, update_funnel | Create a funnel from ordered page-path or event steps, or replace a funnel's name and steps. Needs "Can manage funnels". |
delete_funnel | Permanently delete a funnel. Needs "Can manage funnels" and "Can delete". |
create_qr_campaign, update_qr_campaign | Create a campaign that sends scanners to an https URL, or rename it, change the destination, or set its status to active, paused or archived. Needs "Can manage QR campaigns". |
add_qr_code | Add a printable code to a campaign, labelled by placement. Needs "Can manage QR campaigns". |
create_webhook, update_webhook | Create an https webhook endpoint, or change its URL and event types, or pause it. The signing secret is not returned: copy it from the dashboard. Needs "Can manage webhooks". |
delete_webhook | Permanently delete a webhook endpoint. Needs "Can manage webhooks" and "Can delete". |
Every change is its own permission on the key, and deletes need "Can delete" as well. Alerts and team management are not available to the assistant.
Security and privacy
- A key sees what you see. It has the same read access to your workspace as you do in the dashboard. Treat it like a password.
- Revoke it any time under Settings → API keys. It stops working immediately.
- It sits in your assistant's config file in plain text. Use a separate key per tool, so you can revoke one without breaking the others.
- Your AI provider sees the data you ask about. Reports and recent events (page paths, UTM tags, device and location summaries, any custom event properties you send) are returned to the assistant, so they are covered by that provider's terms. Mitr itself identifies visitors only by hashed identifiers; see how we count visitors without cookies.
- Visitor data is marked as untrusted. Page paths, referrers, UTM tags and event properties are written by your visitors, so anyone can put text in them, including text aimed at an AI. Reports and recent events are cleaned of hidden characters and returned inside an
untrusted_dataenvelope telling the assistant to treat them as data, never instructions. - No secrets in the conversation.
add_appdoesn't return the new app's SDK secret key, and the webhook tools don't return signing secrets; copy them from the dashboard. - The key is only ever sent over HTTPS (plain
http://is accepted only forlocalhost).
Plans
During early access the MCP server works on every Mitr plan, including Free. After early access ends it is part of the paid plans; Free workspaces then get a message pointing to pricing, and upgrading restores access with the same key.
Troubleshooting
Hosted: open https://mcp.mitranalytics.dev/ in a browser; it should show the server version. Local: run npx -y @mitr-analytics/mcp --version in a terminal. If either works, the problem is in the client config.
| You see | What to do |
|---|---|
MITR_API_KEY is not set | The env block is missing or in the wrong place in the client config. |
| "Your Mitr API key was rejected" | The key expired, was revoked or was copied wrongly, or you're no longer in its workspace. Create a new one in Settings → API keys. |
"missing the 'apps:write' permission" (or funnels:write, qr:write, webhooks:write, delete) | The key doesn't have that permission. Create one with it ticked to use the tool. |
| "early-access period has ended for the Free plan" | Upgrade the workspace; the same key starts working again. |
| 401 from the hosted endpoint | The Authorization: Bearer mitr_live_… header is missing or malformed in the client config. |
| "Mitr is rate-limiting this key" | Too many requests in a short time. Wait a minute. |
npx: command not found | Install Node.js 18+, then restart the assistant so it picks up the new PATH. |
| "Could not reach Mitr" | Check your connection or proxy. Only set MITR_API_BASE_URL if you were told to. |
Configuration
| Variable | Required | Default |
|---|---|---|
MITR_API_KEY | yes | none |
MITR_API_BASE_URL | no | https://api.mitranalytics.dev |
Development
npm install
npm test # builds, then unit tests + an end-to-end stdio test against a stub API npx @modelcontextprotocol/inspector node dist/index.js # try the tools by hand (set MITR_API_KEY first)
Questions or problems: support@mitranalytics.dev
License
MIT