telegraph-mcp
OfficialUse this MCP server to ask Telegraph’s miner network paid questions and inspect intents, miners, rankings, account/escrow, and docs.
telegraph_ask: Ask a plain-language question, optionally with an exact intent and params; the node routes it to the best-ranked live miner and asks next miners for missing parts within a budget. Paid automatically from escrow; failed asks are not billed, and duplicate asks within a minute are not double-charged.telegraph_ask_miner: Query one specific miner by id/slug, or call one of its endpoints directly with method and payload. Paid at that miner’s price, with no fallback miner.Free discovery:
telegraph_find_intentssearches/lists intents;telegraph_intentshows an intent’s kind, params, answer fields, and top miners;telegraph_find_minerslists/search miners;telegraph_rankingshows the latest epoch’s rankings.telegraph_account: Check this server’s wallet or any address: network, wallet USDC/ETH, escrow balance, spending limits, and top-up guidance.telegraph_docs: Read built-in Telegraph guides by topic or search across the docs.
Provides tools for interacting with OpenAI's API, including chat completions, responses, embeddings, image generation, and content moderation, all with automatic x402 micropayments.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@telegraph-mcp predict the weather in Tokyo for the next 3 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Telegraph MCP server
Just want your agent to use Anjoman for outside intelligence? Install the
anjomanskill instead:npx skills add telegraphprotocol/telegraph-mcp --skill anjoman, then setANJOMAN_API_KEY. No MCP server or wallet, and it supports follow-ups, a spend cap, progress, traces and receipts. This MCP server is for direct specialist access.
Gives any MCP agent (Claude Desktop, Claude Code, Cursor, Continue, Goose, OpenClaw, LangChain, ElizaOS, ...) the Telegraph network, on your own computer. Ask a question and the best-ranked miner answers. Payment comes from your Telegraph escrow automatically: no keys, signatures or blockchain steps for you or your agent.
Start in three steps
You need Node 20 or later.
1. Set up once. In a terminal:
npx -y @telegraphprotocol/telegraph-protocol-mcp setupIt checks the network and creates a wallet just for Telegraph. You can import a key instead. The wallet is saved to ~/.telegraph/wallet.json, readable only by you. Setup then shows the address and balances, moves the USDC you choose into escrow after you confirm, and offers to add Telegraph to your agent app.
2. Restart your agent app.
3. Ask it something: "What is the BTC price? Use Telegraph." Every ask after that is paid from escrow on its own.
Top up any time with npx -y @telegraphprotocol/telegraph-protocol-mcp fund. Check balances with ... status.
Take USDC back out with ... withdraw: it requests the amount, and you run it again to collect once a ledger root covers the request.
Back up ~/.telegraph/wallet.json. It is the only copy of the key, and the escrow balance goes with it.
Related MCP server: x402engine-mcp
Adding it to an app by hand
No setting or key is needed: the server uses the wallet from setup. setup and install <app> write these for you where they can.
App | How |
Claude Code |
|
Claude Desktop, Cursor, any other MCP client | Add to |
OpenClaw |
|
Continue, Goose, LangChain, ElizaOS | Ready files in examples/ |
How paying works
The MCP server is your wallet. It runs on your machine, loads the key from
~/.telegraph/wallet.json(orTELEGRAPH_PRIVATE_KEY), and calls the node's/engine/v1/askitself. When the node asks for payment, the server signs the escrow authorization with that key and sends the ask again. The agent never sees the key or the signature.Escrow, always, by default. You deposit USDC once. The escrow signature proves you asked, but it can't move funds. Asks are charged in the epoch's ledger root, and a failed ask is never billed.
Multi-miner asks.
telegraph_asksendsmax_budget_usdc(default 260000 μUSDC, $0.26, the most the testnet node takes). When the first miner's answer misses part of the question, the node asks the next ranked miners for the rest within that budget. Escrow holds the budget while the ask runs; only the miners whose answers are used are billed, and the rest is released. The reply'sfulfillmentsays whether the answer is complete, who gave each field, and the payments.When escrow runs low, the ask is refused with a message saying how much is left and how to top up. Nothing is charged, and the wallet is never paid from silently.
No double charges. Repeating the same ask within a minute, or while it's still running, returns that answer, not a second charge.
Limits. The server won't pay more than $0.50 for one ask or $5 a day. Change them with the settings below.
x402 (paying each ask straight from the wallet's USDC) is still there, but only if you turn it on:
TELEGRAPH_PAYMENT=autofor escrow then x402, orx402for x402 only.
Details and withdrawing: guides/2-payments.md.
Settings
All optional.
Variable | Default | What it is |
|
|
|
|
| The most one ask may cost. |
|
| The most all asks may cost in a UTC day. |
|
|
|
|
| Where the wallet and the day's spending are kept |
| none | Use this key instead of the wallet file. For servers and CI. ( |
| none | An Anjoman API key ( |
|
| Where the API key is used |
| off | Also give the agent a |
|
| The node (the Telegraph testnet) |
| the testnet's (diamond | The chain and the contract that holds escrow |
Using an API key instead of a wallet
If you have an Anjoman account, you can skip the wallet. Create a key on the API keys page (https://anjoman.ai/dashboard/api-keys), deposit into your account there, and set it in your agent's settings:
{"mcpServers": {"telegraph": {"command": "npx", "args": ["-y", "@telegraphprotocol/telegraph-protocol-mcp"], "env": {"TELEGRAPH_API_KEY": "anjoman_your_key_here"}}}}No setup is needed. In key mode:
telegraph_askis a multi-miner call through your Anjoman account's agent: it splits the request across intents and miners, combines their answers and writes one reply. A question can take up to a minute.telegraph_ask_autois the node's auto-routed ask, without the agent: the node picks the top live miner and asks the next ones for what it missed. It holds a budget of $0.26 while it runs and is billed only for the miners whose answers are used.telegraph_ask_mineris a miner call: one miner you choose, with a question or one of its endpoints, at that miner's price.All three are paid from the account's escrow balance.
telegraph_accountshows the account's escrow balance and what its last jobs cost. Top up in Anjoman: this server cannot deposit.telegraph_depositis not offered: a key cannot move funds.The free tools (
telegraph_find_intents,telegraph_intent,telegraph_find_miners,telegraph_ranking,telegraph_docs) work as before.The wallet,
TELEGRAPH_PAYMENTand the per-ask and daily limits do not apply. The account's balance and the key's own limits (30 requests a minute, an optional expiry) do. Revoke the key in Anjoman to cut off an agent at once.
Treat the key like a password: it can spend your balance. Keep it in an agent's settings, not in a repository.
Tools
Tool | Cost | What it does |
| ~$0.01 per miner used | Ask a question, optionally with an exact intent and params. The node routes it to the top live miner, and asks the next ones for what it missed |
| the miner's price | Miner call: ask one miner you choose, or call one of its endpoints directly |
| ~$0.01 per miner used | API key only: the node's auto-routed ask, without Anjoman's agent |
| free | Search the 130+ intents (kinds of question) |
| free | One intent's kind, params, answer fields and top miners |
| free | An intent's miners with rank, score, price and endpoints, or a word search over all miners |
| free | The latest epoch's ranking, per intent |
| free | Address, network, wallet and escrow balances, limits, spending today, and how to top up |
| free | Built-in guides, also served as MCP resources ( |
| gas | Only with |
Test funds (testnet)
The testnet runs on Ethereum Sepolia, so there's no real money. Its USDC (0xcc194e1a843B658526D0D5C431f670028582Ae17) is Telegraph's own test token, not Circle's: the escrow takes that one and no other, and telegraph_account names it. Claim it at anjoman.ai/dashboard/faucet (sign in) and send it to your Telegraph wallet, or mint it directly (mint(address,uint256), anyone can). fund points you there. Gas needs a little Sepolia ETH from a public faucet. Balances in the previous diamond (0x3624…b99b) do not carry over.
Security
The key lives in
~/.telegraph/wallet.json(mode 0600), or inTELEGRAPH_PRIVATE_KEYif you set one. It's never in an agent's config, a tool result or a log, so the agent and its model never see it through MCP.Use a wallet made for this, holding only what you plan to spend. The limits cap what the agent can spend.
By default the agent gets no tool that moves funds: deposits and withdrawals happen in your terminal, after you confirm.
That holds for the tools. An agent that can also run shell commands (Claude Code, Cursor, Goose) can read the wallet file or run
funditself, so the real protection is the dedicated wallet and the limits, not the tool list.The server runs locally over stdio and opens no port.
Development
npm install && npm run build && npm test
node scripts/smoke.mjs # free tools against the node
node scripts/smoke.mjs paid # plus three asks (~$0.03), using the setup wallet
node scripts/smoke.mjs call telegraph_intent '{"intent":"CRYPTO_PRICE_USD"}'
npx @modelcontextprotocol/inspector dist/index.js # browse the toolsArchitecture: docs/architecture.md. Problems: docs/troubleshooting.md.
Available Tools
8 toolstelegraph_accountAccountARead-only
This server's wallet (or any address): its address and network, wallet USDC and ETH, the Telegraph escrow balance that pays for asks (spendable, deposited, not yet charged, pending withdrawal), the spending limits, and how to top up. Free.
Inputs: address.
telegraph_askAsk TelegraphA
Ask the Telegraph network a question: live prices, FX, weather, web and academic search, security, code review, compliance and 100+ other intents. The node routes it to the best-ranked live miner and returns its answer in the intent's fields. When that answer misses part of the question, the next ranked miners are asked for the rest, within a budget (TELEGRAPH_MAX_BUDGET_USDC). Each miner whose answer is used costs its price, about $0.01, paid automatically from the Telegraph escrow balance (a failed ask is never billed; repeating the same ask within a minute is not paid twice). fulfillment says whether the answer is complete, which miner gave each field, and the payments.
Inputs: intent, params, question.
telegraph_ask_minerMiner callA
Ask one specific miner (by id or slug from telegraph_find_miners) instead of letting the node pick. Send a question (with intent when the miner serves several), or call one of its endpoints directly with endpoint, method and payload (the raw answer comes back). No fallback miner is tried. Paid at that miner's price, like telegraph_ask.
Inputs: miner (required), intent, method, params, +3 more.
telegraph_docsTelegraph docsCRead-only
How Telegraph works: getting started, payments, intents and ranking, errors. Free.
Inputs: topic, search.
telegraph_find_intentsFind intentsARead-only
Search the intents (kinds of question) the network answers, with how many miners serve each. Free. Without search, lists every intent name.
Inputs: limit, search.
telegraph_find_minersFind minersARead-only
Miners for an intent, best-ranked first, with status, price and rank; or miners whose name or description match some words. Free.
Inputs: limit, intent, search.
telegraph_intentIntent detailsARead-only
One intent: its kind (deterministic, hybrid or judgment), the params an ask can send, the fields the answer comes back in, and its top-ranked miners. Free.
Inputs: intent (required).
telegraph_rankingMiner rankingARead-only
The latest epoch's miner ranking (scores from the network's own checks), for one intent or the top few of every intent. Asks go to the top live miner. Free.
Inputs: limit, intent.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
telegraph_ask vs telegraph_ask_miner is explicitly delineated (network routing with fallback vs a single named miner), and the discovery tools partition cleanly into search (find_intents/find_miners) vs detail (intent/ranking). The only mild friction is find_intents vs intent and find_miners vs ranking, where an agent must infer 'search/list' vs 'single resource or scores', but the descriptions make that distinction clear enough.
All tools share a telegraph_ prefix and snake_case, with verb_noun forms for discovery (find_intents, find_miners) and actions (ask, ask_miner). The deviation is that several tools are bare nouns (account, docs, intent, ranking) used as getters, which is readable but not a single uniform pattern.
Eight tools is well within a healthy range for a paid Q&A/escrow network client. Each tool earns its place: account/balance, four free discovery tools, docs, and the two paid ask variants, with no filler.
Coverage spans the full client lifecycle: account/escrow status, intent and miner discovery, ranking, documentation, and both broad and targeted paid asks with per-field fulfillment and payment reporting. The main gaps are no explicit deposit/withdraw or top-up action (only instructions via telegraph_account) and no way to list past asks or payments outside a single response, which agents must work around.
Maintenance
Related MCP Connectors
Remote MCP server exposing 330 production AI-agent services for web/data processing, validation, AI utilities, blockchain/crypto utilities, and x402 pay-per-use access.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Paid deterministic utilities and automation services for AI agents via MCP and x402.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server that enables AI agents to access paid AI inference and web tools via HTTP 402 micropayments in USDC on Base, using the agent's wallet as identity.36122 npmMIT
- AlicenseBqualityCmaintenanceMCP server providing AI agents access to 38 pay-per-call APIs (LLM, image, code, audio, crypto, web, IPFS) via HTTP 402 micropayments in USDC/USDm.22140 npm1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for the x402 protocol that lets AI agents discover and call payment-gated HTTP APIs automatically.Apache 2.0
- AlicenseBqualityDmaintenanceAn MCP server providing 22 pay-per-call utility tools for AI agents (scrape, validate, embed, store, moderate, notify, convert, prevent loops) without accounts or API keys, using USDC payments via the x402 protocol.1756 npm1MIT