Skip to main content
Glama
smigolsmigol

llmkit-mcp-server

by smigolsmigol

@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.

Related MCP server: Langfuse MCP Server

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)

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

Tool

What it does

llmkit_local_session

Current session cost across all detected tools

llmkit_local_projects

Cumulative cost across all projects and sessions

llmkit_local_cache

Prompt caching savings analysis

llmkit_local_forecast

Monthly projection vs Max subscription

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

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

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
<1hResponse time
1dRelease cycle
7Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    Enables interaction with Google Cloud services including billing cost analysis, log querying, and metrics monitoring through natural language commands. Provides comprehensive tools for managing GCP resources, analyzing costs, detecting anomalies, and retrieving operational insights.
    Last updated
    40
    1
    Apache 2.0
  • A
    license
    B
    quality
    D
    maintenance
    Enables querying Langfuse analytics, cost metrics, and usage data across multiple projects. Provides tools for trace analysis, model/service cost breakdowns, and daily usage trends through natural language queries.
    Last updated
    24
    132
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    Enables querying and analyzing AWS cost and usage data through the AWS Cost Explorer API. Supports cost comparisons, forecasting, dimension filtering, and cost change driver analysis with streamable HTTP deployment to Amazon Bedrock Agentcore Runtime.
    Last updated
  • A
    license
    -
    quality
    D
    maintenance
    Enables AI assistants to analyze cloud billing data in FOCUS format through natural language queries. Provides 36+ predefined cost analysis queries, custom SQL execution, and schema documentation for multi-cloud cost optimization and FinOps practices.
    Last updated
    11
    Apache 2.0

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/smigolsmigol/llmkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server