# weckr

Queries AI expense figures, per-user margins, and feature-level costs directly inside conversation with your coding agent.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 8
- Author: Ghiles3232
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Ghiles3232/weckr-sdks/tree/HEAD/mcp
- Updated: 2026-10-19
- HTML: https://affpapa.org/en/nevibecode/mcp/weckr

## What it does

The server runs locally via `npx` and communicates over stdio with the Weckr HTTP API. It requires a `WECKR_API_KEY` with the `wk_` prefix. At launch, the process queries `/api/v1/me` to resolve the project identifier. Subsequent requests are scoped to that project. The server sends no prompt text or completions.

Available tools inspect general performance with `get_overview`, list negative-margin users with `get_users`, and calculate feature cost shares with `get_feature_breakdown`. Other tools recommend cheaper models from the same provider or review pricing plans. Tool `get_spending_cap_url` provides a dashboard link without altering any limits. Passing an unmatched `WECKR_PROJECT_ID` triggers a 404 error from the API.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `WECKR_API_KEY`, `WECKR_PROJECT_ID`, `WECKR_BASE_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env WECKR_API_KEY=<WECKR_API_KEY> --env WECKR_PROJECT_ID=<WECKR_PROJECT_ID> --env WECKR_BASE_URL=<WECKR_BASE_URL> --transport stdio mcp -- npx -y @weckr/mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add mcp --env WECKR_API_KEY=<WECKR_API_KEY> --env WECKR_PROJECT_ID=<WECKR_PROJECT_ID> --env WECKR_BASE_URL=<WECKR_BASE_URL> -- npx -y @weckr/mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@weckr/mcp"
            ],
            "env": {
                "WECKR_API_KEY": "<WECKR_API_KEY>",
                "WECKR_PROJECT_ID": "<WECKR_PROJECT_ID>",
                "WECKR_BASE_URL": "<WECKR_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@weckr/mcp"
            ],
            "env": {
                "WECKR_API_KEY": "<WECKR_API_KEY>",
                "WECKR_PROJECT_ID": "<WECKR_PROJECT_ID>",
                "WECKR_BASE_URL": "<WECKR_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e WECKR_API_KEY=<WECKR_API_KEY> -e WECKR_PROJECT_ID=<WECKR_PROJECT_ID> -e WECKR_BASE_URL=<WECKR_BASE_URL> mcp npx -y @weckr/mcp
```
Replace <…> with your own values

## When to use it
- identify users who consume more LLM spend than their subscription covers
- inspect which product features generate the largest AI bills
- receive cheaper model replacement suggestions within the same provider
- verify pricing plan viability against real model usage numbers

## Example prompts
- Show me my most unprofitable accounts this month using Weckr.
- Which product features are driving our highest LLM expenses?
- Check our overall project margin with the Weckr tools.

## Similar
- [openrouter-analytics](https://affpapa.org/en/nevibecode/skills/openrouter-analytics.md) — skill · 300 installs
- [exploring-llm-clusters](https://affpapa.org/en/nevibecode/skills/exploring-llm-clusters.md) — skill · 407 installs
- [edge-hint-extractor](https://affpapa.org/en/nevibecode/skills/edge-hint-extractor.md) — skill · 3300 installs
- [business-analyst](https://affpapa.org/en/nevibecode/agents/business-analyst.md) — subagent · 3855 installs
- [google-agents-cli-eval](https://affpapa.org/en/nevibecode/skills/google-agents-cli-eval.md) — skill · 511400 installs
- [data-storytelling](https://affpapa.org/en/nevibecode/skills/data-storytelling.md) — skill · 16782 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
