🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@f3d1/llmkit-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@f3d1/llmkit-mcp-server

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

latest
Source
npmnpm
Version
0.4.7
Version published
Maintainers
1
Created
Source

@f3d1/llmkit-mcp-server

AI cost tracking for Claude Code, Cline, Cursor, and Claude Desktop. 11 tools for spend queries, budgets, local session costs, and agent attribution across 11 LLM providers.

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": ["@f3d1/llmkit-mcp-server"],
      "env": {
        "LLMKIT_API_KEY": "llmk_your_key_here"
      }
    }
  }
}

The local tools (llmkit_local_*) work immediately with no API key. They auto-detect Claude Code, Cline, and Cursor data on your machine. For the proxy tools, create a free key at the dashboard.

Tools

Proxy tools (need API key)

ToolWhat it does
llmkit_usage_statsSpend, requests, top models for a period
llmkit_cost_queryCosts grouped by provider, model, session, or day
llmkit_budget_statusBudget limits and remaining balance
llmkit_session_summaryRecent sessions with cost, duration, models
llmkit_list_keysAll keys with status and creation date
llmkit_healthProxy ping with response time

Local tools (no key needed)

Auto-detect installed AI coding tools and aggregate data from all of them.

ToolWhat it does
llmkit_local_sessionCurrent session cost across all detected tools
llmkit_local_projectsCumulative cost across all projects and sessions
llmkit_local_cachePrompt caching savings analysis
llmkit_local_forecastMonthly projection vs Max subscription
llmkit_local_agentsSubagent 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

VariableRequiredDescription
LLMKIT_API_KEYNoAPI key for proxy tools. Local tools work without it.
LLMKIT_PROXY_URLNoProxy URL (defaults to hosted service)
LLMKIT_CLINE_DIRNoOverride Cline data directory path

Supported tools

The local tools detect data from:

  • Claude Code (~/.claude/projects/)
  • Cline (VS Code, Insiders, VSCodium, Cursor, Windsurf globalStorage)
  • WSL installations (scans all distros via UNC paths on Windows)
  • VS Code Server / Cursor Server (remote SSH/WSL extensions)

License

MIT

Keywords

mcp

FAQs

Package last updated on 31 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts