AgentIndex

io.github.cognivis由 GitHub 帳號 cognivis 發布v0.2.0更新於 Oct 24, 2026

Trust scores and on-chain payment receipts for x402 services.

發布方自己的服務:AgentIndex

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取金融安全與監控

概覽

AI 產生的概覽

一個遠端 MCP 伺服器,讓助理尋找付費 x402 資料服務、查看其信任評分與鏈上付款憑證,並從最可信的服務取得資料。

可以做什麼
依能力搜尋 AgentIndex 登錄表中的 x402 服務,回傳端點、價格與探測得到的信任評分。
適用情境
當助理準備為資料向 x402 服務付費、需要判斷哪個提供方誠實,或希望取得的答案附帶信任評分和鏈上探測憑證時使用。
執行需求
遠端 Streamable HTTP 端點;未宣告驗證、環境變數或請求標頭。助理需要能連線到 AgentIndex 端點的網路。
安裝前請注意
此伺服器會推薦並抓取付費 x402 提供方,採納其建議可能導致花錢,付費前應先使用 resolve_data_need。信任評分來自 AgentIndex 自身的探測與鏈上證明,README 說明主觀輸出無法被證明為「好」。README 稱公開的 Web 與 MCP 容器不持有付款或簽章金鑰。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 AgentIndex,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.cognivis%2Fagentindex/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "agentindex": {
      "type": "http",
      "url": "https://mcp-agentindex.craftyour.site/mcp"
    }
  }
}

README

[AgentIndex]

AgentIndex

AgentIndex shows AI agents which paid services are honest and which scam, with proof on-chain.

Live app · Demo video · Evidence · MCP server · Subgraph

AI agents can now discover an API and pay it automatically over x402. The payment receipt proves that money moved, but it does not prove that the API returned complete or correct data.

AgentIndex fills that gap. It pays x402 services like a normal customer, checks what they return, and publishes a trust score that another agent can inspect before spending money.

Trust from receipts, not reviews.

[AgentIndex playground where an agent checks which x402 service to trust before paying]

Ask the index who to pay before the agent spends.

The problem

Imagine an agent needs weather data and finds two paid APIs:

  • weatherpro costs a little more and reliably returns the fields it promises.
  • scamco is cheaper, accepts payment, and often returns empty or incomplete data.

A directory can show that both services exist. Usage counts can show which one is popular. Neither tells the agent whether the response is actually trustworthy.

AgentIndex makes the request itself, pays the service, checks the response against the service's published promise, and keeps the payment and verification evidence. The agent can then choose weatherpro and avoid scamco for a reason it can verify.

How it works

mermaid
flowchart LR    A[Service registers<br/>ENSv2 subname + manifest] --> B[Prober discovers service]    B --> C[Real x402 payment<br/>Hedera or Base]    C --> D[Response verification<br/>spec + oracle + consensus]    D --> E[Verdict attested<br/>on Sepolia]    E --> F[The Graph subgraph<br/>builds trust score]    F --> G[Agent checks trust<br/>through MCP or API]
  1. A provider registers a subname under agentindex.eth and stores its endpoint, price, method, and response specification in ENS text records.
  2. The prober reads that manifest directly from ENS and calls the service like a normal customer.
  3. It pays the x402 request with real HBAR on Hedera testnet. Approved external probes can use tightly capped USDC on Base.
  4. It checks delivery, required response fields, latency, and—when the answer is objective—accuracy against The Graph Token API and peer consensus.
  5. The result is attested on Sepolia and indexed by the AgentIndex subgraph.
  6. An AI agent queries the trust score and evidence through MCP before choosing which service to pay.

[The five-step AgentIndex flow from ENS registration to an MCP trust query]

The live site explains each step and links to its on-chain proof.

Why these protocols matter

AgentIndex works like a credit bureau for paid APIs. Each sponsor provides a part that the system cannot work without.

NeedAgentIndex implementationProtocol
A stable identity for every serviceENSv2 subnames and service-owned manifestsENS
A payment history based on real behaviorSpend-capped HBAR payments over x402Hedera
A live record that agents can queryToken API verification, a subgraph, MCP, and an agent SKILLThe Graph

The Graph

AgentIndex uses two Graph products in the same trust-checking flow.

For objective price APIs, the prober compares the paid response with live market data from The Graph Token API. A response can match the expected JSON format and still be dishonest; the oracle check catches prices that look valid but are wrong.

The verdict is then written on-chain. Our deployed subgraph indexes service registrations and probe attestations, excludes invalid auditor-input records, and calculates delivery, honesty, average latency, and a final trust score. The MCP server uses those indexed results to tell an agent who to pay and why.

