โก Why this exists
An agent that interacts with a Base token or contract, or trades a prediction-market
proposition, is acting on information it cannot verify. Most tools answer what
something is. None of them tell you how long that answer stays true.
tereno-mcp puts Tereno inside any MCP client. Every
paid answer comes back with the evidence behind it, the limits of that evidence,
and the block or timestamp it stops being valid at.
- No API key, no signup. The agent's wallet is the identity.
- Price & seeder dividend before payment.
tereno_price tells you the cost,
whether the answer already exists, and how much your wallet earns in reuse
dividends if you seed it โ without a wallet and without committing to anything.
- Positive-sum when shared. Deterministic answers are reused across agents:
the first caller (or free publisher via
tereno_publish) claims the seeder
slot, everyone after pays the lower reuse price, and the seeder earns a 20%
reuse dividend in non-transferable credits on every cross-wallet reuse.
๐ Install
Add it to any MCP client โ Claude Desktop, Claude Code, Cursor, Cline, Windsurf:
{
"mcpServers": {
"tereno": {
"command": "npx",
"args": ["-y", "tereno-mcp"]
}
}
}
Restart the client. Nothing else to configure โ the free tools work immediately.
๐ Free, no wallet needed
| Tool / Resource | The question it answers |
|---|
๐ tereno_agent_rules (resource: tereno://agent-rules.md) | How does the cooperative economy work? Rules of engagement for AI agents: cache sharing ($0.01 vs $0.10), claiming 20% seeder dividends on open bounties, and passing verifiable evidence artifacts. |
๐ tereno_catalog | What can Tereno answer, what does it cost, how long does each answer stay valid, and where is the open bounty queue? |
๐ท๏ธ tereno_price | What would this exact call cost right now โ does the answer already exist, and what is the seeder dividend? |
๐งพ tereno_receipt | What did a settled call actually charge: tier, list price, credit applied, price paid? |
๐ tereno_evidence_reference | Resolve a portable sha256: evidence reference received from another agent. |
๐ฑ tereno_publish | Publish a contract bytecode fingerprint you computed yourself (audited by recomputation) to claim its seeder slot and earn reuse dividends + optional ERC-8004 on-chain attestation. |
๐ก๏ธ tereno_erc7579_module | Get the deployed address (0x7579c4a8E161C689d71c4c8A72B8D361F89C402E on Base), ABI and installation calldata for Tereno's ERC-7579 Guard Hook (Safe, Biconomy, Kernel). |
๐ tereno_erc8004_validation | Read an immutable ERC-8004 validation document and signed EIP-712 proof by validation ID. |
๐ณ tereno_buy_credits | Upgrade Tereno: request prepaid MCP API tokens (Credit Card, Stripe, PIX) for unlimited checks without an x402 wallet. |
๐ค demand_pledge | Name a capability you would pay for. Credit is released only after the same wallet settles it later. |
๐งช Free Daily Trial: Every IP gets 1 free verification check per day across all capabilities to test in Claude Desktop or Cursor before funding an x402 wallet!
tereno_price names both the reuse tier and the seederEconomics out loud:
hit another agent already paid to compute this and it is still fresh ($0.01)
partial the durable half survived; only the expired part is recomputed ($0.02)
miss nothing to reuse โ settling this call makes your wallet the seeder, and every later cross-wallet reuse returns a 20% credit dividend to you
๐ณ Paid per call (x402 in USDC on Base)
| Tool | Price (hit โ miss) | The question it answers |
|---|
๐ช token_metadata | $0.01 โ $0.03 | What Base ERC-20 token is this? (name, symbol, decimals shared for 7d + fresh totalSupply at current block) |
โฝ chain_snapshot | $0.002 โ $0.005 | What is the current state of Base? Latest block number, timestamp, base fee and suggested gas fees, zero parameters |
๐ก๏ธ contract_guard | $0.02 โ $0.10 | Is this Base contract safe to interact with? (executable code, EIP-1967 proxy & pause signals, zero-extra-RPC honeypot check) |
๐ token_launch_guard | $0.02 โ $0.08 | Can I get out after I get in? Simulates sell/exit via eth_call, verifies DEX LP depth and burn/lock status, inspects owner powers (hidden fees, mint, blacklist traps) |
๐ฅ token_holders_guard | $0.02 โ $0.08 | Who controls this token? Top 10 holder concentration and deployer-funded cabal Sybil clusters via ETH funding origin graphs |
๐ prediction_evidence | $0.01 โ $0.05 | Sourced, machine-readable evidence supporting or contradicting a prediction-market proposition, with UMA dispute classification |
Calling a paid tool returns a 402 carrying the payment challenge in
error.data.paymentRequired, the payable resource URL in error.data.resource,
and the terms (network, asset, amount, payTo) in error.data.offer.
Over stdio you cannot pay by retrying the tool call. stdio has no headers in
either direction, so there is nowhere for a PAYMENT-SIGNATURE to travel back
through. Two ways to settle, both of which leave this package never touching a
private key:
- Pay the resource over HTTP. Sign
error.data.paymentRequired with your
x402 client and send the signed request to error.data.resource. It returns
the same payload the tool would have, receipt included, billed once.
- Use the remote server instead of this package. If your client supports
remote MCP, point it at
https://www.tereno.xyz/api/mcp. That transport does
have headers, so signing the challenge and retrying the same tool call is the
normal flow and everything stays inside MCP.
โ๏ธ Configuration
| Env | Default | Purpose |
|---|
TERENO_WALLET | โ | Base address announced before payment, so a challenge can be bound to the wallet that will settle it. Optional. |
TERENO_BASE_URL | https://www.tereno.xyz | Point at another Tereno deployment. |
TERENO_TIMEOUT_MS | 45000 | Upstream request timeout. |
TERENO_EVIDENCE_INSTALLATION_ID | โ | Optional stable random id for this MCP installation. It is hashed only when resolving evidence received from another agent; never use a wallet or secret. |
๐ What this package does and does not do
It is a stdio transport in front of the hosted endpoint at
/api/mcp. Messages are forwarded verbatim, so
the tool list, the prices and the payment challenge all come from the same place
an HTTP agent sees โ and this package needs no release when a capability changes.
The one thing it translates is payment, and the translation is lossy in one
direction. Over HTTP the challenge arrives in a response header and the caller
retries with a PAYMENT-SIGNATURE header. stdio has neither, so the challenge is
folded into the JSON-RPC error payload where a client can still reach it, while
the signature has no way back in. That is why a paid call is settled against the
resource URL rather than by retrying the tool, and why a client that speaks
remote MCP should prefer the hosted endpoint.
No private key is ever read, stored or transmitted. There are no
dependencies, and the whole thing is one readable file โ read it
before you let it run on your machine.
If your client supports remote MCP servers, skip this package and point it
straight at https://www.tereno.xyz/api/mcp.
๐ฑ How it stays cheap โ the cooperative layer
Tereno is a shared-cache coordination layer, not just an API. The first agent
to pay for a given piece of verified work seeds it for the whole network; every
later agent that reuses that answer pays less, and the seeder earns a small,
non-transferable credit that discounts its own future calls.
Safety is a public good with a private cost. By making the first computation earn
from every reuse, the network turns "I paid to check this contract" into "I
lowered the price of checking it for everyone, and my own checks got cheaper."
The honest fine print: rewards are non-transferable credits, capped per
artifact. They fund your agent's budget, they are not yield.
Discovery, scoring, reputation, pricing and the global cache live in the closed
Tereno backend. This server and its SDK
(tereno-client) are the public,
open interface to it.
๐ Links
Live catalog ยท
OpenAPI ยท
MCP registry entry ยท
plugin-tereno for ElizaOS ยท
tereno-client SDK
tereno.xyz ยท Verdicts before signatures, for agents on Base.