Local OpenRouter cost analytics, reports, experiments and routing presets over MCP stdio.
MCPpedia last refreshed this data
io.github.cyuanxv/openrouter-analytics-mcp is an MCP server that local OpenRouter cost analytics, reports, experiments and routing presets over MCP stdio. Its tool list has not been published yet over stdio and sse, requires no API key, and scores 62/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"io-github-cyuanxv-openrouter-analytics-mcp": {
"args": [
"-y",
"@cyuanxv/openrouter-analytics-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Local OpenRouter cost analytics, reports, experiments and routing presets over MCP stdio.
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @cyuanxv/openrouter-analytics-mcp against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in maps
AI tools for EasyEDA Pro schematics, PCB placement and routing, SPICE simulation, and DRC.
MCP server for MikroTik routers: firewall, NAT, routing, DHCP, DNS, WireGuard and more via SSH.
Enables AI assistants to control REAPER for mixing, mastering, MIDI and music production.
OSRM MCP — routing via the public demo server
MCP Security Weekly
Get CVE alerts and security updates for io.github.cyuanxv/openrouter-analytics-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
0.6.0-alpha.3 为本地版 alpha 版本;各渠道发布与验收状态见发布与验收记录。

简体中文 | English
看懂每一笔 AI 开销,让下一次模型选择更有把握。
OpenRouter 工作台(OpenRouter Workbench)是一个可自行部署的 OpenRouter 费用分析与 LLM 用量管理工具。把余额查询、模型与供应商费用拆解、异常检测、周报和模型路由方案集中到一个个人工作台,通过 MCP 在本地客户端中使用;部署 Sites 云端版后,也能在 ChatGPT 中查询。
不止看到账单数字:找到费用变化的线索,比较模型选择,保存可追溯的方案,把分析变成下一步行动。
由 cyuanxv 开发 · 在 X / Twitter 关注 @cyuanxv 第三方项目,非 OpenRouter 官方产品,未获官方背书。
![]()

Sites 版当前源码真实界面,使用本地模拟数据;金额不是实际账单或模型报价。
flowchart LR
A[自己的 OpenRouter 账户] --> B[费用与用量分析]
B --> C[异常检测与原因线索]
B --> D[保存周报与成本实验]
C --> E[比较模型与供应商]
E --> F[保存及导出路由方案]
功能流程示意,非界面截图;导出的方案需由你接入业务,工作台不会自动切换线上模型。
从 新用户快速上手 开始:配置 Key → 运行中文自检 → 查询账户 → 保存并查看第一份费用报告。遇到问题查看 常见问题。教程以本地 MCP 版为主,Sites 部署请按下方对应说明。
两种版本共享 28 个 MCP 工具,但运行方式与配套能力不同:
| 对比 | 本地 MCP 版 · 0.6.0-alpha.3 | Sites 云端版 · 0.5.0 |
|---|---|---|
| 运行位置 | 自己的电脑,需保持进程运行 | 自己的 ChatGPT Sites 项目,不依赖本机持续开机 |
| 使用入口 | 支持本地 stdio 的 MCP 客户端,例如 Cursor | 自己的私有网页和 ChatGPT 云端插件 |
| 数据保存 | 本机专用目录中的 SQLite | 自己的 Sites D1 数据库 |
| 必要条件 | Node.js 22.22+(22 系列)或 24+、MCP 客户端;账户查询需自己的 Management Key | Sites 相应权限、身份认证、D1 和服务端秘密配置;账户查询需自己的 Management Key |
| 网页界面 | 不附带;上方截图展示的是 Sites 网页 | 提供网页工作台 |
| 定时报告和 Telegram | 无内置调度或自动发送 | 需另行配置云端任务与 Telegram 通知通道,不随源码自动启用 |
| 安装说明 | 本地版安装 | Sites 云端部署 |
本地 stdio 进程不能直接作为 ChatGPT 云端连接入口。 想在电脑上的 MCP 客户端使用,选本地版;想用网页或 ChatGPT 云端连接,选 Sites 版。现有作者私人服务不供公共安装使用。
本地版安装:npm install --ignore-scripts @cyuanxv/openrouter-analytics-mcp@0.6.0-alpha.3。客户端配置见本地安装说明,也可使用 GitHub Release 安装包。另见功能与边界和安全说明。
本地版新增 安装与配置自检,提供中文诊断、离线与 JSON 模式。
本地版 0.6.0-alpha.3 新增易读费用报告:先看花费与增减,再看模型变化和数据缺口;已有报告保持原样。
查余额和费用、分析模型与供应商用量、查询调用元信息、检测及解释费用异常、保存周报与提醒记录、比较模型、记录成本实验、保存和导出模型路由方案。
报告与预设会写入部署者自己的数据库;上游账户查询不修改 OpenRouter 账户。不会执行付费模型推理、充值、修改 Key 或自动替业务切换模型。Telegram 定时发送由另行配置的云端任务完成。
验证本地 MCP 版:
cd openrouter-analytics-mcp/packages/local-mcp
npm ci --ignore-scripts
npm run build
npm test
需使用完整源码树,构建会复用 services/routerlens。仅安装发行包无需构建,见本地版安装说明。
验证 Sites 服务源码:
cd openrouter-analytics-mcp/services/routerlens
npm ci --ignore-scripts
npm run build
npm test
npm run validate
此流程验证构建和模拟测试,不创建云服务、不调用真实账户。部署请先完整阅读安装说明。
已确定采用个人自行部署方式。cyuanxv 提供开源代码和文档,不提供面向公众的托管账单服务;使用者负责自己的部署、OpenRouter 账户、密钥及托管费用。当前不提交 ChatGPT 审核。
代码采用 Apache-2.0,参见 LICENSE。品牌图标属于 OpenRouter,不纳入本项目代码许可证的授权范围,见 素材说明。
提供自部署源码和本地 MCP 安装包,暂不上架 ChatGPT。 根目录插件清单是需要使用者配置的模板,分析服务地址为无效占位符,不能原样连接。
下载源码或克隆仓库到 openrouter-analytics-mcp 目录。本仓库以干净源码建立独立历史,不包含原私人仓库历史或私人部署配置。
[MCP Registry 发