Agentic Analytics

io.github.pooriaarab由 GitHub 账号 pooriaarab 发布v0.1.0更新于 Oct 24, 2026

Score social post results and recommend the next move.

发布方自己的服务:agentic.no

已验证STDIO仅桌面效率与工作流数据与分析

概览

AI 生成的概览

一个本地 MCP 服务器,对用户提供的社交帖子指标打分排序、比较内容形式并给出下一步建议。

可以做什么
从 JSON 或 CSV 文本导入并校验帖子指标,按固定字段结构整理平台、钩子、形式和六项数值指标。按得分、线索率、互动率和曝光量对帖子排序。按形式汇总曝光、互动、线索和平均分,比较不同形式。依据确定性分数阈值给出加倍投入、修改或放弃的建议。以 JSON 或 Markdown 生成完整分析报告,并读取进程内的成本报告。
适用场景
适合已有导出的社交帖子指标、希望助手排序、比较形式并起草复盘报告而不连接社交账号的场景。适用于分析师、内容团队,以及想把同样计算嵌入脚本的开发者。
运行要求
通过 npx 以 stdio 在本地运行,需要 Node.js 18 或更高版本。分析功能不需要 API 密钥、凭据或环境变量。输入须为固定结构的 JSON 或 CSV,数值须为有限非负数,平台、钩子和形式标签不能为空。
安装前请注意
它不会抓取指标、发布帖子或把线索归因到转化,需自行提供可比的测量数据和一致的时间窗口。建议来自规则阈值,并非训练模型或显著性检验。0.1.0 为早期版本,API 和规则可能变化。另有可选的 HTTP 文本工具会把文本发送到你指定的端点,且不带内置认证头。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agentic Analytics,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

agentic-analytics

[npm version] [Downloads/month] [MIT license]

Package · Input guide · API · Support

agentic-analytics is an open-source social post analytics toolkit for developers and agents. It ranks supplied metrics, compares formats, and produces rule-based next moves. Reports run locally through a JavaScript SDK, command-line interface (CLI), or Model Context Protocol (MCP) server.

Install

sh
npm install agentic-analytics

Use Node.js 18 or later. TypeScript declarations are included. The package has two direct runtime dependencies.

Score your first post

Save a sample metrics file. No credentials or environment variables are required.

sh
cat > metrics.json <<'JSON'[{"platform":"LinkedIn","hook":"Stop guessing","format":"carousel","impressions":1000,"likes":40,"comments":8,"shares":5,"clicks":30,"leads":4}]JSONnpx agentic-analytics report --file metrics.json --markdown

The report prints Posts: 1, Engagement rate: 5.30%, and Lead rate: 0.40%. Its next move is double-down for this sample. The SDK produces the same report:

js
import { createReport, reportMarkdown } from 'agentic-analytics';
const report = createReport([{  platform: 'LinkedIn', hook: 'Stop guessing', format: 'carousel',  impressions: 1000, likes: 40, comments: 8, shares: 5,  clicks: 30, leads: 4,}]);console.log(reportMarkdown(report));

How it works

text
JSON / CSV → normalize metrics → score and rank → compare formats                                             → recommend next moves                                             → JSON / Markdown report                SDK / CLI / MCP share these functions

Why it exists

Buffer Insights and Hootsuite Analytics offer social reporting dashboards. agentic-analytics provides a local calculation library for metrics you already have. You can use its report functions in scripts and agent workflows without connecting a social account.

Compare

Checked 2026-10-14 against source and the linked product documentation.

Scopeagentic-analyticsBuffer InsightsHootsuite Analytics
InterfaceSDK, CLI, MCPBuffer dashboardHootsuite reports
InputSupplied JSON or CSVConnected social channelsConnected social account data
ExecutionYour Node.js processManaged applicationManaged application
Report outputJSON and MarkdownDashboard; PDF or CSV on paid plansDashboard and report exports

Buffer describes channel access in its Insights guide. Hootsuite describes exports in its report export guide.

Coverage

There are zero branded platform connectors. platform is a user-supplied label, not an integration selector.

Input / surfaceStatusScope
JSON arrayImplementedPost metrics
JSON object with posts arrayImplementedPost metrics
CSVImplementedFixed field schema
Social network APIs—No account connection or data fetching
Generic HTTP text routerSDK utilitySends {text} to your endpoint; not a metrics connector
Local text routerLocal receipt onlyNo external delivery

Local tests verify parsing, scoring, and exposed surfaces. There are no provider credentials to verify for analytics.

Common use cases

  1. LinkedIn analysts: convert exported metrics into the schema, then compare carousel and text formats.
  2. Node.js developers: embed createReport in an internal review script.
  3. MCP client developers: ask an agent to rank supplied metrics through rank_posts.
  4. Content teams: generate a Markdown report from CSV for a review document.

