原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Inferbench

作者:RudrenduPaul版本 0.1.7i★ –i在你的电脑上运行
注册名称io.github.RudrenduPaul/inferbench

安装

概览

作者提供的说明(英文原文)

Benchmarks local LLM inference speed (tokens/sec) on your own hardware via MCP tools.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 搜索与 AI 记忆

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "inferbench": {
      "command": "uvx",
      "args": [
        "inferbench-cli",
        "inferbench-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add inferbench -- uvx inferbench-cli inferbench-mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "inferbench": {
      "command": "uvx",
      "args": [
        "inferbench-cli",
        "inferbench-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "inferbench": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "inferbench-cli",
        "inferbench-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 RudrenduPaul 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 5653 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 5653 个服务器的 30% 更新
  • 基础检查结果等于或优于此分类中其他 5653 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Inferbench 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.7)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

作者:upstash

Up-to-date docs for AI agents

电脑或云端★ 64,224MIT昨天更新
安装

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

在你的电脑上运行★ 48,148MIT21天前更新
安装

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

在云端运行★ 5,213MIT2个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

InferBench

Every "best local LLM engine" article benchmarks someone else's machine. InferBench benchmarks yours.

Local-inference engines all publish their own benchmarks, on their own hardware, in their own README. None of them tell you which one is actually fastest on the machine sitting in front of you. InferBench runs a fixed, varied prompt set against whichever supported engines are installed on your own hardware and reports real, measured tokens/second -- not a number copied from someone else's blog post.

Install, first run, and a real omlx benchmark against a cached model:

npx inferbench-cli run --engines llama.cpp --model "bartowski/Qwen2.5-1.5B-Instruct-GGUF:Q4_K_M"

Table of contents

  • Install
  • Features
  • Quickstart
  • CLI command reference
  • Library API reference
  • How the measurement works
  • Comparison
  • Why this exists
  • Documentation
  • FAQ
  • Contributing
  • Security
  • License

Install

InferBench ships two independent, equally first-class packages -- pick whichever fits your toolchain, or install both. Neither is deprecated in favor of the other; both run the same measurement architecture against the same two supported engines.

# npm -- JavaScript/TypeScript CLI

npm install -g inferbench-cli

or, no install:

npx inferbench-cli run --engines llama.cpp --model " : "

PyPI -- Python CLI + library (genuine port, not a wrapper around the Node binary)

pip install inferbench-cli

Both packages are published and installable today. npm install -g inferbench-cli and pip install inferbench-cli both work -- see npmjs.com/package/inferbench-cli and pypi.org/project/inferbench-cli, or python/README.md and docs/getting-started.md for the Python-specific walkthrough, and CHANGELOG.md for each distribution's version history.

Requires Node.js >=18 for the npm package, Python >=3.10 for the PyPI package. At least one supported engine must already be installed either way (InferBench does not install engines for you):

  • llama.cpp: brew install llama.cpp (macOS) or build from ggml-org/llama.cpp
  • omlx: brew tap jundot/omlx https://github.com/jundot/omlx && brew install omlx (Apple Silicon only)

Features

  • Cross-engine, same measurement code. InferBench starts each engine's own OpenAI-compatible HTTP server (llama-server, omlx serve) and sends every engine the identical prompt set through the identical timing code, instead of comparing numbers each engine's own benchmark tool produced differently.
  • Full-response-body timing, not headers. An earlier version of this code measured elapsed time right after the HTTP response object resolved, which only captures headers arriving, and once reported a physically impossible 64,646 tok/s before the bug was caught. Both distributions now time the complete response body, with a regression test guarding the fix in each language's harness.
  • 8-prompt fixed sweep with warm-up. One throwaway completion absorbs first-request latency, then 8 varied prompts are timed individually and reported as avg/min/max tok/s (n=8 in the results table).
  • Two independently maintained distributions, matching output. npm's inferbench-cli (TypeScript) and PyPI's inferbench-cli (a genuine Python port, not a wrapper around the Node binary) expose the same CLI flags and the same JSON report field names.
  • Machine-readable reports. --json / --out writes a full BenchmarkReport as camelCase JSON on both distributions, so CI or an agent can parse it without special-casing which language produced it.
  • Local cloud-cost context (Python library). compare_to_cloud() looks up a static, dated cloud API price alongside your measured local throughput -- it discloses plainly that it's a snapshot, not a live quote, and returns None for a model it doesn't recognize rather than guessing a number.
  • Path-safe `--out`. A relative --out value that resolves outside the current working directory is rejected, so an agent-supplied output path can't escape the intended directory.

Quickstart

# llama.cpp -- pass a Hugging Face repo spec; llama.cpp downloads and

caches it automatically, no manual step required

inferbench run --engines llama.cpp --model "bartowski/Qwen2.5-1.5B-Instruct-GGUF:Q4_K_M"

omlx -- pass the model-directory subdirectory name under ~/.omlx/models/;

omlx has no CLI download flow, so the model must already be present there

(download it once via omlx's own admin dashboard, or huggingface_hub's

snapshot_download into that directory)

inferbench run --engines omlx --model "qwen2.5-1.5b-instruct-4bit"

Both installed engines, machine-readable output, saved to a file

inferbench run --model " " --json --out report.json

Real output from a live run against an actual llama-server process:

$ inferbench run --engines llama.cpp --model "bartowski/Qwen2.5-1.5B-Instruct-GGUF:Q4_K_M"

Hardware: Apple M4 (darwin/arm64), 16GB

llama.cpp: starting server... llama.cpp: warming up... llama.cpp: [1/8] benchmarking... ... llama.cpp: [8/8] benchmarking...

Results: llama.cpp: avg 75.54 tok/s (range 69.54-79.78, n=8)

Recommendation: llama.cpp -- highest measured throughput on this run (75.54 tok/s avg) -- specific to this hardware and model, not a universal ranking

[!WARNING]

--model means something different per engine (a downloadable HF spec for llama.cpp, a pre-downloaded local directory name for omlx), because the two engines have genuinely different model-acquisition capabilities -- omlx's serve command has no flag to pull an arbitrary model from Hugging Face directly. Running both engines against the *same* model in one command therefore needs the model already available in both engines' own expected forms.

CLI command reference

inferbench run [options]

Options: --model Model spec (engine-specific, see Quickstart above) [required] --engines Comma-separated engines to test (default: all installed -- omlx, llama.cpp) --max-tokens Max completion tokens per prompt (default: 200) --json Output machine-readable JSON instead of a human table --out Also write the full JSON report to this file --verbose Show raw engine server stdout/stderr

Exit code 0 on a successful run with at least one engine tested; 1 on a usage error or when no supported engine is installed. The Python CLI has one small, documented divergence: a missing required --model flag exits 2 (the standard argparse convention for a parse-time error) instead of 1.

Library API reference

The Python package (pip install inferbench-cli) exposes a documented library surface, meant for use in scripts or notebooks instead of the CLI. The npm package's package.json main field points at the CLI script itself (dist/cli.js, which runs the argument parser as a side effect on import) and does not declare a separate library entry point, so today only the Python distribution is a supported library import.

from inferbench import (

benchmark_engine, detect_hardware, all_engines, resolve_engines, recommend, compare_to_cloud, report_to_dict, write_json_report, )

SymbolSignatureWhat it returns
detect_hardware()() -> HardwareProfilePlatform, architecture, CPU model string, total memory in GB, and whether the machine is Apple Silicon.
all_engines()() -> List[EngineAdapter]An adapter instance for every supported engine (omlx, llama.cpp).
resolve_engines(names)(names: List[str]) -> List[EngineAdapter]Adapters for a deduped, user-supplied engine list; raises on an unrecognized name.
benchmark_engine(adapter, *, model, ...)(adapter, *, model: str, max_tokens=None, prompts=None, verbose=False, on_progress=None) -> EngineBenchmarkResultRuns the fixed prompt sweep against one engine and returns a structured result. Never raises for "engine not installed" or one failed prompt -- that state lives in the returned object.
recommend(results)(results: List[EngineBenchmarkResult]) -> Optional[Recommendation]The engine with the highest measured average tok/s among installed, successfully tested engines.
compare_to_cloud(cloud_model)(cloud_model: str) -> Optional[CostComparison]A static, dated per-1K-output-token price for a known cloud model (currently claude-5-haiku, claude-5-sonnet) plus a disclosure note, or None for a model it doesn't recognize.
report_to_dict(report) / write_json_report(report, path)(report: BenchmarkReport) -> dict / (report, path: str) -> NoneSerialize a BenchmarkReport to the same camelCase JSON shape the CLI's --json / --out produce.
from inferbench import benchmark_engine, detect_hardware, all_engines, recommend, compare_to_cloud

hardware = detect_hardware() results = [ benchmark_engine(adapter, model="qwen2.5-1.5b-instruct-4bit") for adapter in all_engines() ] best = recommend(results) print(f"{hardware.cpu_model}: {best.engine} -- {best.reason}")

What would the same output volume cost on a cloud API instead?

cost = compare_to_cloud("claude-5-haiku") if cost: print(f"{cost.cloud_model}: ${cost.cloud_cost_per_1k_tokens_usd}/1K tokens (snapshot {cost.pricing_snapshot_date})")

MCP Server

InferBench ships a Model Context Protocol server so an AI agent (Claude, Cursor, or any MCP-compatible client) can run a hardware benchmark directly, without a human invoking the CLI by hand.

Install the extra:

pip install "inferbench-cli[mcp]"

Add it to your MCP client's config (for Claude Desktop, claude_desktop_config.json):

{

"mcpServers": { "inferbench": { "command": "uvx", "args": ["--from", "inferbench-cli", "inferbench-mcp"] } } }

The server exposes one tool, run, that shells out to the published inferbench npm binary with the given subcommand and arguments plus --json, and returns the parsed result:

run(["run", "--engines", "llama.cpp", "--model", "bartowski/Qwen2.5-1.5B-Instruct-GGUF:Q4_K_M"])

Transport is stdio, so there is nothing to host: the MCP client spawns the server as a local subprocess. Source: python/src/inferbench/mcp_server.py.

How the measurement works

InferBench does not shell out t

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx