llmkit-mcp-server
This MCP server provides AI cost tracking and budget management across Claude Code, Cline, Cursor, and Claude Desktop, supporting 11 LLM providers via two sets of tools.
Proxy Tools (API Key Required)
Usage stats: Query total spend, request counts, top models, and cache hit rates for today, week, or month
Cost breakdowns: Analyze costs grouped by provider, model, session, or day
Budget status: Check budget limits and remaining balances
Session summaries: Review recent proxy sessions with cost, duration, and models used
API key management: List all keys with status and creation dates
Health check: Ping the proxy and measure response time
Local Tools (No API Key Needed)
Current session cost: Aggregate real-time costs across all detected AI coding tools (Claude Code, Cline)
Project overview: View cumulative costs ranked by spend across all projects
Cache savings: Analyze how much prompt caching has saved you
Monthly forecast: Project monthly spending and compare against Claude Max subscription cost
Subagent attribution: Break down costs by subagent within a Claude Code session
Additionally, a SessionEnd hook automatically logs session costs when Claude Code exits. Data is auto-detected and aggregated from Claude Code, Cline (VS Code, Cursor, Windsurf), WSL installations, and remote VS Code/Cursor Server extensions.
Automatically detects and aggregates cost data from AI coding tools used within VSCodium, offering insights into session costs, project spending, and prompt caching savings.
@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.
Related MCP server: Langfuse MCP Server
Tools
Proxy tools (need API key)
Tool | What it does |
| Spend, requests, top models for a period |
| Costs grouped by provider, model, session, or day |
| Budget limits and remaining balance |
| Recent sessions with cost, duration, models |
| All keys with status and creation date |
| 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 |
| Current Claude Code session or latest detected Cline task cost |
| Cumulative cost across all projects and sessions |
| Claude Code prompt caching savings using model-bound prices |
| 30-day API-rate projection from detected local history |
| 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 |
| No | API key for proxy tools. Local tools work without it. |
| No | Proxy URL (defaults to hosted service) |
| No | Override Cline data directory path |
| No | Set to |
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
Maintenance
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
- AlicenseCqualityDmaintenanceEnables 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.401Apache 2.0
- AlicenseBqualityDmaintenanceEnables 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.24156MIT
- FlicenseNot gradedqualityDmaintenanceEnables 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.
- AlicenseBqualityCmaintenanceAn MCP server for unified cost tracking and analysis across AWS, OpenAI, and Anthropic. It enables users to query expenditures, compare costs across providers, and analyze usage trends through natural language.10MIT
Related MCP Connectors
Track, analyze, and act on your streaming and SaaS subscriptions from any AI agent.
Ask your app anything — revenue, errors, read-cost, growth — and get rendered charts back.
Privacy-first web analytics. Query pageviews, referrers, trends, and AI insights.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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