Features

  • Validation: require platform, hook, format, and six non-negative numeric metrics.
  • Ranking: sort by score, then lead rate, engagement rate, and impressions.
  • Format comparison: aggregate impressions, engagements, leads, and average scores per format.
  • Recommendations: assign double-down, revise, or drop through score thresholds.
  • Reports: expose totals, ranked posts, format comparisons, and recommendations as JSON or Markdown.
  • Text utilities: export text statistics, generic routers, guards, and process-local cost counters separately from analytics.

Runtime surfaces

Analytics SDK exports are normalizePost, parseMetricsText, scorePost, rankPosts, compareFormats, recommendNext, createReport, and reportMarkdown. The SDK also exports summarizeText, dispatchText, local and HTTP routers, and logging, guard, and cost helpers.

CLI data commands are ingest, rank, recommend, and report; each requires --file. Other commands are costs and mcp. Help uses no arguments, --help, or -h. Version uses --version or -V. Literal help and version commands are not accepted.

sh
npx agentic-analytics ingest --file metrics.jsonnpx agentic-analytics rank --file metrics.jsonnpx agentic-analytics recommend --file metrics.jsonnpx agentic-analytics report --file metrics.json --markdownnpx agentic-analytics costsnpx agentic-analytics mcp

MCP tools are ingest_metrics, rank_posts, recommend_next, analytics_report, and get_cost_report. The four analytics tools accept JSON or CSV through text. analytics_report also accepts optional markdown.

json
{"mcpServers":{"agentic-analytics":{"command":"npx","args":["agentic-analytics","mcp"]}}}

The self-hosted Worker source serves GET /health and POST /report. Report requests require a JSON body with a metrics text string. There is no managed endpoint supplied by this package.

Delivery and behavior limits

Analytics functions do not fetch metrics, publish posts, or attribute leads to conversions. You must supply comparable measurements and consistent time windows. Engagements equal likes plus comments plus shares. Clicks are retained but do not affect the score. Score equals engagementRate * 100 + leadRate * 500; it is not capped at 100. Rates use impressions as the denominator. Zero impressions produce zero rates. Recommendations use relative score thresholds, not a trained model or statistical significance test. recommendNext expects an already ranked list; call rankPosts first. Format grouping combines matching format labels across platforms. CSV parsing supports quoted commas and escaped quotes, but not multiline cells. Analytics does not record cost units. Generic SDK dispatch utilities track character units in process memory, not currency. The HTTP text router has a ten-second default timeout and no built-in retries or authentication headers.

Integration guides

Supply every field shown below. JSON also accepts { "posts": [...] }. Convert platform exports into this schema before importing them; no branded export adapter exists.

csv
platform,hook,format,impressions,likes,comments,shares,clicks,leadsLinkedIn,Stop guessing,carousel,1000,40,8,5,30,4

Numbers must be finite and non-negative. Platform, hook, and format labels must be non-empty. Use parseMetricsText to validate input before calling report functions. No .env loading is needed for local analytics.

Status

Version 0.1.0 is an early release. The API and recommendation rules can change before 1.0. Report bugs or request support. Public case studies are not yet published in this repository. Contributors can run npm run build, npm run typecheck, and npm test.

FAQ

What does agentic-analytics analyze?

agentic-analytics analyzes supplied social post metrics. It computes engagement rates, lead rates, rankings, and format summaries.

Which integrations are verified?

agentic-analytics has no branded social network integrations. Local tests verify JSON and CSV calculation paths.

Does agentic-analytics provide a managed analytics dashboard?

agentic-analytics runs in your process and returns reports. It does not supply a managed dashboard or persistent metrics store.

How is agentic-analytics different from Buffer Insights?

agentic-analytics calculates reports from metrics you supply. Buffer Insights provides reporting within Buffer for connected channels.

How is agentic-analytics different from Hootsuite Analytics?

agentic-analytics offers local functions and agent tools for a fixed metrics schema. Hootsuite Analytics offers account-based dashboards and reports.

Can agentic-analytics fetch LinkedIn metrics?

agentic-analytics does not fetch LinkedIn metrics. Convert your data into the required schema and pass it as JSON or CSV.

Are the next moves generated by an AI model?

agentic-analytics assigns next moves with deterministic score thresholds. The text templates use the supplied format, platform, and hook.

Does agentic-analytics require API keys?

agentic-analytics requires no API keys for analytics. Its separate HTTP text utility sends data to an endpoint you choose.

How does agentic-analytics score posts?

agentic-analytics adds engagement rate times 100 to lead rate times 500. Clicks are stored but excluded from this formula.

License

MIT. Copyright Pooria Arab.

来源:README.md,提交 c7ac5b2

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Oct 15, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Agentic 集成