Context7
Up-to-date docs for AI agents
Descripción del creador (original en inglés)
LLM serving capacity planner: VRAM, KV cache, GPU topology, latency, and cost.
Estos tres nunca se combinan en una sola puntuación: las opiniones, las mediciones y la popularidad son cosas distintas.
Todavía no escribimos un resumen sencillo para este. Abajo están los datos que leímos del registro.
Elige la app de IA que usas y copia la configuración.
Necesitas
¿Qué app usas?
Elige tu app arriba. La recordamos, así que la próxima vez el botón dirá “Instalar en …”.
Funciona en Claude para web, escritorio y móvil:
https://tokcalc.vercel.app/api/mcpAbre Claude Desktop → Settings → Developer → Edit Config y pega esto en claude_desktop_config.json
{
"mcpServers": {
"tokcalc": {
"command": "npx",
"args": [
"-y",
"@tokcalc/mcp-server"
]
}
}
}Ejecuta esto en tu terminal
claude mcp add --transport http tokcalc https://tokcalc.vercel.app/api/mcpclaude mcp add tokcalc -- npx -y @tokcalc/mcp-serverPégalo en .cursor/mcp.json de tu proyecto, o en ~/.cursor/mcp.json
{
"mcpServers": {
"tokcalc": {
"url": "https://tokcalc.vercel.app/api/mcp"
}
}
}Pégalo en .cursor/mcp.json de tu proyecto, o en ~/.cursor/mcp.json
{
"mcpServers": {
"tokcalc": {
"command": "npx",
"args": [
"-y",
"@tokcalc/mcp-server"
]
}
}
}Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.
Pégalo en .vscode/mcp.json de tu proyecto
{
"servers": {
"tokcalc": {
"type": "http",
"url": "https://tokcalc.vercel.app/api/mcp"
}
}
}Pégalo en .vscode/mcp.json de tu proyecto
{
"servers": {
"tokcalc": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@tokcalc/mcp-server"
]
}
}
}Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.
ChatGPT solo se conecta a servidores en internet:
https://tokcalc.vercel.app/api/mcpLos nombres de los menús pueden variar un poco según el plan y con el tiempo.
Tu elección se guarda en una cookie en este dispositivo; no necesitas cuenta.
Esta configuración se genera a partir de la ficha del creador en el registro. Si el README dice otra cosa, sigue el README.
El servidor pide iniciar sesión antes de mostrar sus herramientas.
Revisamos información que cualquiera puede ver; no hemos leído el código. Las revisiones que no aplican no se cuentan. · Revisado el 8 nov 2026
El nombre en el registro se verificó con la cuenta de GitHub stevecrates489-commits, dueña del repo
Todavía no hemos leído este repo en GitHub
Todavía no hemos leído este repo en GitHub
Respondió en 169 ms (HTTP 401)
Declara inicio de sesión con OAuth, así que tu app de IA puede llevarte a iniciar sesión
Aún sin revisar; leemos la lista de herramientas cuando revisamos el endpoint
Comparado con todos los servidores activos de esta categoría en el registro. Las estrellas solo cuentan cuando quien lo publica es dueño del repo.
Superó 3 de 3 revisiones básicas aplicables. No hemos leído el código. Antes de agregar una clave o un token, revisa qué acceso pide el servidor y usa una clave que tenga solo los permisos que necesitas.
El registro no indica ninguna clave obligatoria, aunque algunos servidores te piden iniciar sesión la primera vez que los usas.
Funciona de las dos formas: instálalo en tu computadora o conéctate a la versión en la nube.
El repo de GitHub cambió por última vez –, y la última versión (0.3.4) llegó al registro hace 15 días.
Las apps compatibles con MCP, como Claude Desktop, Claude Code, Cursor y VS Code. Se conecta por URL, así que también funcionan las apps que aceptan servidores MCP remotos, como ChatGPT en modo desarrollador.
En la misma categoría: Context7, Codebase Memory, Exa
Servidores de la misma categoría hechos por otros creadores, ordenados por estrellas.
Cómo leer una tarjeta:★ Estrellas de GitHubiTres pilares: reseñas · revisiones · usoiActualizado = fecha en que se publicó la última versión en el registroi
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Copiado tal cual del repo del creador. PopNx MCP no lo ha revisado ni lo respalda. Se quitaron HTML, imágenes y scripts. Los enlaces llevan fuera de este sitio.
Plan your LLM deployment before you rent the GPUs.
*Switch model → multi-GPU → long-context capacity planner → Build vs Buy → Reference catalog → Live GPU pricing*
tokcalc turns your LLM traffic, context length, latency SLOs, cache behavior, and model choice into a defensible serving topology and cost plan — with transparent formulas and cited benchmarks.
It's the engineering-grade pre-deployment decision layer for LLM inference. Not another static "tokens per second" calculator.
[tokcalc.vercel.app](https://tokcalc.vercel.app) — no signup, no tracking, no paywall.
tokcalc is an open-source LLM serving capacity planner with 44 models, 31 accelerators, and 16 quantization formats. It estimates model fit, KV/state memory, throughput, latency, topology, and cost through a shared catalog and calculation engine used by the website, the MCP server, and the CLI.
Pick a model, a GPU, and a workload. Get an instant capacity plan:
If your repo declares a serving plan, tokcalc can check it. Drop a .tokcalc.json at the repo root:
{
"model": "llama3-70b", "gpu": "h100-sxm", "quantization": "fp8", "numGpus": 2, "contextTokens": 32768, "concurrency": 16 }
Then add this to .github/workflows/plan.yml:
name: tokcalc
on: pull_request: paths: [".tokcalc.json"]
jobs: plan: runs-on: ubuntu-latest steps:
Every PR that touches the plan gets a comment with the VRAM budget, KV-cache sizing, throughput, TTFT/ITL, and cost — so a reviewer can check the model/GPU choice without leaving the diff.
Pin to a release tag (as above) rather than
@main, so the action can't
change under you between runs.
The action runs tokcalc's own src/lib/token-calc.ts from this repository, so the numbers it reports are the same ones the site and the MCP tools produce. There is no second implementation to drift.
Any field can be overridden per-run, or you can skip the config file entirely:
- uses: stevecrates489-commits/tokcalc@v0.3.4
with: model: mixtral-8x7b gpu: h200-sxm quant: fp8 gpus: 2 context: 32768 concurrency: 32
Run the same thing locally without the action:
npx @tokcalc/mcp-server plan --config .tokcalc.json
npx @tokcalc/mcp-server plan --model llama3-70b --gpu h100-sxm --quant fp8 --format json
Exit code is 0 when the plan fits, 2 when it does not, 1 on a usage error — so it works as a CI gate.
The market has dozens of "tokens per second" calculators and self-host-vs-API break-even tools (induwara.lk, gigagpu, kickllm, cloudparity, curlscape, profitable.ai). None of them are unified capacity planners — and none show their math.
*"Can I serve Qwen 2.5 72B at 128K context on 2× H100 with 20 concurrent users?"*
*"How many H200s do I need for 1,000 req/min with P95 TTFT < 2s?"*
*"Does FP8 or AWQ save more money once quality, KV cache, and engine support are included?"*
*"At what daily volume does an H100 beat GPT-4o pricing?"*
*"What's the cheapest H100 right now across Azure / AWS / GCP / Vast.ai?"*
*"What happens to cost and latency if an agent makes 8 model calls, has 3 tool calls, and its context grows by 5K tokens each turn?"*
*"Would prefix caching, continuous batching, or PD disaggregation save more for this workload?"*
| Feature | What it computes |
|---|---|
| Model fit / VRAM | Will the model + KV cache fit in the GPU's memory? |
| Throughput | Decode tok/s (per-stream) + aggregate (batched) + prefill tok/s |
| Latency split | Time-to-first-token (= prefill) + inter-token latency (= decode) |
| Continuous batching | User-tunable 1.0–4× multiplier (cited 1.5–4× SOSP range) |
| Reasoning tokens | Hidden reasoning budget added to billed output (o1 / R1 / Claude thinking) |
| Prompt caching | Self-hosted vLLM APC + Anthropic 5m/1h TTL + OpenAI 50%-off cached tokens |
| Speculative decoding | User-tunable 1.2–4× boost factor |
| Multi-GPU TP | 1× → 8× tensor parallel with NVLink efficiency factor |
| Long-context capacity | KV memory + max concurrency + prefill time at 4K → 1M context |
| Topology recommendation | Single GPU → TP×2 → TP×4 → TP×8 → TP×8 + Context Parallel (RingAttention) |
| Cost economics | GPU $/hr → $/M output tokens → $/request → monthly cost |
| Observed benchmark calibration | Paste vLLM/SGLang/TRT-LLM JSON → see formula accuracy verdict (validated / underestimated / overestimated) |
Independent calculator (separate state) that compares:
A tab on the homepage (tokcalc.vercel.app → Reference), not a separate route. 6 sub-tables — fully transparent, every record source-linked where available:
This is the formula the Perplexity research brief called "the most important tokcalc should visibly expose":
$$ \text{KV bytes/request} = 2 \cdot L \cdot T \cdot H_{\text{kv}} \cdot D_h \cdot B $$
For dense attention, prefill cost grows superlinearly with context length:
$$ \text{prefill FLOPs} = \underbrace{2 \cdot N \cdot T}_{\text{linear}} + \underbrace{T^2 \cdot H_{\text{kv}} \cdot D_h \cdot L}_{\text{attention}} $$
tokcalc shows you:
The 🔴 Live pricing sub-tab in Reference fetches real-time GPU prices from 4 providers in parallel via Promise.allSettled:
| Provider | API | Auth | Cache TTL |
|---|---|---|---|
| Azure | Retail Prices API | None (public) | 24h |
| AWS | EC2 bulk pricing file | None (public) | 24h |
| GCP | Cloud Billing Catalog API | GCP_API_KEY env var | 24h |
| Vast.ai | Marketplace bundles API | None (public) | 5m (spot prices change rapidly) |
Each provider shows a LIVE badge with timestamp + cache state. The comparison table shows the cheapest price per GPU across all 4 providers (highlighted in emerald) + per-provider breakdown.
If any provider fails (e.g., GCP_API_KEY not set), the others still work — graceful degradation per provider.
Every number above comes from a formula you can inspect. No black boxes.
Decode tokens/sec (memory-bandwidth bound)
$$ \text{decode tok/sec} \approx \frac{\text{HBM BW} \cdot \eta_{\text{mem}} \cdot \text{quant\_eff}}{\text{model size}} $$
Where:
HBM BW = GPU memory bandwidth (e.g., 3350 GB/s for H100 SXM)η_mem = 0.65 = typical real-world memory utilization (35% overhead)quant_eff = dequantization efficiency multiplier (1.0 for FP16, 1.5 for FP8 on H100, 0.85 for INT4)model size = active_params × bytes_per_param (uses ACTIVE params for MoE, not total)Refs: PagedAttention paper (arxiv.org/abs/2309.06180)
Prefill tokens/sec (compute bound)
$$ \text{prefill tok/sec} \approx \frac{\text{GPU FLOPS} \cdot \eta_{\text{compute}}}{2 \cdot \text{active params}} $$
Where:
GPU FLOPS = dense FP16/BF16 TFLOPS (sparse values not used)η_compute = 0.50 = typical compute utilizationFor long context (>32K), the superlinear attention correction above applies.
Continuous batching multiplier (workload-specific)
$$ \text{aggregate tok/sec} = \text{decode tok/sec} \cdot \text{batch size} \cdot \text{continuous batching multiplier} $$
Critical caveat: There is no universal continuous batching multiplier. vLLM reported 14–24× vs HF Transformers (extreme), 2.2–2.5× vs TGI. SOSP paper finds 2–4× typical vs FasterTransformer/Orca. tokcalc defaults to a conservative 1.5× and lets you tune.
Refs:
Prompt caching economics (Anthropic / OpenAI)
For shared prefix of length $T_p$, suffix of length $T_u$, output $O$, cache hit rate $h$:
$$ \text{API input cost} = N \cdot \left[ (1-h) \cdot T_p \cdot P_{\text{write}} + h \cdot T_p \cdot P_{\text{read}} + T_u \cdot P_{\text{input}} \right] $$
Anthropic multipliers (verified 2025-2026):
OpenAI: cached input discounted 50%, no separate write fee.
Refs:
Multi-GPU topology recommendation
$$ \text{total needed} = \text{model weights} + (\text{KV per request} \cdot \text{batch size}) $$
Walk the smallest topology that fits:
Refs: RingAttention paper
Solo se muestra el principio; lee el resto en el repo