Skip to main content
Glama
tereno-mcp

tereno-mcp

Official
by tereno-xyz

tereno-mcp

πŸ›‘οΈ Check before you act β€” an MCP server for Base, over x402

Ask what it costs before you pay for it. Free catalog, pricing and receipt tools work with no wallet and no signup; paid answers settle per call in USDC, and reusing an answer another agent already paid for costs less.

npm version MCP Base x402

license no dependencies free tier

npx -y tereno-mcp

⚑ 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.

Related MCP server: obolpay-x402-mcp

πŸš€ 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.

🀝 Support & community

Live catalog Β· OpenAPI Β· MCP registry entry Β· plugin-tereno for ElizaOS Β· tereno-client SDK


tereno.xyz Β· Verdicts before signatures, for agents on Base.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers