Agent Margin Router

io.github.AgentMarginRouterPublished by GitHub account AgentMarginRouterv0.6.0Updated Oct 24, 2026

38 x402 pay-per-call tools for AI agents (USDC/USDT on Base): web, crypto, on-chain, geo, packages

The publisher's own server: 370.ai — AI Gateway: 100+ Chat Models, Image & Speech Generation

VerifiedStreamable HTTPWeb executableWeb Search & ScrapingFinanceDeveloper Tools

Overview

AI-generated overview

Remote MCP server offering 38 pay-per-call tools for web extraction, crypto and on-chain data, DNS, geo and package lookups, billed in USDC/USDT on Base.

What you can do
Extract and convert web content: clean page extraction, HTML to Markdown, crawling, sitemaps, metadata, URL health checks, PDF text, RSS and YouTube transcripts, plus web and news search, Hacker News, Reddit, Wikipedia and arXiv lookups, and SEO audits, email validation, DNS/WHOIS/RDAP and IP geolocation, and npm/PyPI package intelligence and GitHub repo summaries, and crypto and on-chain data: token prices, OHLCV, DEX prices, spreads, gas fees, wallet and ERC-20 balances, transaction status, ENS, DeFi yields and TVL, fear and greed, and fiat currency conversion.
When to use it
Useful when an assistant needs many small, unrelated data lookups (web pages, crypto markets, on-chain state, domains, packages) without managing separate API keys, and when per-call crypto payment is acceptable.
Requirements
A remote streamable HTTP endpoint; no API key or signup. Each paid call is settled in USDC or USDT on Base via x402, so a funded wallet able to sign x402 payments is needed; three free calls per wallet are offered.
Before you install
Most tools are paid per call in USDC/USDT on Base, so usage spends real funds; best_price charges a commission on the savings it finds. Tools fetch arbitrary public URLs and send queries to third-party data sources. No authentication is declared, so payment is tied to the calling wallet.

Installation

In SourceWeft

  1. Open Agent Margin Router in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.AgentMarginRouter%2Fagent-margin-router/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "agent-margin-router": {
      "type": "http",
      "url": "https://agent-margin-router-production.up.railway.app/mcp"
    }
  }
}

README

This repository has no README.

Tools

53

extract_clean

Extract Clean

Clean page extraction from any public URL: title, meta description, main text, JSON-LD, language. Optional `schema` keeps only the listed top-level keys. Apify (JS-rendered) with direct-fetch fallback. Pay per call with USDC or USDT on Base via x402 – no API key, no signup. 3 free calls per wallet.

Parametersurlrequiredschemawalletapi_keyx_paymentinstructions

market_spread

Market Spread

Cross-exchange crypto spread from live tickers: gross spread, fees, modelled slippage, transfer cost and net edge in bps for a given trade size. Ticker/volume based (no full order book). Pay per call with USDC or USDT on Base via x402 – no API key, no signup. 3 free calls per wallet.

Parametersassetrequiredquotewalletapi_keysize_usdbuy_venuerequiredx_paymentsell_venuerequiredmax_age_seconds

gas_fees

Gas Fees

Live EIP-1559 gas fees (slow/standard/fast tiers) plus USD cost per transaction type (transfer, ERC-20 transfer, swap, NFT mint) for Base, Ethereum, Arbitrum, Optimism and Polygon. Aggregated from public RPC nodes – no API key. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterschainwalletapi_keyx_paymentmax_age_seconds

best_price

Best Price

Best-price router: queries several independent gas-price sources in parallel, returns the cheapest quote and charges a configurable share of the savings (average - best) as commission. Response includes the full breakdown (best_price, average_price, savings_gross, provision, user_pays) for Base, Ethereum, Arbitrum, Optimism and Polygon. No API key. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterschainwalletapi_keyx_payment

token_price

Token Price

Multi-venue median spot price for any major crypto asset (Binance, Coinbase, Kraken, CoinGecko) with min/max, deviation and confidence score – one call instead of four. No API key. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersassetrequiredquotevenueswalletapi_keyx_paymentmax_age_seconds

wallet_balance

