OpenChainBench

io.github.Flotapponnier由 GitHub 账号 Flotapponnier 发布v1.0.0更新于 Nov 9, 2026

Live, neutral benchmarks for public RPC latency, oracles, bridges, perp DEX, and prediction markets.

发布方自己的服务:Agent.chain.tokyo Address Contracts

已验证Streamable HTTP可网页运行网页搜索与抓取金融数据与分析

概览

AI 生成的概览

只读访问 OpenChainBench 的实时加密基础设施基准数据:RPC 延迟、预言机、跨链桥、永续 DEX 和预测市场,含排名与引用。

可以做什么
  • 浏览基准目录,查看当前数值、领先者和分类
  • 用自然语言问题检索基准,并获取单个基准的完整详情,包括排名、24 小时趋势、方法论和可直接引用的句子
  • 将指定服务商在同一基准上并排比较,或按用户目标给出推荐
  • 列出已发布的问答页面,每个页面把一个通俗问题与来自实时数据的答案句配对
适用场景
适合在有人询问哪个加密 RPC、数据 API、跨链桥、预言机、永续 DEX 或预测市场最快、最便宜或最可靠时使用,也适合需要带时间戳的可引用数据时使用。它是只读数据源,不用于运行或配置基础设施。
运行要求
远程 streamable HTTP 端点;无需密钥、账号或环境变量。读取端点按 IP 限制每分钟 60 次请求。
安装前请注意
数据是实时的且会变化,每个响应都带 asOf 时间戳,引用到别处后即会过时,引用时应附上该时间戳。数据采用 CC-BY-4.0 许可,需署名 OpenChainBench 并链接到来源页面。排名依据项目自身方法论测得,可能对某些服务商不利。

安装

在 SourceWeft 中

  1. 打开 控制台中的 OpenChainBench,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.Flotapponnier%2Fopenchainbench/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "openchainbench": {
      "type": "http",
      "url": "https://openchainbench.com/api/mcp/mcp"
    }
  }
}

README

OpenChainBench

OpenChainBench measures crypto infrastructure the same way for every provider, publishes the number, and ships the code that produced it. RPC endpoints, data APIs, bridges, perp DEXes, prediction markets, oracles, cross-chain messaging. Live at openchainbench.com.

It answers questions like which free Ethereum RPC answers fastest, or which bridge charges least to move USDC, with figures recomputed around the clock rather than written down once.

[live benchmarks] [code: MIT] [data: CC--BY--4.0] [PyPI] [MCP] [DOI]

[a live benchmark card]

Every benchmark ships with the harness that produces its data, under MIT, with the dataset under CC-BY-4.0, and pull requests are open to any party including the providers being measured. The card above is live, and GitHub caches it, so it can lag the page it links to.

What this is

  • A public registry of benchmarks, one YAML spec per benchmark, each naming its metric, its methodology and the exact PromQL behind every figure it publishes.
  • A set of self-contained Go harnesses that probe providers on a schedule and expose Prometheus metrics. One shared Prometheus scrapes them, one worker materializes snapshots, the site reads those snapshots.
  • A citable data surface. Every benchmark figure is available as JSON, as Markdown, over RSS and through an MCP server. JSON responses carry an asOf timestamp, a source URL and a licence; exported citations carry the page URL and the date you retrieved it.

What this is not

  • Not a token, a fund, or an RPC vendor.
  • Not editable by the measured. A provider may be shown the facts behind a report before it is published, and the staging site is public, so figures are visible before a release. Nobody outside the method can change a number.
  • Not a single-vendor view. Providers that cannot be measured under identical conditions are split into separate benchmarks, or filtered to the same scope, and the spec says which.

Get the data in 30 seconds

bash
pip install openchainbench
python
from openchainbench import OpenChainBench
with OpenChainBench() as ocb:    for b in ocb.list_benchmarks()[:5]:        print(b.slug, b.leader)
    head_lag = ocb.get_benchmark("aggregator-head-lag")    print(head_lag.headline)

No key and no account. Read endpoints allow 60 requests a minute per IP, and the AI crawlers named in robots.txt are exempt. The same data over plain HTTP:

bash
# every benchmark with its current value, leader and citationcurl https://openchainbench.com/api/citable
# one benchmark: rankings, 24h sparkline, methodology, paste-ready quotecurl https://openchainbench.com/api/stat/aggregator-head-lag
# a benchmark as Markdown instead of HTML, at the same URLcurl -H "Accept: text/markdown" https://openchainbench.com/benchmarks/bridge-fee

