Skip to main content
Glama

LocalBit

LocalBit MCP connector – tool definition quality and endpoint health on Glama

Will this AI model run on my hardware? LocalBit answers with the memory a local model needs (weights + context cache) and how fast it should generate, for graphics cards and Apple computers - estimated from the model's design and the card's specs, and measured where real results exist. Every answer says which.

For AI agents

  • MCP (Streamable HTTP): https://localbit.adamson-cf.workers.dev/mcp - listed in the MCP Registry as io.github.adamson-gh/localbit

    • check_fit(model, hardware, context?, quant?, kv_cache?) - fits / tight / doesn't fit, memory breakdown, tokens per second, what to change

    • suggest_models(hardware, context?, min_tokens_per_s?) - the largest known models that fit

    • compare_setups(a_model, a_hardware, b_model?, b_hardware?) - two models on one card, or one model on two cards

    • list_known(kind, query?, limit?, offset?) - models or hardware LocalBit has specs for, filtered and paged

    • get_details(name) · get_node_log(limit?) - one model or card in full; the newest measurements from the RTX 3090 node

    • get_test_kit() · submit_result(...) - measure your own machine and share the result

    • report_issue(problem, ...) - tell LocalBit an answer was wrong, with what you actually saw

    • get_status(receipt) - follow up a submission or report by the receipt it gave

  • JSON API: /api/check?model=llama%203.1%208b&hardware=rtx%203090&context=8192, /api/suggest?hardware=16%20GB, /api/models, /api/hardware, /api/measured, POST /api/report

  • Pages per model and card (/run/llama-3.1-8b/on/rtx-4060), /llms.txt, /sitemap.xml

Related MCP server: nodegrove VRAM: can I run it?

How the estimate works

  • Memory = parameters x bits per weight (by quantization) + the attention cache (layers x KV heads x head size x 2 x context, smaller for sliding-window and hybrid layers) + ~0.3 GB + 1% runtime overhead. Discrete cards keep ~0.6 GB back for the desktop; Macs can give the GPU ~75% of unified memory.

  • Speed: generating a token reads every active weight once, so tokens/s ~= efficiency x memory bandwidth / bytes per token. Efficiency is calibrated on measured runs (RTX 3090 + Qwen3.8 27B Q4_K_M on Ollama: 47.7 tok/s measured, 45.6 estimated). Mixture-of-experts models read only their active experts. A model that doesn't fit is estimated with the rest in system memory.

What LocalBit records

Which tool was called, the model and hardware named, what they matched, and the calling app's self-reported name - to learn what people and agents ask about. No IP addresses, accounts or personal data. The owner reads totals at /stats (key required).

Data (open - CC BY 4.0)

  • data/models.json, data/gpus.json - the model and hardware tables. Models marked "verified": false use their published configs and haven't been re-checked against GGUF metadata yet.

  • data/measured.json - LocalBit's own measurements: an RTX 3090 (Windows, Ollama), each model at 4K / 16K / 32K context, 3 runs, the middle one published - generation and prompt speed, time to first token, peak memory, power, tokens per joule, runtime and driver versions, date. data/runs_3090.jsonl holds every raw run.

  • How it's measured: bench/run_3090.py (fixed made-up prompts, temperature 0, one model on the card at a time) and bench/publish.py. Runs nightly 3:10-5:00 AM on a machine shared with a home assistant, so it stops early when that's in use.

Use the data freely - credit "LocalBit" with a link here. Corrections welcome: open an issue, or call report_issue.

Privacy

No IP addresses, cookies or accounts. Cloudflare's rate limiter (120 requests a minute per address) sees the address for a moment; LocalBit never stores it. Report notes have emails, phone numbers and links removed.

Run it

npm install
npm test                 # estimates, the Worker as agents call it, and the bench (against a made-up Ollama)
npx wrangler dev         # local server at http://127.0.0.1:8787

Over stdio (for MCP clients that start a local process; answers from the data in this repository, no network): node bench/embed.mjs && node bin/localbit-stdio.mjs - or docker build -t localbit . && docker run -i --rm localbit.

Deploy: npx wrangler login, npx wrangler d1 create localbit (paste the id into wrangler.toml), npx wrangler d1 execute localbit --remote --file=schema.sql, npx wrangler secret put STATS_KEY, npx wrangler deploy.

More

How it works, the rules and the lessons: docs/NOTES.md. What changed: CHANGELOG.md.

License

Code: MIT (LICENSE). Data in data/: CC BY 4.0 (DATA_LICENSE.md).