Wallet Balance

Native + stablecoin balances (ETH, USDC, USDT, DAI, WETH) of any EVM wallet with USD valuation, read directly from public RPC nodes on Base, Ethereum, Arbitrum, Optimism or Polygon. No API key. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterschaintokenswalletaddressrequiredapi_keyx_payment

email_validate

Email Validate

Validate an email address: RFC syntax, MX/A records via DNS-over-HTTPS, disposable and free-provider detection, role-account flag, deliverability score and verdict. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersemailrequiredwalletapi_keycheck_mxx_payment

dns_whois

DNS + WHOIS

DNS records (A, AAAA, MX, NS, TXT, CNAME, SOA, CAA) via DNS-over-HTTPS plus RDAP/WHOIS registration data (registrar, created/expires, status, nameservers, DNSSEC). Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersdomainrequiredwalletapi_keyx_paymentrecord_typesinclude_whois

pdf_text

PDF Text

Extract clean text (per page + full) and metadata from any public PDF URL up to 25 MB / 200 pages. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersurlrequiredpageswalletapi_keymax_pagesx_payment

seo_check

SEO Check

On-page SEO audit of any URL: title, meta description, canonical, headings, images without alt, links, Open Graph, structured data, robots.txt/sitemap, prioritized issues and a 0-100 score with grade. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersurlrequiredwalletapi_keyx_paymentcheck_robots

defi_yields

DeFi Yields

Live DeFi pool yields (APY, TVL, stablecoin flag) across 100+ chains and protocols from DefiLlama. Filter by chain, asset, project, minimum TVL; sorted by APY. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersassetchainlimitwalletapi_keyprojectx_paymentmin_tvl_usdstablecoins_only

currency_convert

Currency Convert

Fiat currency conversion with ECB reference rates (30+ currencies): amount, source currency, one or many targets. Returns rates, converted amounts and rate date. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterstorequiredfromrequiredamountwalletapi_keyx_payment

geo_ip

Geo IP

IP geolocation for IPv4/IPv6: country, region, city, coordinates, timezone, ASN, ISP/org, EU flag, private-range detection. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersiprequiredwalletapi_keyx_payment

rss_feed

RSS Feed

Fetch and parse any RSS 2.0 or Atom feed into clean JSON: title, link, published date, author, summary, optional full text content and categories per item. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersurlrequiredwalletapi_keymax_itemsx_paymentinclude_content

crypto_ohlcv

Crypto OHLCV

Historical OHLCV candles for any major crypto pair (Binance, Coinbase fallback): intervals 1m-1w, up to 500 candles, with period summary (high, low, volume, change %). Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterslimitquotesymbolrequiredwalletapi_keyintervalx_payment

ens_resolve

ENS Resolve

Resolve an ENS name to its Ethereum address plus text records (url, com.twitter, avatar, ...) via on-chain calls. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersnamerequiredwalletapi_keytext_keysx_payment

html_to_markdown

HTML to Markdown

Convert any public web page into clean, LLM-ready Markdown: main content only (boilerplate, nav and ads removed), headings, lists, tables and optional links/images preserved. Trafilatura extraction with markdownify fallback, SSRF-guarded fetch, up to 3 MB HTML. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersurlrequiredwalletapi_keyx_paymentinclude_linksinclude_images

youtube_transcript

YouTube Transcript

Fetch the transcript of a YouTube video (manual or auto-generated captions) as timestamped segments plus full text, with language preference and English fallback. Accepts a video id or any YouTube URL. No API key, no download. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterswalletapi_keylanguagevideo_idrequiredx_paymentinclude_segments

github_repo_summary

GitHub Repo Summary

One-call overview of any public GitHub repository: description, stars, forks, open issues, primary language and language split (%), topics, license, default branch, README excerpt and the 5 most recent commits. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersreporequiredwalletapi_keyx_paymentinclude_readmeinclude_commits

dex_price

DEX Price