For an agent, point an MCP client at the hosted server:

json
{ "mcpServers": { "openchainbench": { "url": "https://openchainbench.com/api/mcp/mcp" } } }

It exposes list_benchmarks, get_benchmark, search_benchmarks, compare_providers, recommend_provider and list_answers, plus the openchainbench://benchmark/{slug} resource. Install notes are at /mcp.

One benchmark, end to end

A benchmark is a spec, a harness, and the surfaces generated from them. Take aggregator-head-lag, which measures how long a data API takes to emit a swap that is already on chain.

The spec (benchmarks/aggregator-head-lag.yml) declares the metric, the unit, whether higher is better, the written methodology, and one PromQL query per provider per percentile. No number on the page is typed by hand.

The harness (harnesses/aggregator-head-lag/) subscribes to chain events and to each provider's feed, races them per transaction, and exposes the result at /metrics.

The published shape, from GET /api/stat/aggregator-head-lag:

jsonc
{  "slug": "aggregator-head-lag",  "metric": "Head lag",  "unit": "s",  "higherIsBetter": false,  "value": 0.240038,                  // example reading, 2026-10-25  "leader":   { "name": "Codex", "slug": "codex", "value": 0.240038 },  // ms holds the raw series value in the benchmark's stored unit, which is  // not always milliseconds: on a percent benchmark it holds a percent.  "rankings": [ { "name": "Codex", "ms": { "p50": 240.038, "p90": 399.49 } } ],  "sparkline": [ /* 73 points, last 24h */ ],  "sampleSize": 184980,  "measured": 6,  "ranked": 6,  "asOf": "2026-10-25T19:26:11.573Z",  "freshness": { "ageHours": 0.2, "stale": false },  "headline": "...",                  // one sentence, ready to quote  "methodology": [ /* the written rules, same text as the page */ ],  "source": "https://github.com/ChainBench/OpenChainBench/tree/main/harnesses/aggregator-head-lag",  "license": "CC-BY-4.0"}

headline is generated from the current reading, so it is correct whenever you fetch it and stale the moment it is pasted into a file. Quote it with its asOf. For a formal citation use /api/cite/<slug>/bib.

By the numbers

In this repositoryCount
Benchmark spec files (benchmarks/*.yml)243
Harness directories (harnesses/*/, every one a Go module)73
Answer pages (answers/*.yml)49
Alternatives pages (alternatives/*.yml)21
Distinct categories (category: values across the specs)10
Categories with a published benchmark8
Held on staging until a release condition is met (DEV_ONLY_BENCH_SLUGS)7
Retired, answering 410 Gone or redirecting to a successor (REMOVED_BENCH_SLUGS)38

243 specs, minus 7 held on staging, minus 2 retired benches that keep their spec, leaves 234 benchmarks that this commit publishes. Counts derived from the repository at 2026-11-06.

Published by category: RPCs 157, Trading 43, Aggregators 9, Bridges 9, Blockchains 8, RWA 6, NFT APIs 1, Wallets 1.

The badge at the top reads the live count from /api/citable, which is what production serves. The table is derived from the commit you are reading. The two agree once a change has been released, and differ while a benchmark is merged and waiting, so comparing them tells you something instead of requiring you to trust either.

Machine-readable surfaces

Every benchmark is CC-BY-4.0 and reachable without a key.

EndpointWhat it returns
/api/citableEvery benchmark with its current value, leader, headline sentence, citation and asOf. Start here.
/api/stat/<slug>One benchmark: rankings, 24h sparkline, methodology, quote, source, freshness.
/api/series/<slug>Per-provider time series. ?range=24h.
/api/compare/<a>/<b>Two providers across every benchmark they share.
/api/cite/<slug>/<format>Citation as bib, ris, apa or txt, with the matching content type.
/api/openapi.jsonOpenAPI 3.1 schema covering 11 of the read endpoints.
/api/mcp/mcpMCP server over streamable HTTP. Six tools and one resource template.
/api/llm-contextEvery benchmark with rankings and methodology as one Markdown document.
/llms.txt · /llms-full.txtIndex and full context per the llmstxt.org convention. llms-full.txt and /api/llm-context serve the same document.
Accept: text/markdownReturns Markdown instead of HTML at the page's own URL, on /benchmarks/<slug>, /products/<slug>, /perps, /rwa and /capital. Browsers are unaffected because their Accept header includes text/html.
/api/freshness{slug: asOf} in epoch milliseconds for every benchmark, plus the server's now. Cached 30 s.
/api/og/<slug>The 1200x630 card with the current value, leader and sparkline, at a stable URL.
/benchmarks/<slug>/share-cardExport card in five templates (ranking, snapshot, headline, compare, leaderboard), with ?theme=dark.
/api/badge/<bench>/<provider>Embeddable SVG with that provider's rank and figure. Add /snippet for paste-ready Markdown.
/rss.xml · /feed.jsonRSS 2.0 and JSON Feed 1.1, one entry per live benchmark.
/sitemap.xml · /robots.txtEvery URL we publish. More than thirty AI and answer-engine crawlers are named and allowed explicitly.
/contribute/ai-brief.mdA brief written for coding agents contributing a benchmark.

Each benchmark page also carries Dataset, StatisticalReport, Observation, TechArticle, FAQPage, DataDownload and BreadcrumbList JSON-LD.

Two mirrors are published outside this repo: a Hugging Face dataset with a daily parquet snapshot, and a Zenodo record under DOI 10.5281/zenodo.20800311.

Site surfaces

Route familyWhat lives there
/benchmarks, /benchmarks/<slug>, /benchmarks/<slug>/<chain>Catalogue, then one leaderboard per benchmark with chart, ledger, chain and region filters, share cards and FAQ. Chain-scoped views carry their own explainer.
/products/<slug>One page per product: every benchmark it appears in, first-place counts, related products, and a view per category it belongs to.
/chains/<slug>Per-chain hub: native price, TVL history, and every benchmark touching that chain grouped by category.
/compare/<a>-vs-<b>Head to head across shared benchmarks. Alphabetical order is canonical and enforced with a redirect.
/answers/<slug> · /alternatives/<slug>Question pages and "alternatives to X" pages, each backed by a live benchmark rather than by prose.
/rpc · /perps · /prediction-markets · /hyperliquid · /capitalVertical hubs aggregating several benchmarks per topic.
/methodology · /contribute · /mcp · /press · /badges · /aboutHow it works, how to contribute, how to cite and embed.

How it works

mermaid
flowchart LR  H["Go harnesses<br/>each exposing /metrics"] --> P["Shared Prometheus"]  R["Regional harnesses<br/>US, EU, SGP"] -.federated.-> P  P --> W["Materialization worker<br/>sweeps and publishes snapshots"]  W --> B["Redis plus CDN blob store<br/>kv.openchainbench.com"]  B --> S["Next.js site on Vercel<br/>reads the blob, Redis as fallback"]  S --> A["JSON, Markdown, RSS, MCP,<br/>cards, badges, citations"]
  • Harnesses run as containers on one VPS in Paris. A few that must measure from more than one place run on Railway and federate into the same Prometheus, because a latency number is meaningless without saying where it was measured from.
  • The worker sweeps Prometheus on a timer and publishes atomic snapshots to Redis and to CDN blobs at kv.openchainbench.com/aggregate/.... The site reads the blob first, falls back to Redis, and falls back again to the last known good snapshot rather than rendering an empty page.
  • The site is Next.js 16 on Vercel. main deploys to production automatically, with a warm-up pass, a sitemap indexability smoke test, an automatic rollback if that test fails, and an IndexNow ping once it passes. dev deploys to a staging preview.
  • Routing rules are in src/middleware.ts and next.config. A retired benchmark answers 410 Gone with a link to the catalogue, or redirects permanently where it has a successor. A renamed one redirects permanently to its new slug. And /compare/<b>-vs-<a> redirects to the canonical alphabetical order, so one comparison has one URL.
  • The live dashboard reads a WebSocket relay at wss://stream.openchainbench.com/ws, which the maintainers run separately because it holds upstream API keys. The browser talks to it directly.

Depth, including a clone-and-run-it-yourself walkthrough, is in docs/architecture.md.

Repo layout

benchmarks/        one YAML spec per benchmarkharnesses/         one Go module per harness, each self-contained and Dockerizedanswers/           Q&A specs backing /answers/<slug>alternatives/      "alternatives to X" specs backing /alternatives/<slug>packages/          python-client, published to PyPI as openchainbenchworker/            materialization worker: Prometheus to CDN and Redis snapshotsinfrastructure/    shared Prometheus configsrc/               the Next.js site, App Router, TypeScript, Tailwind, Zodscripts/           spec validators, prebuild manifests, sitemap smoke testdocs/              architecture.md, methodology, walkthrough.mdpublic/            static assets served by the sitevideo/             the renderer behind the Export video button on every benchmark page.github/           CI, production deploy, staging preview, dataset publishing

crm/ and outreach/ are internal tooling and not part of the published benchmark surface.

Contributing

Long form in CONTRIBUTING.md, visual walkthrough at /contribute, and a brief for coding agents at /contribute/ai-brief.md.

  1. Float the idea in Discussions.
  2. Open a Propose a benchmark issue with the metric and the methodology, before writing code.
  3. Write the harness. Go is the convention, but anything that serves /metrics over HTTPS works.
  4. Host it anywhere with a stable HTTPS URL. You keep your keys and your budget; maintainers never see them.
  5. Open a PR against dev with the spec, a link to the harness, and the Prometheus scrape config.
  6. Review it on the staging preview. It reaches production once data has landed and the page reads correctly.

Local checks before you open it:

bash
pnpm installpnpm dev              # http://localhost:3000pnpm validate         # every spec against the Zod schemapnpm check            # validate, typecheck, lint, test

How we decide what to publish

  • Same metric, same conditions. Where providers cannot be measured identically they are split apart or filtered to a common scope, and the benchmark says so rather than comparing them anyway.
  • Marketing does not shape a number. The published methodology and the harness are the only inputs.
  • A benchmark earns its page. New ones are held on staging until a written condition is met, for example a full measurement window, an audit round, or a minimum number of providers. The conditions are in src/lib/removed-benches.ts, one comment per benchmark, including the ones still waiting.
  • Retirement, not deletion. A retired benchmark answers 410 Gone and keeps its entry, or redirects to its successor where one exists, so an indexed URL decays honestly instead of disappearing.
  • No number without a timestamp. Every JSON surface carries asOf, and /api/freshness returns the whole map as epoch milliseconds, so a reader can tell fresh from stale without asking us.
  • A draft never quotes a figure. If too few providers report, the page says it is awaiting samples instead of crowning a leader on thin data.

Cite this

bibtex
@misc{openchainbench,  author    = {OpenChainBench},  title     = {OpenChainBench: live benchmarks for crypto infrastructure},  year      = {2026},  doi       = {10.5281/zenodo.20800311},  url       = {https://openchainbench.com},  note      = {Dataset licensed CC-BY-4.0}}

For one benchmark, GET /api/cite/<slug>/bib returns the same shape for that page, and ris, apa and txt are also available.

The DOI resolves to the latest version of the dataset record, which is v1.0.1 published 2026-06-22. Cite it for the dataset, and cite a page with its asOf for a figure you read today.

Questions

Is the data free to use? Yes. The dataset is CC-BY-4.0, so quote it, chart it, or ship it in a product, with attribution to OpenChainBench and a link to the page you took it from. Harness code is MIT.

Can I add my own product? Yes, including if we already measure you. Providers can open PRs here. What a PR cannot do is change a number without changing the method that produced it, and a method change applies to every provider in that benchmark at once.

A figure about my product looks wrong. What now? Open a provider correction issue with the page, the figure and what you measured instead. Every benchmark value traces to a PromQL query in a spec and a harness in this repo, so a disagreement is usually resolvable by reading both.

How current is a number? Each benchmark carries its own asOf. /api/freshness returns the whole map in one request, and a page that has gone stale says so rather than showing an old figure as current.

Why does a benchmark exist in this repo but not on the site? Because it has not met its release condition yet. Those are listed with a reason in src/lib/removed-benches.ts, and the arithmetic in the numbers table above accounts for every one of them.

Do you measure providers who do not want to be measured? We measure endpoints any customer can reach under their published terms, free ones and paid ones, and the keyed benchmarks say which plan was used. A provider can ask for its methodology to be corrected and that is usually a good PR, but not for its result to be removed because the result is unflattering.

Community and licence

Discussions · @OpenChainBench · PyPI · Hugging Face · Zenodo · Wikidata

Harness and site code: MIT, see LICENSE. Dataset: CC-BY-4.0 with attribution required, published as the license field on every API response.

来源:README.md,提交 dffd369

工具

6

list_benchmarks

Browse the benchmark catalogue

A compact index of what OpenChainBench measures. One short row per benchmark: slug, title, category, the metric, the current value and who leads it. Use when the user asks what is measured at all ("what does OpenChainBench cover?", "do you track bridges?"). When they ask a question about a provider or a chain, use `search_benchmarks` instead: it ranks the catalogue against their words and costs far less to read. The catalogue holds over 200 benchmarks, so this is capped and filterable rather than exhaustive. Narrow with `category`, then open the one you need with `get_benchmark`. Categories: RPCs, Trading, Bridges, Blockchains, Aggregators, RWA, NFT APIs.

输入参数limitcategory

search_benchmarks

Find the benchmark that answers a question

Ranks the benchmark catalogue against a question in the user's own words and returns the best few matches. Use this when somebody asks which provider, chain or service is fastest, cheapest, most reliable or best for something. Pass their phrasing through: provider names, chain names and goals all match. • "which Solana RPC is fastest" -> search_benchmarks({ query: "solana rpc" }) • "Alchemy or QuickNode on Base?" -> search_benchmarks({ query: "alchemy quicknode base" }) • "cheapest way to bridge to Arbitrum" -> search_benchmarks({ query: "bridge arbitrum" }) Returns compact rows. Open the one you want with `get_benchmark` for the full ranking and a citation line. An empty result means nothing is measured for that question; say so rather than guessing.

输入参数limitquery必填category

get_benchmark

Get a single OpenChainBench benchmark

Returns full detail for one benchmark, ready to cite verbatim: • rankings (every provider sorted by p50) • sparkline (24h trend, 72 points) • headline sentence + paste-ready citation quote • methodology bullets + source-code URL + canonical pageUrl + OG image URL Pass `chain` and/or `region` to scope the result to a sub-slice when the benchmark declares those dimensions (e.g. aggregator-head-lag exposes chain=base|bnb|solana, region=us-east|eu-west|ap-southeast). Both args are optional; omit them for the global aggregate. Chain RPC benchmarks (<chain>-rpc) rank two access cohorts apart: the free public endpoints (default) and the private, API-key providers (Alchemy, Chainstack, GetBlock, QuickNode). The default response carries both under `cohorts`; pass tier="keyed" to get the private cohort as the main record (rankings, quote, pageUrl). Never compare a public row with a private row: they are measured on different endpoints and cadences. Example usage: • User: "who's the fastest crypto data aggregator on Base?" → get_benchmark({ slug: "aggregator-head-lag", chain: "base" }) • User: "how much does it cost to bridge $300 cross-chain?" → get_benchmark({ slug: "bridge-fee" }) • User: "fastest Base RPC with an API key, Alchemy or QuickNode?" → get_benchmark({ slug: "base-rpc", tier: "keyed" }) Drafts return { error: "unknown_slug" }. Cite the returned `pageUrl` and use `quote` as the attribution line in your answer.

输入参数slug必填tierchainregion

compare_providers

Compare named providers head to head

Puts two or more named providers side by side on one benchmark, with each one's rank, measured value and success rate. Use when the user names the candidates themselves: "Alchemy or QuickNode?", "is Helius faster than Triton for Solana?", "compare Across and Stargate on fees". Find the benchmark slug with `search_benchmarks` first if you do not already have it. Providers the benchmark does not measure come back in `missing`: say they are not measured rather than implying they ranked badly. A provider measured but below the ranking floor comes back with rank null, which is also not a loss.

输入参数tierchainregionbenchmark必填providers必填

recommend_provider

Recommend a provider for a stated use case

Answers "which should I use for X" by picking the benchmarks that measure X and reporting who currently leads them. Pass the user's goal in their own words: "a Solana trading bot", "an indexer backfilling Base", "a wallet that needs price data", "bridging to Arbitrum". This returns measurements and the caveat that goes with them, not an endorsement. A leader on one benchmark is the leader of that one measurement over its stated window. Where the use case has a known caveat (a bot should read p99 rather than p50, an indexer is bound by archive depth) it comes back in `guidance`; pass it on, it is usually more useful than the ranking itself.

输入参数chainregionuse_case必填

list_answers

List OpenChainBench answer pages

Returns every published answer page: one plain question, the sentence that answers it from live data, and the benchmark the number comes from. Call this when the user asks a question in words rather than by benchmark name ("which bridge is cheapest for $300?", "which Solana RPC lands transactions fastest?"). Match the question, then call `get_benchmark` with the returned `benchmark` slug for the full ranking behind it. Returns one row per answer: { slug, question, answer, benchmark, chain?, url, benchmarkUrl } Cite `url` when the question itself is the claim, `benchmarkUrl` when the measurement is. Drafts are filtered out, and an answer whose benchmark has no defensible leader yet says so in `answer` rather than naming a winner.

输入参数benchmark

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Chain 集成