llm-infra-calc
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.

llm-infra-calc
Open LLM pricing/GPU registry, zero-dependency CLI, and MCP server for VRAM + KV-cache sizing, cloud API vs. self-hosted break-even, and PostgreSQL pgvector HNSW RAM estimation.
Back-of-the-envelope math is built on transparent JSON presets in data/ so your terminal, coding agents, and PRs stay in sync with real hardware and frontier API pricing.
Quick CLI Usage (Zero Install)
# 1. Size GPU + VRAM including KV-cache concurrency & Ollama vs. vLLM guidance
npx github:adamblansett/llm-infra-calc vram --model qwen-3-32b --quant q4_k_m --context 16384 --concurrency 12
# 2. Compare frontier API spend (with prompt caching) vs. dedicated GPU rent
npx github:adamblansett/llm-infra-calc api-cost --model claude-sonnet-4-5 --reqs 10000 --in 3000 --out 400 --cache 60
# 3. Estimate RAG chunks, pgvector HNSW RAM residency, and managed vector DB hosting
npx github:adamblansett/llm-infra-calc rag --docs 10000 --pages 10 --dims 1536 --queries 500000
# 4. List all supported models, quantizations, and GPU tiers
npx github:adamblansett/llm-infra-calc listRelated MCP server: OptimToken MCP
Use as an MCP Server (Claude Code, Cursor, Codex)
{
"mcpServers": {
"llm-infra-calc": {
"command": "npx",
"args": ["-y", "--package=github:adamblansett/llm-infra-calc", "llm-infra-calc-mcp"]
}
}
}Exposed MCP Tools
Tool | What It Calculates |
| Model weights + KV-cache under concurrent streams + CUDA overhead, GPU tier selection, payback months, Ollama vs. vLLM threshold |
| Monthly API cost with prompt cache hit rates ( |
| Total chunks, raw float32 size, |
| Returns all open JSON presets ( |
Interactive Web Calculators & Architecture Help
LLM GPU & VRAM Sizer: adamblansett.com/tools/llm-gpu-calculator
AI Token & GPU Break-Even: adamblansett.com/tools/ai-cost-calculator
RAG & pgvector Cost Estimator: adamblansett.com/tools/rag-cost-calculator
Need private VPC LLM deployment or 48-Hour Audit? adamblansett.com/audit
Community PRs adding new open-weight models, GPU pricing tiers, or API updates in data/ are welcome—see CONTRIBUTING.md.
MIT © 2026 Adam Blansett
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
LLM API prices and AI agent cost estimates, verified daily. Read-only cost lookup tools.
Will this LLM fit on your GPU, multi-GPU rig or Mac? Exact VRAM & KV-cache math. Read-only.
Does an LLM fit on your GPU? VRAM, KV cache and GPU count for any Hugging Face model.
LLM serving capacity planner: VRAM, KV cache, GPU topology, latency, and cost.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI agents to compare AI model pricing plans, run cost scenarios, find break-even points, and get plan recommendations using TokenLens data.4-

OptimToken MCPofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to fetch live, dated prices for LLM models and cloud compute instances across providers, compare and recommend models, and estimate monthly costs based on workload-specific token shapes and constraints.MIT- AlicenseAqualityBmaintenanceEnables AI agents to list and compare LLM API prices per million tokens, rank the cheapest models by context and keyword, look up GPU rental rates per hour by provider, and estimate self-hosting cost per million tokens against API pricing. Pricing data comes from OpenRouter's public models endpoint plus a dated GPU price CSV, with source URLs and explicit notes when data is missing.5MIT
- AlicenseAqualityBmaintenanceEnables agents to look up verified model retirement and deprecation dates with sources across Anthropic, OpenAI, Gemini, Bedrock and Mistral, analyze a local usage/cost export to explain spend drivers, and compare benchmark numbers with savings estimates and a drafted free-pilot request. Runs read-only and offline-capable, requiring no key, account, or telemetry.9MIT