Live DEX price, 24h change, volume and liquidity for any on-chain token (long-tail tokens not listed on CEXs) by contract address or symbol on Base, Ethereum, Arbitrum, Optimism, Polygon, BSC, Avalanche or Solana, with the top liquidity pairs per DEX (DexScreener). Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterschainsymbolwalletapi_keymax_pairsx_paymenttoken_address

tx_status

Transaction Status

Status of any EVM transaction on Base, Ethereum, BSC, Polygon, Arbitrum or Optimism: success/failed/pending, block number, confirmations, gas used, effective gas price, fee, from/to/value and all ERC-20 Transfer events decoded from the receipt logs (contract, symbol, decimals, amount). Public JSON-RPC nodes with fallback. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterschainwalletapi_keytx_hashrequiredx_paymentmax_age_seconds

erc20_balance

ERC-20 Balance (Multicall)

Balances of up to 20 arbitrary ERC-20 tokens for one wallet in a single Multicall3 round-trip: raw and decimal-formatted balance, decimals and symbol per token, on Base, Ethereum, BSC, Polygon, Arbitrum or Optimism. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterschainwalletapi_keyx_paymentwallet_addressrequiredcontract_addressesrequired

defi_tvl

DeFi TVL

Total value locked of a DeFi protocol (by DefiLlama slug: TVL, 1d/7d change, market cap, mcap/TVL ratio, TVL per chain, category) or of a whole chain (TVL, native token, protocol count, top-10 protocols). Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterschainwalletapi_keyprotocolx_payment

fear_greed

Crypto Fear & Greed

Crypto market sentiment: the daily Fear & Greed index (0-100) with classification, 1d/7d change and up to 90 days of history from alternative.me. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterslimitwalletapi_keyx_payment

agent_wallet_snapshot

Agent Wallet Snapshot

One-call wallet overview for autonomous agents: native balance, ERC-20 balances (default stablecoins + WETH, or any contracts you pass), current gas price, tx count, contract check and USD values incl. total – bundles what would otherwise be 5+ RPC calls. Base, Ethereum, BSC, Polygon, Arbitrum, Optimism. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterschainwalletapi_keyx_paymentwallet_addressrequiredtoken_contracts

url_status

URL Status

Health check for any public URL: HTTP status, full redirect chain, response time, content type, SSL certificate validity/expiry/issuer and a security-header audit (HSTS, CSP, X-Frame-Options, …) with score. SSRF-guarded (private/internal targets are rejected). Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersurlrequiredwalletapi_keyx_payment

web_crawl

Web Crawl

Mini crawler: fetches a start page and follows same-domain links breadth-first (max 10 pages), returning clean LLM-ready Markdown, title, word count and discovered links per page; honours robots.txt by default. SSRF-guarded. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterswalletapi_keymax_pagesstart_urlrequiredx_paymentfollow_linksinclude_linksrespect_robots

metadata

Page Metadata

Structured metadata for any public page in one call: title, meta description/keywords, canonical URL, HTML lang, charset, favicon (absolute URL) and the FULL OpenGraph (all og:*) and Twitter-Card (all twitter:*) tag sets. Ideal for link previews / unfurling and agent research. SSRF-guarded. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersurlrequiredwalletapi_keyx_payment

sitemap_urls

Sitemap URLs

Parse a sitemap into the real URL list: accepts a direct sitemap.xml, a <sitemapindex> (recursed, bounded) or a site root (robots.txt Sitemap: lines, then /sitemap.xml as fallback). Returns each URL with lastmod, changefreq and priority. SSRF-guarded. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersurlrequiredwalletapi_keymax_urlsx_payment

wikipedia_summary

Wikipedia Summary

Clean article summary from Wikipedia in any language: title, short description, extract (capped), canonical URL, thumbnail and coordinates; falls back to search when the title is fuzzy. Content CC BY-SA 4.0. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterstitlerequiredwalletapi_keylanguagemax_charsx_payment

npm_package

npm Package

npm package intelligence: latest version, license, repository, maintainers, dependency count, publish dates and weekly downloads – ideal for dependency vetting by coding agents. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersnamerequiredwalletapi_keyx_payment

pypi_package

PyPI Package

PyPI project intelligence: latest version, summary, license, author, project URLs, Python requirement, declared dependencies, release count and last release date. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersnamerequiredwalletapi_keyx_payment

