AI cost tracking: 11 tools for spend, budgets, and Claude Code + Cursor + Cline costs
MCPpedia last refreshed this data
Llmkit MCP Server is an MCP server that AI cost tracking: 11 tools for spend, budgets, and Claude Code + Cursor + Cline costs. Its tool list has not been published yet over stdio and http, requires no API key, and scores 86/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"llmkit": {
"env": {
"LLMKIT_API_KEY": "llmk_your_key_here"
},
"args": [
"@f3d1/llmkit-mcp-server"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Open-source API gateway for AI providers. Logs every request with token counts and dollar costs. Budget limits reject requests before they reach the provider, not after.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y '@f3d1/llmkit-cli' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked @f3d1/llmkit-cli against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in ai-ml / analytics
MCP client bridge: connects to MCP servers and registers their tools on ctx.tools
An autonomous agent that conducts deep research on any data using any LLM providers
The official MCP server implementation for the Perplexity API Platform
1000+ scientific tools for AI scientists: life science, reserach, literature, and more.
MCP Security Weekly
Get CVE alerts and security updates for Llmkit MCP Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Website | Docs | Pricing API | Architecture | Security | Assurance case
LLMKit is an open-source AI gateway and SDK suite for cost attribution, budget admission, and request evidence. The gateway reserves estimated spend before provider dispatch. It rejects requests that cannot fit the active budget, then settles admitted reservations to actual usage when the response completes.
The repository also ships local tracking surfaces that do not require an LLMKit account or proxy.
| Surface | Use it when | Package |
|---|---|---|
| Python transport | You want local cost estimates around existing SDK calls | llmkit-sdk |
| CLI wrapper | Your OpenAI or Anthropic client honors its standard base-URL environment variable | @f3d1/llmkit-cli |
| TypeScript SDK | You have an existing key and want sessions, streaming, and gateway access from TypeScript | @f3d1/llmkit-sdk |
| MCP server | You want spend, budget, and local coding-session tools inside an MCP client | @f3d1/llmkit-mcp-server |
| AI SDK provider | You use Vercel AI SDK 6 | @f3d1/llmkit-ai-sdk-provider |
| Gateway and dashboard | You need shared budgets, provider routing, receipts, and analytics | packages/proxy, packages/dashboard |
pip install llmkit-sdk
from llmkit import tracked
from openai import OpenAI
costs = []
client = OpenAI(http_client=tracked(on_cost=costs.append))
client.chat.completions.create(
model="gpt-4.1",
messages=[{"role": "user", "content": "Summarize this incident."}],
)
print(f"${sum(item.total_cost or 0 for item in costs):.6f}")
The transport reads provider usage metadata and estimates cost from the bundled pricing catalog. It does not send tracking data to LLMKit.
npx @f3d1/llmkit-cli -- python my_agent.py
Use -v for per-request output or --json for machine-readable results.
Gateway examples require an existing LLMKit API key. Account creation and key management are temporarily unavailable while the authenticated service is restored. If you do not already have a key, use one of the local tracking paths above.
from openai import OpenAI
client = OpenAI(
base_url="http
... [View full README on GitHub](https://github.com/smigolsmigol/llmkit#readme)