Weckr

com.useweckr由 useweckr.com 发布v0.1.2更新于 Oct 27, 2026

Ask which of your customers cost more in LLM calls than they pay, per user and per feature.

概览

AI 生成的概览

Weckr MCP 让助手在对话中查询 Weckr 的 AI 成本与毛利数据,可按用户、功能与套餐查看。

可以做什么
  • 读取当月总览:成本、收入、毛利、请求数与亏损用户数
  • 列出各用户毛利与高成本用户,支持筛选
  • 按功能拆分成本占比
  • 给出同供应商更便宜模型的替换建议及预计节省金额
  • 查看各套餐的毛利健康度与建议定价
  • 返回用于编辑消费上限的仪表盘链接(只读,不修改状态)
适用场景
适合在 Weckr 中跟踪 AI 产品数据、希望用自然语言询问哪些用户或功能在亏钱、当前 AI 毛利如何、定价是否可持续,而不必打开仪表盘时使用。
运行要求
通过 npx 以 stdio 本地进程运行 @weckr/mcp 包,需要 Node.js。需要 Weckr 账号,并在 WECKR_API_KEY 中提供项目 API 密钥。可选 WECKR_PROJECT_ID 固定项目,可选 WECKR_BASE_URL 覆盖 API 地址。需要能访问 Weckr API 的网络。
安装前请注意
WECKR_API_KEY 中的密钥会随每次请求发送到 WECKR_BASE_URL 指定的主机,因此只应指向你可控的主机。工具据称只读取聚合统计,但会把按用户和按套餐的收入与毛利数据交给助手及其模型提供方。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@weckr/mcp

Query your Weckr AI cost and margin data directly from Claude, Cursor, or any other MCP-compatible AI assistant.

Try it live

See what Weckr looks like before connecting your own data. 👉 https://app.useweckr.com/demo

What you can ask

Ask things like:

  • "Which of my users are losing me money this month?"
  • "What's my AI margin right now?"
  • "Which feature should I switch to a cheaper model?"
  • "Is my pricing sustainable given my actual AI costs?"
  • "Show me the feature cost breakdown."

Claude calls the Weckr API and gives you the real numbers from your dashboard, in the conversation.

Get an api key

Sign up at app.useweckr.com. Your wk_ key is shown once when you create a project. Copy it. If you missed it, mint a new project at app.useweckr.com/dashboard/projects/new.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "weckr": {      "command": "npx",      "args": ["-y", "@weckr/mcp"],      "env": {        "WECKR_API_KEY": "wk_your_key_here"      }    }  }}

Restart Claude Desktop. Try: "Use the Weckr tools to show me my AI costs this month."

Why npx and not npm install -g? Claude Desktop runs under launchd on macOS, which doesn't inherit your interactive shell's PATH. If you installed Node via nvm / asdf / volta, a globally-installed weckr-mcp binary usually isn't on Claude Desktop's PATH and the server fails to start with no diagnostic. npx -y @weckr/mcp sidesteps the PATH problem entirely.

Cursor

Add to .cursor/mcp.json at your project root (or ~/.cursor/mcp.json for global):

json
{  "mcpServers": {    "weckr": {      "command": "npx",      "args": ["-y", "@weckr/mcp"],      "env": {        "WECKR_API_KEY": "wk_your_key_here"      }    }  }}

Tools exposed

ToolUse it to ask
get_overview"How am I doing this month?" Total cost, revenue, margin, requests, unprofitable user count
get_users"Which users are unprofitable?" / "Show me my top-cost users." Per-user margin (filterable)
get_feature_breakdown"Which features cost me the most?" Per-feature cost share
get_model_recommendations"Where can I cut AI cost?" Same-provider cheaper-model swaps with $-saving estimate
get_pricing_recommendations"Is my pricing sustainable?" Per-plan margin health + recommended price
get_spending_cap_urlReturns the dashboard URL where caps are edited (does NOT mutate state)

Configuration

Env varRequiredDefaultNotes
WECKR_API_KEYyesnoneYour wk_ key from app.useweckr.com
WECKR_PROJECT_IDnoresolved from /api/v1/meOptional: pre-set the project UUID to skip one round-trip on startup
WECKR_BASE_URLnohttps://app.useweckr.comOverride for self-hosted Weckr. Your wk_ key is sent here on every request, so do not set this to a host you do not control. Only https:// is accepted (loopback http:// allowed for dev).

How it works

The MCP server is a tiny stdio process spawned by your AI client. It calls the Weckr HTTP API using your wk_ key (server-to-server, no JWT needed). The api key authoritatively identifies one project. The server uses it to resolve projectId once at startup, then scopes every subsequent call to that project. The dashboard endpoints (/api/v1/stats, /users, /recommendations/*) verify the URL project id matches the api key's project and return 404 on mismatch, so a leaked api key cannot be used to read another project's data.

No prompt text or completion text is sent anywhere by this package. The tools only read aggregated stats. The api key never leaves your local process except to the URL configured via WECKR_BASE_URL (default app.useweckr.com). If you change WECKR_BASE_URL, the SDK prints a stderr warning so you can spot a copy-paste config that points at the wrong host.

Troubleshooting

Claude Desktop shows the weckr server as disconnected, with no error. Likely a PATH issue. Switch to the npx -y @weckr/mcp form above. To see the actual error from the spawn, run the server manually in a terminal: WECKR_API_KEY=wk_... npx -y @weckr/mcp. Anything wrong (missing api key, 401 from Weckr, network issue) prints to stderr.

Weckr API 401 on /api/v1/me. Your WECKR_API_KEY is empty, malformed, revoked, or pasted with a trailing space. Confirm a working key by visiting app.useweckr.com/dashboard/projects/new and creating a fresh project.

Tools show "Project not found or forbidden" (404). You set WECKR_PROJECT_ID to a UUID that doesn't belong to the project the api key owns. Remove WECKR_PROJECT_ID so the server resolves the right project id from the api key.

Local development

bash
git clone https://github.com/Ghiles3232/weckr-sdkscd weckr-sdks/mcpnpm installnpm run build
# Smoke-test against production:WECKR_API_KEY=wk_... node dist/index.js# (prints "weckr-mcp running on stdio" to stderr, then waits for JSON-RPC on stdin)

To point at a local Weckr backend:

bash
WECKR_API_KEY=wk_... WECKR_BASE_URL=http://localhost:3000 node dist/index.js

Source

Open source at github.com/Ghiles3232/weckr-sdks.

License

MIT

来源:mcp/README.md,提交 e824773

工具

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

版本历史

1
  1. v0.1.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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