@agentistics/mcp

中文文档
2.201.1发布于 2026/11/08FSL-1.1-ALv2ES Module构建来源已验证近 30 天下载 3.6万

Agentistics MCP server — Claude Code analytics for Claude Desktop and Claude Code

原始使用文档
文档目录7 节
  1. What it does
  2. Usage
  3. With agentistics server (recommended)
  4. Standalone with Claude Desktop
  5. Available tools
  6. Requirements
  7. License

@agentistics/mcp

MCP server that exposes your Claude Code analytics as tools for Claude Desktop, Claude Code agents, and any MCP-compatible client.

What it does

Reads data from ~/.claude/ (the same data agentistics visualizes) and exposes it as 13 structured MCP tools.

Usage

The MCP server is included and auto-registered when you run agentop server. No separate install needed.

Standalone with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "agentistics": {
      "command": "npx",
      "args": ["-y", "@agentistics/mcp"],
      "env": {
        "AGENTISTICS_API": "http://localhost:47291"
      }
    }
  }
}

The AGENTISTICS_API env var must point to a running agentistics server.

Available tools

ToolReturns
agentistics_summaryAll-time totals: tokens, cost, sessions, streak — unified or per-harness
agentistics_harnessesSide-by-side comparison of every tracked harness
agentistics_plan_limitsSubscription windows, pacing, and the recommended harness/model before opening sessions
agentistics_projectsPer-project token and cost breakdown (optionally per-harness)
agentistics_sessionsRecent sessions with harness, duration, model, cost
agentistics_costsModel pricing breakdown and cache savings (optionally per-harness)
agentistics_component_catalogAvailable dashboard components
agentistics_get_layoutsCurrent custom page layouts
agentistics_build_layoutCreate a full layout from a component list
agentistics_add_componentAdd one component to an existing layout
agentistics_remove_componentRemove a component by instance ID
agentistics_create_layoutCreate a new empty layout
agentistics_set_active_layoutSwitch the active /custom layout
agentistics_delete_layoutDelete a layout permanently
agentistics_export_pdfGenerate a PDF report download link for a date range

Requirements

Requires a running agentistics server (agentop server or the Windows desktop app). The MCP server proxies requests to http://localhost:47291 by default.

License

FSL-1.1-ALv2 — part of the agentistics project.

版本与发布记录

@agentistics/mcp 共发布 431 个版本,首次发布于 2026/04/25;过去 12 个月发布了 431 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.201.1latest2026/11/08今天
2.201.02026/11/07今天
2.200.72026/11/07今天
2.200.62026/11/071 天前
2.200.52026/11/071 天前
2.200.42026/11/071 天前

关于 @agentistics/mcp 的常见问题

@agentistics/mcp 是什么?

Agentistics MCP server — Claude Code analytics for Claude Desktop and Claude Code

如何安装 @agentistics/mcp?

在项目目录运行 npm install @agentistics/mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 agentistics-mcp,可以用 npx agentistics-mcp 直接运行。

@agentistics/mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/agentistics__mcp 是否存在。

@agentistics/mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@agentistics/mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@agentistics/mcp 可以商用吗?

@agentistics/mcp 使用 FSL-1.1-ALv2 许可。声明的许可为 FSL-1.1-ALv2,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@agentistics/mcp 的下载量有多少?

根据 npm 官方下载统计,@agentistics/mcp 在 2026/10/05 – 2026/11/03 这 30 天内被下载 36,149 次,日均约 1,205 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@agentistics/mcp 还在维护吗?

最新版本 2.201.1 发布于 2026/11/08(今天);至今共发布 431 个版本,其中过去 12 个月发布了 431 个;首次发布于 2026/04/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。