cyberneticlibrary

Access 39+ pay-per-call agent APIs on-chain

mcpmcp_serversetup L30
2s-io/sdk
What it does

Expose pay-per-call AI agent APIs as MCP tools

Best for

AI agents needing pay-per-call access to 39+ APIs (patents, sanctions, structured data extraction, gas oracle) with on-chain settlement.

Inputs
  • · Wallet address with funded private key (Base or Solana)
  • · API request parameters (patents, finance, AI, law, weather, crypto, etc.)
Outputs
  • · API response from 2s.io endpoint
  • · On-chain settlement confirmation (USDC Base or Solana)
  • · 39+ callable tools from live catalog
Requires
  • · 2s.io SDK
  • · EVM private key (Base USDC) or Solana key
  • · x402 payment protocol
Preconditions
  • · npm or npx
  • · EVM_PRIVATE_KEY or Solana private key in environment
  • · Funded wallet on Base mainnet (USDC) or Solana
  • · Claude Desktop, AgentKit, Cline, Continue, or other MCP host
Failure modes
  • · Wallet runs out of USDC mid-call (payment fails)
  • · maxPriceUsd breached (default $0.10, overridable)
  • · Private key compromise allows wallet drain at rest only (60s EIP-3009 deadline)
Trust signals
  • · EIP-3009 single-use authorizations (no spending allowances)
  • · Live catalog at 2s.io/api/directory
  • · MIT licensed, source on GitHub (github.com/2s-io/sdk)
  • · Key never sent to 2s.io (signed locally)
  • · Settles in ~2 seconds, $0.001/call minimum