This is not a dashboard-only integration:

  • The Token API is the independent input used to judge objective answers.
  • The subgraph is the live ledger that turns probe history into trust scores.
  • The MCP server and SKILL.md make those scores reusable by other agents.
  • Every MCP response includes the subgraph deployment and indexed-block freshness metadata.

Relevant code:

Hedera

Hedera is the main payment rail for the seeded index. The autonomous prober pays all six services with real HBAR on Hedera testnet through the Blocky402 facilitator before it rates their responses.

The payment flow is built with fund safety in mind:

  • Only HBAR is allowed for the seeded-service payment path.
  • Every payment is capped at 1 HBAR.
  • The payer and receiver are separate Hedera accounts.
  • Payment references are stored with the probe evidence and linked to HashScan.
  • The same x402 flow also protects AgentIndex's trust API, so AgentIndex acts as both a buyer and seller of machine-readable services.

Relevant code:

ENS

ENSv2 is the actual service registry, not just a display name. Every rated provider receives a revocable subname under agentindex.eth, such as weatherpro.agentindex.eth.

Each service publishes its manifest through ENS text records:

  • url
  • description
  • x402:method
  • x402:price
  • x402:spec

The prober reads these records before making a payment, so the endpoint and the promise being checked come from ENS rather than a private application database. ENSv2 permissions let each provider manage only its own records, while AgentIndex keeps the ability to revoke a subname when a service is caught taking payment and returning bad data.

Relevant code:

Verification model

AgentIndex applies the strongest check that makes sense for each type of service.

CheckWhat it answersApplies to
DeliveryDid the service return a non-empty JSON response?Every service
Spec matchDid it return every field promised in its ENS manifest?Every service
Oracle checkDoes an objective value agree with The Graph Token API?Price services
ConsensusIs the value an outlier compared with other providers?Comparable services
Track recordHow has the service behaved across many paid probes?Every service

The trust score is calculated in basis points:

text
trust = 0.60 × delivery + 0.25 × honesty + 0.15 × latency

For subjective output such as summaries, AgentIndex does not claim to prove that the answer is “good.” It reports delivery, compliance with the published format, latency, and historical behavior. Objective data receives the additional oracle and consensus checks.

Live proof

The project includes a real paid probe against an external x402 provider, not only services created for the demo.

  • Provider: TickersFeed
  • Payment: $0.002 USDC on Base mainnet
  • Verification: returned BTC price checked against The Graph Token API and peer consensus
  • Outcome: passed the configured 2% oracle tolerance
  • Base payment: view on BaseScan
  • Sepolia attestation: view on Etherscan

Earlier probes that used an incorrect request path remain visible as valid=false. They are kept for auditability but excluded from the provider's score, so an auditor mistake does not unfairly damage a service.

[AgentIndex evidence dashboard showing service trust scores, delivery, honesty, latency, and verdicts]

The evidence dashboard is backed by the live subgraph, not a static dataset.

Seeded services

The six seeded services are a controlled teaching set used to demonstrate different trust signals.

ServiceCategoryBehaviorWhat it demonstrates
weatherproWeatherHonest and fastA service the agent should pay
scamcoWeatherTakes payment but returns bad dataA service the agent should avoid
pricefeedToken pricesHonest and backed by live Graph dataOracle verification
summarizeSummariesHonest but slowLatency affects trust
geocodeGeocodingHonest but occasionally unavailableReliability without false fraud claims
newsfeedHeadlinesHonestAnother service category

scamco is intentionally planted. It lets us demonstrate detection without accusing an unrelated real service of fraud.

Use AgentIndex through MCP

The public MCP server exposes four tools:

ToolPurpose
find_serviceFind and rank services for a need
check_trustInspect one service's trust report
resolve_data_needDecide who to pay or avoid and explain why
get_verified_dataFetch data from the best provider with its score and latest proof

Install the remote server in an MCP-compatible client:

sh
npx add-mcp https://mcp-agentindex.craftyour.site/mcp
  • Registry name: io.github.cognivis/agentindex
  • Transport: stateless Streamable HTTP
  • Discovery manifest: https://mcp-agentindex.craftyour.site/.well-known/mcp.json

[Claude Code using AgentIndex MCP tools to recommend weatherpro and warn against scamco]

A real MCP session recommends `weatherpro`, rejects `scamco`, and explains the decision with indexed evidence.

Run locally

Requirements

  • Node.js 22 or newer
  • pnpm
  • Foundry for the Solidity contracts

