Telegraph

io.github.telegraphprotocol由 GitHub 账号 telegraphprotocol 发布v1.0.0更新于 Oct 24, 2026

Decentralized AI inference (weather, deepfake detection, LLMs) with x402 USDC micropayments.

已验证STDIO仅桌面金融AI 与机器学习

概览

AI 生成的概览

本地 MCP 服务器,让助手付费使用 Telegraph 去中心化 AI 推理网络,并按次自动结算 USDC 小额支付。

可以做什么
无需付费即可查看节点状态、矿工健康状况和实时矿工目录,并列出引擎可路由的矿工。运行自动路由或指定矿工的推理,例如天气预测、深度伪造检测、AI 文本检测,以及 LLM 对话、嵌入、图像生成和内容审核,按次付费。查询守护进程的健康状态、信号类别,以及按类别、来源、时间或关注度筛选的已采集信号。矿工专用工具从实时注册表自动发现并定期刷新,因此可用工具集会随时间变化。
适用场景
适合希望助手通过一个接口调用多种 AI 推理服务(包括天气、深度伪造和 AI 内容检测),并以 USDC 按请求付费、而不必分别持有各家服务商账户的场景。
运行要求
通过 stdio 在本地运行,通常使用 npx 或已构建的 Node.js 版本。需要 TELEGRAPH_NODE_URL、TELEGRAPH_ENGINE_URL 和 TELEGRAPH_DAEMON_URL,以及 TELEGRAPH_EVM_PRIVATE_KEY 或 TELEGRAPH_SOLANA_PRIVATE_KEY 中的至少一个。可选 EVM_NETWORK、SVM_NETWORK 和 REFRESH_INTERVAL_MS。需要能访问 Telegraph 各端点的网络。
安装前请注意
付费工具每次调用都会花费真实 USDC,并用你提供的私钥签名;README 建议使用仅充值所需金额的一次性钱包。私钥由本地进程持有,请妥善保护环境配置。矿工工具从远程注册表自动发现且会随时变化,请求和支付信息会发送到第三方 Telegraph 端点。

安装

在 SourceWeft 中

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

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Telegraph MCP server

Gives any MCP client (Claude Code, Claude Desktop, Cursor, Goose, Continue, ElizaOS, LangChain, ...) the Telegraph network: ask questions that the best-ranked miner answers, browse every intent, miner and ranking, and pay per ask in USDC from escrow or by x402. One setting, nine tools.

Quick start

You need Node 18+ and, for paid asks, the private key of a wallet made for this (never your main wallet). Free tools work without a key.

Claude Code

bash
claude mcp add telegraph -e TELEGRAPH_PRIVATE_KEY=0xyour_key -- npx -y @telegraphprotocol/telegraph-protocol-mcp

Claude Desktop, Cursor and most other clients (claude_desktop_config.json, ~/.cursor/mcp.json, ...)

json
{  "mcpServers": {    "telegraph": {      "command": "npx",      "args": ["-y", "@telegraphprotocol/telegraph-protocol-mcp"],      "env": { "TELEGRAPH_PRIVATE_KEY": "0xyour_key" }    }  }}

Then ask your agent things like "what is the BTC price?", "which miners serve weather and how do they rank?" or "how much is in my Telegraph escrow?". More client configs are in examples/.

Settings

VariableDefaultWhat it is
TELEGRAPH_PRIVATE_KEYnoneWallet that pays for asks. Without it only the free tools work. (TELEGRAPH_EVM_PRIVATE_KEY, the v1 name, also works.)
TELEGRAPH_URLhttps://devnode.telegraphprotocol.comThe node (Telegraph beta 2)
TELEGRAPH_PAYMENTautoauto: escrow first, then x402. escrow or x402: only that one
TELEGRAPH_RPC_URLpublic Sepolia RPCChain RPC, for the balance and deposit tools
TELEGRAPH_DIAMOND, TELEGRAPH_CHAIN_IDbeta 2'sThe contract that holds escrow, and its chain

Tools

ToolCostWhat it does
telegraph_ask~$0.01Ask a question (optionally an exact intent and params); the node routes it to the top live miner
telegraph_ask_minerthe miner's priceAsk one miner you choose, or call one of its endpoints directly
telegraph_find_intentsfreeSearch the 130+ intents (kinds of question)
telegraph_intentfreeOne intent's kind, params, answer fields and top miners
telegraph_find_minersfreeAn intent's miners with rank, score, price and endpoints, or a word search over all miners
telegraph_rankingfreeThe latest epoch's ranking, per intent
telegraph_accountfreeWallet USDC and ETH, and the escrow balance, debt and pending withdrawal
telegraph_depositgasMove wallet USDC into escrow (approve + depositUSDC)
telegraph_docsfreeBuilt-in guides: getting started, payments, intents and ranking, errors. Also served as MCP resources (telegraph://docs/...)

Payments

  • Escrow (used first): deposit USDC once with telegraph_deposit. Each ask carries a signature that proves intent but can't move funds. Asks are deducted at the epoch close, and a failed ask is never billed.
  • x402 (fallback): when escrow is empty, the server pays each ask from the wallet's USDC. If the ask then fails, the node credits the payment to your escrow, so it stays yours.

Details, debt and withdrawing: guides/2-payments.md.

Test funds (beta 2)

Beta 2 runs on Ethereum Sepolia. Its USDC (0xcc194e1a843B658526D0D5C431f670028582Ae17) is a test token anyone can mint with mint(yourAddress, amount) (6 decimals). Gas needs a little Sepolia ETH from a public faucet.

Security

  • Use a wallet made for this, holding only what you plan to spend.
  • The key stays in the MCP server process; the agent never sees it.
  • The server runs locally over stdio and opens no port.

Development

bash
npm install && npm run buildnode scripts/smoke.mjs                                       # free tools against the nodeTELEGRAPH_PRIVATE_KEY=0x... node scripts/smoke.mjs paid      # plus three asks (~$0.03)node scripts/smoke.mjs call telegraph_intent '{"intent":"CRYPTO_PRICE_USD"}'npx @modelcontextprotocol/inspector dist/index.js            # browse the tools

Architecture: docs/architecture.md. Problems: docs/troubleshooting.md.

来源:README.md,提交 097e3ec

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分