2s
OfficialProvides tools to search academic papers from arXiv, enabling retrieval of paper metadata and full-text.
Provides tools to look up airports by IATA or ICAO codes, and find the nearest airport to a given coordinate.
Provides tools to search academic papers from PubMed, enabling retrieval of biomedical literature.
Provides tools to search academic papers from Semantic Scholar, enabling retrieval of paper metadata and citations.
Provides tools to fetch Wikipedia article summaries and content.
Provides tools for validating XRP addresses as part of multi-chain cryptocurrency address validation.
2s.io SDK
Client SDK + MCP server for 2s.io — a unified JSON REST API for AI agents, paid per call in USDC on Base via x402.
This repo ships SDKs for every major agent-development language plus an MCP server for any MCP-aware host:
Language | Package | Install | Status |
TypeScript / Node |
| ✅ x402 + bearer | |
TypeScript / Node |
| ✅ MCP server, x402 + bearer | |
Python |
| ✅ x402 + bearer | |
Go |
| 🚧 bearer ready, x402 pending | |
Rust |
| 🚧 bearer ready, x402 pending |
No accounts. No API keys. No credit cards. Buyers sign an EIP-3009 USDC authorization on-the-fly, the Coinbase CDP facilitator verifies + settles in ~2 seconds on Base mainnet, and the API returns typed data. Prices start at $0.001/call.
30-second demo
TypeScript:
import { TwoS } from '@2sio/sdk'
import { privateKeyToAccount } from 'viem/accounts'
const client = new TwoS({ signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`) })
const { data } = await client.patents.search({ q: 'neural network', limit: 5 })
console.log(data.hits[0].title)Python:
from eth_account import Account
from twosio import TwoS
client = TwoS(signer=Account.from_key(os.environ["EVM_PRIVATE_KEY"]))
r = client.patents.search(q="neural network", limit=5)
print(r.data["hits"][0]["title"])30-second Claude Desktop install
{
"mcpServers": {
"2sio": {
"command": "npx",
"args": ["-y", "@2sio/mcp"],
"env": { "EVM_PRIVATE_KEY": "0x..." }
}
}
}Restart Claude. The model can now call patents.search, law.sanctions-check, ai.summarize, geocode.address, crypto.address-validate, and 30+ other paid tools — paying per call, no human in the loop.
What's behind the API
39 endpoints across:
AI: webpage summarization, translation, typed extraction, image description, screenshots
Patents: USPTO Open Data Portal search + full file-wrapper detail + document list
Law: federal/state case search, citation verification, OFAC sanctions screening, Federal Register, opinions
Geo / weather: forward + reverse geocoding, US weather by ZIP, NOAA tides, sunrise/sunset, climate stations, recent earthquakes, IP geolocation
Internet: DNS lookup, RDAP whois, URL unfurl (Open Graph), URL → clean Markdown
Wikipedia / academic papers: summaries, multi-source paper search (arXiv + PubMed + Semantic Scholar)
Crypto: multi-chain address validation (BTC, ETH, SOL, LTC, TRX, XRP, BCH), live EVM gas oracle
Airports: lookup by IATA/ICAO, nearest-airport-to-coord (OurAirports CC0, ~85k airports)
Utilities: hash computation, image compression, barcode/QR generation, countdown GIFs
Census: US Census ACS 5-year demographics by ZCTA
Account: balance + create (bearer mode)
Live catalog: https://2s.io/api/directory. OpenAPI 3.1: https://2s.io/api/openapi. Machine-discovery manifest: https://2s.io/.well-known/x402.
Safety
The SDK refuses to sign payments above a configurable
maxPriceUsd(default$0.10).Every x402 payment is a single-use EIP-3009 authorization with a 60-second deadline. No allowances are issued; a leaked key can only spend what's in the wallet at the moment of signing, only at advertised prices.
Optional
onPaymentRequestedhook lets callers approve/deny each call programmatically.
Repo layout
packages/
├── 2s-sdk/ @2sio/sdk — typed client
└── 2s-mcp/ @2sio/mcp — MCP server (depends on 2s-sdk)
examples/sdk/ minimal paying-agent samples + Claude Desktop wiringLicense
MIT. See LICENSE.
Links
API site: https://2s.io
npm:
x402 protocol: https://x402.org
MCP protocol: https://modelcontextprotocol.io
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/2s-io/sdk'
If you have feedback or need assistance with the MCP directory API, please join our Discord server