geocode

Geocode

Turn a place name or address into coordinates, bounding box, address parts and OSM type using OpenStreetMap Nominatim (ODbL); cached 24h. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersqueryrequiredwalletapi_keylanguagex_paymentmax_resultscountry_codes

domain_rdap

Domain RDAP

Domain registration data via RDAP (the WHOIS successor): registered flag, registrar, status, registration/expiry events, nameservers and DNSSEC – for availability checks and due diligence. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersdomainrequiredwalletapi_keyx_payment

dns_lookup

DNS Lookup

Resolve any DNS record type (A, AAAA, CNAME, MX, NS, TXT, SOA, SRV, CAA, PTR) over DNS-over-HTTPS with TTLs and DNSSEC validation flag. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersnamerequiredwalletapi_keyx_paymentrecord_type

contract_info

Contract Info

Smart-contract metadata from Blockscout for Base, Ethereum, Optimism or Arbitrum: verification status, name, compiler, proxy/implementation, creator, creation tx, token details and function/event names. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterschainwalletaddressrequiredapi_keyx_payment

weather

Weather

Current conditions plus a daily forecast (up to 16 days) for any place name or lat/lon via Open-Meteo (key-less, CC BY 4.0); temperature in °C or °F, cached 30 min. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterswalletapi_keylatitudelocationlongitudex_paymentforecast_daystemperature_unit

holidays

Public Holidays

Official public holidays for a country and year via Nager.Date (key-less): date, local + English name, whether it is nationwide, and sub-region counties. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersyearrequiredwalletapi_keyx_paymentcountry_coderequired

robots_check

Robots.txt Check

Answer 'may this user-agent crawl this URL?' by fetching and parsing the site's robots.txt: allowed flag, crawl-delay, request-rate and declared sitemaps. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersurlrequiredwalletapi_keyx_paymentuser_agent

feed_discover

Feed Discover

Find the RSS/Atom feed URLs for a website from its HTML link tags, with a common-path fallback (/feed, /rss.xml, ...). Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersurlrequiredwalletapi_keyx_payment

text_stats

Text Stats

Readability and text statistics for raw text or a fetched page: word/sentence/syllable counts, Flesch Reading Ease, Flesch-Kincaid grade, and reading/speaking time. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersurltextwalletapi_keyx_payment

timezone

Timezone & Local Time

Current local time, UTC offset, DST status and abbreviation for any IANA timezone name, or resolve a place name to its timezone and local time. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterswalletapi_keylocationtimezonex_payment

qr_generate

QR Code Generator

Generate a QR code from any text or URL and return it as a scalable SVG image plus a data-URI. Pure key-less generation, no third-party service. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersdatarequiredscaleborderwalletapi_keyx_paymenterror_correction

uuid

UUID Generator

Generate one or more RFC 4122 UUIDs (random v4, or deterministic v5 from a namespace and name). Key-less, local generation. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parametersnamecountwalletapi_keyversionnamespacex_payment

hash

Hash Generator

Compute cryptographic hash digests (MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512) of any text. Key-less, local computation. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Parameterstextrequiredwalletapi_keyx_paymentalgorithms

media_convert

Media Convert

Convert or transcode a public audio/video/image file via a self-hosted FFmpeg container: pass a source URL and a target format (mp3, mp4, webm, wav, png, …) and receive a public output URL. Pay per call with USDC or USDT on Base via x402 – no API key, no signup. 3 free calls per wallet.

Parametersurlrequiredwalletapi_keyoperationx_paymenttarget_formatrequired

health

Service health

Free. Returns AMR service status, provider health and cache metrics.

Takes no parameters.

payment_info

Payment requirements

Free. Returns the x402 payment requirements (price, USDC/USDT contract, pay-to wallet, network) for a given tool so an agent can construct an x402 payment.

Parameterstoolrequired

Version history

1
  1. v0.6.0LatestSep 16, 2026

Score

75% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts

    Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.

  • License10 pts

    Declare a license in the repository or the registry entry.

Other Router integrations