rubric-attested-mcp

公式

Rubric ProtocolのML-DSA-65 + Hedera認証付き価格フィードをx402支払いツールとして公開するMCPサーバー。

Rubric Attested MCPで何ができますか?

  • Fetch attested spot prices — Ask for a live Base-mainnet asset price like "ETH" or "BTC/USD" via get_attested_price, with optional proof or historical timestamp.
  • List available price feeds — Use list_attested_services to see Rubric's full x402 service catalog with routes, prices, networks, and descriptions.
  • Request verifiable price proofs — Get a signed price with the proof flag, returning a Chainlink round tuple plus commitment opening for independent recomputation.
  • Query historical attested prices — Specify an ISO-8601 timestamp with the at parameter to retrieve a past price instead of the latest one.

ドキュメント

rubric-attested-mcp

Rubric Protocolのライブで認証された価格フィードを、MCP対応エージェント(Claude Code、Cursor、Windsurfなど)向けのツールとして公開するMCPサーバーです。x402 402 -> pay -> retryフローは、Coinbase公式のx402-fetchを介して自動的に処理されます。

他の価格フィードではなくこれを選ぶ理由: すべてのレスポンスはML-DSA-65(FIPS 204耐量子)で署名され、Hedera Consensus Serviceにアンカーされています。返されるattestationIdは、rubric-protocol.com/v1/verify/:attestationIdで恒久的に独立検証可能です — 無料・公開・Rubricへの追加の信頼は不要です。

Rubric自身のエージェントIDは、ERC-8004 Identity Registry(0x8004A169FB4a3325136EB29fA0ceB6D2e539a432、Baseメインネット)にオンチェーン登録されています。

ツール

get_attested_price

有料(Baseメインネット上のx402経由で$0.02 USDC)。Baseメインネットの資産ペアのライブスポット価格を、eth_callを介してChainlinkアグリゲーターから直接読み取ります。

  • symbol(文字列、必須)— 例: "ETH""BTC/USD"
  • proof(ブール値、任意)— 生のChainlinkラウンドタプルと、独立した再計算のための開示済みコミットメントオープニングを含めます(代わりに$0.25)
  • at(文字列、任意)— 最新ではなく履歴価格のISO-8601タイムスタンプ($0.50)

list_attested_services

無料。Rubricのライブx402サービスカタログ(rubric-protocol.com/.well-known/x402.json)を返します — すべての価格設定済みルート、価格、ネットワーク、説明が含まれます。

インストール

npm install -g rubric-attested-mcp

設定

MCPクライアント設定(Claude Code、Cursor、Windsurfなど)に追加します:

{
  "mcpServers": {
    "rubric-attested": {
      "command": "rubric-attested-mcp",
      "env": {
        "RUBRIC_MCP_PAYER_KEY": "0x<your-base-mainnet-wallet-private-key>"
      }
    }
  }
}

RUBRIC_MCP_PAYER_KEYは、BaseメインネットでUSDCが資金供給されたEOA秘密鍵です — get_attested_price呼び出しの支払いを直接行います(EIP-3009 exactスキーム、スマートアカウントやバンドラーは不要)。list_attested_servicesは鍵が設定されていなくても動作します。

開発

npm install
npm run build
npm start

ライセンス

MIT