
Security News
/Company News
Securing the Financial Frontier: How Capital One Uses Socket for Open Source Security
Capital One is partnering with Socket to proactively secure its open source supply chain.
@tokcalc/mcp-server
Advanced tools
tokcalc MCP server — open-source LLM serving capacity planner for AI agents. stdio + stateless HTTP transport with bearer API key auth + KV-backed rate limiting + public hosted endpoint. 11 read-only tools: estimate_capacity, compare_gpus, recommend_topol
LLM serving capacity planner for AI agents.
Open-source MCP (Model Context Protocol) server that lets AI agents (Cursor, Claude Desktop, Cline) estimate LLM serving capacity — model fit, KV cache, throughput, latency, multi-GPU topology, and cost.
Single-core architecture: all 11 tools live in the website's
src/lib/mcp/core.ts; this package'sserver.tsis a thin re-export shim, so stdio and the hosted endpoint can never drift apart. A surface-parity test suite and a 35-check stdio QA battery + 20-check HTTP smoke probe guard every release.
| Tool | What it does |
|---|---|
estimate_capacity | VRAM/KV/throughput/latency/cost for one config |
compare_gpus | Ranked GPU comparison for one workload |
recommend_topology | TP/CP topology recommendation |
estimate_api_vs_self_host | Break-even analysis |
list_models | Discover supported model IDs (39 models) |
list_gpus | Discover supported GPU IDs (30 GPUs) |
get_mlperf_benchmarks | Curated MLPerf v4.1 reference configs |
find_config_for_slo | Inverse planner — SLOs + traffic → feasible configs ranked by cost/throughput/value |
plan_deployment | One-call decision brief — memory + perf + build-vs-buy + risks + next steps |
fetch_model_spec | Diff the catalog against live HuggingFace config.json (24h cache) |
record_measured | Store real tok/s measurements; future estimates self-calibrate |
All tools are read-only — no side effects, no cloud credentials, no deployments.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"tokcalc": {
"command": "npx",
"args": ["-y", "@tokcalc/mcp-server"]
}
}
}
Restart Claude Desktop. The tokcalc server will be available as an MCP tool source.
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"tokcalc": {
"command": "npx",
"args": ["-y", "@tokcalc/mcp-server"]
}
}
}
Add the same config to Cline's MCP settings.
tokcalc planNot everything that wants a capacity number speaks MCP. CI jobs, bots, and the
GitHub Action call the same
calculator directly through tokcalc plan.
# From a .tokcalc.json in the current directory
npx @tokcalc/mcp-server plan
# Or straight from flags
npx @tokcalc/mcp-server plan \
--model llama3-70b --gpu h100-sxm --quant fp8 \
--gpus 2 --context 32768 --concurrency 16
# Machine-readable
npx @tokcalc/mcp-server plan --format json
Flags override the config file. Run npx @tokcalc/mcp-server plan --help for
the full list, or models / gpus / quants to list valid ids.
Exit codes — 0 the plan fits in VRAM, 2 it does not, 1 usage error.
That makes it usable directly as a CI gate:
npx @tokcalc/mcp-server plan --config .tokcalc.json || exit 1
Ask your AI agent:
"I need to serve Llama 3.3 70B at 32K context for 50 concurrent users. What GPU topology do you recommend, and how much will it cost per month?"
"Compare H100 vs H200 for serving Qwen 2.5 72B in FP8 with continuous batching."
"At what daily request volume does self-hosting Llama 70B on H200 beat the GPT-4o API?"
The agent calls list_models → list_gpus → recommend_topology → estimate_capacity and returns a structured plan with throughput ranges, latency, VRAM, cost, and confidence levels.
Llama 3/3.1/3.3, Llama 4 Scout/Maverick, Mistral 7B, Mixtral 8x7B/8x22B, Mistral Large 3, Pixtral 12B, Codestral, Qwen 2/2.5/3 (incl. MoE + VL), DeepSeek V3/R1/Coder V2, Gemma 2, Phi-3/4, SmolLM2, Falcon 3, OLMo 2, BGE-M3, E5, GTE.
NVIDIA H100/H200/B200/B300, A100, L40S, L4, T4, V100, RTX 4090/3090/5090, RTX PRO 6000 Blackwell, AMD MI300X/MI325X, Intel Gaudi 3, Google TPU v5p/Trillium, Groq LPU, Cerebras CS-3, Apple M2/M3/M4 Ultra/Max.
Apache 2.0 — same as the main tokcalc project.
FAQs
tokcalc MCP server — open-source LLM serving capacity planner for AI agents. stdio + stateless HTTP transport with bearer API key auth + KV-backed rate limiting + public hosted endpoint. 11 read-only tools: estimate_capacity, compare_gpus, recommend_topol
We found that @tokcalc/mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
/Company News
Capital One is partnering with Socket to proactively secure its open source supply chain.

Security News
Socket CTO Ahmad Nassri discusses how to keep AI agents from bypassing package blocks, limit credential access, and monitor their actions.

Security News
GPT-6 Astra tried to plant malicious code in simulated open source projects using fake GitHub accounts and deceptive PRs during an assigned CTF challenge.