Contribute a measurement

Run python bench/localbit_test.py (or download it from /test.py) with Ollama and a model pulled. It measures with the same recipe as the node, prints what it would send (model, hardware name and memory, speeds, Ollama version, OS - nothing personal) and asks before sending. --dry-run never sends.

Available Tools

10 tools
check_fitWill this model run on this hardware?A
Read-onlyIdempotent
Inspect

Checks whether one local AI model fits one hardware setup - a graphics card, several identical cards ('2x RTX 3090') or a Mac - and returns the verdict (fits / tight / does_not_fit), memory needed (weights + context cache + overhead) against memory available, and generation speed in tokens per second: measured on LocalBit's test node where it has run that pair, otherwise estimated with a likely range. When it doesn't fit, it says what to change (smaller quantization, shorter context, other hardware); it warns when the context exceeds the model's published maximum. Use this when the user names a model and their hardware. Use suggest_models instead when they only name hardware ('what can I run?'), compare_setups when weighing two options, and list_known first if a name isn't recognised (unknown names return the closest known ones). Every answer includes a citable source_url and the date the data is current as of.

Inputs: model (required), hardware (required), quant, context, +1 more. Returns: basis, model, quant, sizes, +12 more

compare_setupsCompare two models or two cardsA
Read-onlyIdempotent
Inspect

Compares two options head to head, in one of two modes: two models on the same hardware (give a_model, b_model and a_hardware), or one model on two hardware setups (give a_model, a_hardware and b_hardware). Returns which fits, which is faster (with the ratio), which leaves more memory free and - only where LocalBit's node measured both - which scores higher on its quality check and uses less energy per answer; otherwise it says those are unavailable. context (default 8,192 tokens) applies to both. Use this when the user is choosing between two options; use check_fit for a single model and hardware. Giving neither b_model nor b_hardware returns an error asking for the second option.

Inputs: a_model (required), a_hardware (required), b_model, context, +1 more. Returns: a, b, a_node, b_node

get_detailsFull details of one model or cardA
Read-onlyIdempotent
Inspect

Returns everything LocalBit knows about one model (parameters, active parameters, layers, attention heads, maximum context, whether its specs are verified) or one graphics card or Mac (memory, memory bandwidth), plus its measurements from LocalBit's node and from the community. Use this when the user wants the specifications themselves or what has been measured for a model or card; use check_fit to ask whether a model runs on hardware, and list_known to browse names. Unknown names return the closest known ones.

Inputs: name (required), kind.

get_node_logLatest readings from LocalBit's test nodeA
Read-onlyIdempotent
Inspect

Returns the newest measurements from LocalBit's own RTX 3090 test node, newest first (default 10, up to 50): for each model, measured speed in tokens per second at 16K context, quality score (% of 60 script-graded questions right), card memory used, time to read a 3,000-word document, energy per answer, and the date. Use this when the user asks what has actually been tested or measured recently, or wants real results rather than estimates; use check_fit or compare_setups to answer about a specific model and hardware (they include these measurements automatically when they apply).

Inputs: limit. Returns: readings

get_statusStatus of a submission or reportA
Read-onlyIdempotent
Inspect

Follows up a measurement sent with submit_result or a report sent with report_issue, by the receipt either one returned (e.g. 'S-7K3Q9X' or 'R-2M8D4P'): a submission is accepted (it appears in answers, labelled unverified, after the nightly update) or held for review; a report is received, fixed or closed. Use this when the user asks what happened to a result or report they sent earlier. Receipts are random codes - nothing about who sent it is kept or shown.

Inputs: receipt (required). Returns: kind, detail, status, receipt

get_test_kitHow to measure a model on your own machineA
Read-onlyIdempotent
Inspect

Returns LocalBit's 3-minute test: a script (Python, nothing to install) that measures a model in the user's own Ollama the same way LocalBit's RTX 3090 node does, shows exactly what would be shared and asks before sending anything. Use this when the user has hardware LocalBit hasn't measured and is willing to contribute, or wants real numbers for their own machine; answers from check_fit say when a setup hasn't been measured yet. Results are sent with submit_result (the script does this itself after the user agrees). Returns the steps as text (one-line commands for Mac/Linux, PowerShell and Command Prompt) plus script_url, recipe_url, recipe_version and the /test page.

Inputs: no named parameters.

list_knownModels and hardware LocalBit knowsA
Read-onlyIdempotent
Inspect

Returns LocalBit's catalog: kind 'models' gives every model with its id, name and parameter count (and active parameters for mixture-of-experts models); kind 'hardware' gives every graphics card and Mac with its id, name and memory. Each entry says whether LocalBit's test node has measured it. Call this first when unsure how to name a model or card, then pass the exact id to check_fit, compare_setups or suggest_models. Sizes not listed still work in those tools ('13B model', '12 GB card', 'M2 Pro 32 GB').

Inputs: kind (required), limit, query, offset. Returns: total, models, offset, hardware, +1 more

report_issueReport a wrong or missing answerAInspect

Sends LocalBit a report that an answer was wrong (it didn't fit, the speed was different, a spec is off) or that a model or card is missing, so it can be corrected. Use this after check_fit, compare_setups or suggest_models gave an answer the user's real experience contradicts. Real results help most: the tokens per second and memory actually seen, the context length and the runtime. Never include names, emails or other personal details - notes are stored as written with emails, numbers and links removed. Returns a receipt (R-...) to follow up with get_status; each call files a separate report, so send it once. Limited to 5 reports a minute. To share a full measurement from the user's own machine instead, use submit_result.

Inputs: problem (required), note, model, context, +4 more.

submit_resultContribute a measurementAInspect

Sends LocalBit a measurement made with its recipe (get_test_kit): the model's Ollama tag, quantization, hardware name and memory, Ollama version, OS and, for each context length, tokens per second (and optionally prompt speed and whether the model sat fully on the card). Use this after the user has seen the numbers and agreed to share them - never before; never include names, file paths or other personal details. Each result is checked against LocalBit's estimate: plausible ones are published as community results (labelled unverified), others are flagged for review. Use report_issue instead for a single wrong answer without a full measurement. Limited to 5 a minute.

Inputs: model (required), results (required), hardware (required), os, +5 more.

suggest_modelsWhich models fit this hardware?A
Read-onlyIdempotent
Inspect

Lists the largest known local AI models that fit on the given hardware at the given context length (default 8,192 tokens), up to 10, biggest first, each with its quantization, memory needed and speed in tokens per second (measured where LocalBit's node has run it, otherwise estimated). min_tokens_per_s drops models slower than that. Use this when the user names only their hardware and asks what they can run; use check_fit to verify one specific model, and compare_setups to weigh two. If nothing fits it says so; unknown hardware returns an error with how to describe it (a card name, memory like '16 GB', or a Mac chip).

Inputs: hardware (required), context, min_tokens_per_s. Returns: models, hardware

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool occupies a distinct slot: single fit check (check_fit), reverse lookup (suggest_models), head-to-head (compare_setups), catalog browsing (list_known), specs plus measurements (get_details), recent node measurements (get_node_log), and a separate contribute/report/follow-up trio. Descriptions explicitly disambiguate the closest pairs (check_fit vs suggest_models vs compare_setups; get_node_log vs get_details; submit_result vs report_issue) and even state what each adjacent tool is for.

    Naming Consistency5/5

    All ten names follow a uniform snake_case verb_noun pattern (check_fit, suggest_models, list_known, compare_setups, get_node_log, get_details, get_test_kit, submit_result, get_status, report_issue). Verb choice is meaningful and stable: get_ for retrieval, submit_/report_ for writes.

    Tool Count5/5

    Ten tools is squarely in the well-scoped range, and each maps to an identifiable user intent (verify, discover, compare, browse, inspect, browse measurements, contribute, follow up, complain). Nothing reads as filler or as a duplicate of another tool.

    Completeness4/5

    The surface covers the full loop: discovery, fit verification, comparison, spec lookup, contribution via test kit, submission, status tracking and error reporting. Minor gaps remain — no way to retract or amend a submitted result, no filtering/pagination on list_known's whole-catalog dump, and no direct query for community results by model independent of get_details.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Checks whether an open-weight LLM fits your GPU: VRAM for weights, KV cache and overhead at each quantisation, a tokens-per-second ceiling, the longest context that fits, and what would work instead when it doesn't. Reads any Hugging Face repo's config.json. Free, read-only, no API key.
      6
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to pull measured local-LLM benchmark data and hardware-aware model picks — ranked configs with decode tok/s, quant and backend details, hardware catalogues, and repo submissions for review. Answers questions like "what should I run on a Strix Halo for coding?" with sourced numbers rather than invented ones.
      80 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to estimate wall-clock runtime, peak memory footprint, OOM risk, and optimal batching before launching ML training or inference jobs, and to log completed runs for continuous calibration. It exposes just two ultra-compact tools so estimation fits in under 200 tokens of agent context.
      Apache 2.0