Install

sh
corepack enablepnpm installcp .env.example .env

Fill in only the environment variables needed for the component you want to run. Never commit .env or private keys.

Safe local mode

Set PAYWALL=off in .env to test without making payments. Run each component in its own terminal:

sh
pnpm servicespnpm webpnpm --filter @agentindex/mcp http

Run one non-looping probe round:

sh
PAYWALL=off pnpm --filter @agentindex/prober run once

External Base payments are disabled by default. They require an explicit one-shot run, an approved provider, canonical Base USDC, and the configured round and daily budgets. See the prober guide before enabling them.

Test

sh
pnpm test

Individual TypeScript packages can be checked with:

sh
pnpm --filter @agentindex/services run typecheckpnpm --filter @agentindex/prober run typecheckpnpm --filter @agentindex/mcp run typecheckpnpm --filter @agentindex/api run typecheckpnpm --filter @agentindex/web run typecheck

Repository map

PathPurpose
contracts/ENSv2 service registrar and on-chain attestation registry
services/Six x402-gated API services
prober/Discovery, payment, verification, consensus, and attestation
subgraph/Service history and trust-score indexing
mcp/MCP server and four agent-facing tools
api/x402-gated REST access to the trust layer
web/Next.js dashboard, evidence views, registration, and MCP console
demo-agent/End-to-end agent flow from trust check to payment
deploy/Docker, Caddy, and VPS deployment configuration
SKILL.mdReusable “check trust before paying” workflow

Public deployments

ComponentURL or address
Dashboardhttps://agentindex.craftyour.site
Evidence dashboardhttps://agentindex.craftyour.site/evidence
MCP endpointhttps://mcp-agentindex.craftyour.site/mcp
Paid trust APIhttps://api-agentindex.craftyour.site
Seeded x402 serviceshttps://services-agentindex.craftyour.site
Subgraphhttps://api.studio.thegraph.com/query/1759003/agentindex-sepolia/v0.0.3
Subgraph deploymentQmXxckRjUGcYCJgVEeD38GYEKnybGDapfA9ZgWKM2iuQgs
AttestationRegistry0x33406801acD2A16549462153261A224F779768CC
ServiceRegistrar0xdeB458892c7702Fe0112161EEa28C0F46eFd6379
PermissionedResolver0xDEb75A113E4A072F182bAF24B14B148Fe6377416
ENSv2 UserRegistry0xEFb0a4696145598C9d4d74df15Dd5D3CaAeD2F9D

All contracts in the table are deployed on Sepolia. Hedera payments use Hedera testnet, and the external TickersFeed verification uses Base mainnet.

Security choices

  • Hedera payments are restricted to HBAR and capped at 1 HBAR per request.
  • External payments are opt-in, one-shot only, provider-allowlisted, and limited to canonical Base USDC.
  • Base spending has persistent per-round and per-day budgets with hard code-level ceilings.
  • Oracle outages return an unavailable result instead of falsely marking a provider dishonest.
  • Invalid auditor inputs stay visible but do not affect provider scores.
  • The public web and MCP containers do not receive payment or signing keys.

Future sustainability

Today, the demo probes are funded by the AgentIndex operator. A future version could let providers fund recurring independent probes, while agents pay a small x402 fee when they request a fresh trust report. Payments would cover verification costs only—they would never buy a better score or change the result of a probe.

Deployment

Production runs through Docker Compose with Caddy handling HTTPS. The recurring spending worker is kept behind a separate Compose profile so it cannot begin spending during an initial deployment.

See the deployment guide for the production layout and verification commands.

來源:README.md,提交 d2d3c17

工具

4

find_service

Search the AgentIndex registry for x402 services matching a capability, e.g. "weather data" or "token prices". Returns matching services with endpoints, prices and their probed trust scores.

輸入參數need必填

check_trust

Full trust report for one service: score, delivery/honesty rates, latency, and recent probes with chain-aware payment receipts. Accepts a label ("weatherpro") or full name ("weatherpro.agentindex.eth").

輸入參數name必填probes

resolve_data_need

End-to-end selection: describe a task, get back the single best service to pay (plus ranked alternatives and any services to avoid). Use this before spending money over x402.

輸入參數task必填

get_verified_data

One call: pick the most-trusted service for a need, fetch the data from it, and return the data together with that provider's trust score and its latest on-chain probe receipt as proof. Use when you want the answer AND a record of why the source was trusted. Scam / low-trust providers are never selected.

輸入參數need必填

版本歷史

1
  1. v0.2.0最新Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。

其他 Agentindex 整合