npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@f3d1/llmkit-mcp-server

v0.4.10

Published

AI cost tracking: 11 tools for spend, budgets, and Claude Code costs

Readme

@f3d1/llmkit-mcp-server

AI cost inspection for supported Claude Code sessions and Cline task data found in VS Code-family storage. Eleven tools cover local session evidence, authenticated gateway spend, and budget queries.

Part of LLMKit, an open-source API gateway with cost tracking and budget enforcement.

Quick start

Add to your .mcp.json (Claude Code) or .cursor/mcp.json (Cursor):

{
  "mcpServers": {
    "llmkit": {
      "command": "npx",
      "args": ["-y", "@f3d1/llmkit-mcp-server"]
    }
  }
}

The local tools (llmkit_local_*) need no API key. They read supported Claude Code sessions and Cline task data from supported editor storage. Proxy tools require an existing LLMKit API key in LLMKIT_API_KEY. Check llmkit.sh for current account and service availability.

Tools

Proxy tools (need API key)

| Tool | What it does | |------|-------------| | llmkit_usage_stats | Spend, requests, top models for a period | | llmkit_cost_query | Costs grouped by provider, model, session, or day | | llmkit_budget_status | Budget limits and remaining balance | | llmkit_session_summary | Recent sessions with cost, duration, models | | llmkit_list_keys | All keys with status and creation date | | llmkit_health | Proxy ping with response time |

Local tools (no key needed)

The local tools detect supported installations and aggregate their session data.

| Tool | What it does | |------|-------------| | llmkit_local_session | Current Claude Code session or latest detected Cline task cost | | llmkit_local_projects | Cumulative cost across all projects and sessions | | llmkit_local_cache | Claude Code prompt caching savings using model-bound prices | | llmkit_local_forecast | 30-day API-rate projection from detected local history | | llmkit_local_agents | Subagent cost attribution (Claude Code) |

SessionEnd hook

Auto-log session costs when Claude Code exits:

{
  "hooks": {
    "SessionEnd": [
      {
        "type": "command",
        "command": "npx @f3d1/llmkit-mcp-server --hook"
      }
    ]
  }
}

Environment variables

| Variable | Required | Description | |----------|----------|-------------| | LLMKIT_API_KEY | No | API key for proxy tools. Local tools work without it. | | LLMKIT_PROXY_URL | No | Proxy URL (defaults to hosted service) | | LLMKIT_CLINE_DIR | No | Override Cline data directory path | | LLMKIT_SCAN_WSL | No | Set to 1 to scan WSL homes for Claude Code and Cline data |

Supported tools

The local tools read data from:

  • Claude Code (~/.claude/projects/)
  • Cline extension storage in VS Code, Insiders, VSCodium, Cursor, and Windsurf
  • WSL installations when LLMKIT_SCAN_WSL=1 (scans distro homes via UNC paths on Windows)
  • VS Code, Cursor, and Windsurf server directories for supported remote extension storage

License

MIT