agentpay
Provides DNS record lookups via the 1.1.1.1 DNS-over-HTTPS resolver, enabling queries for A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, PTR, and SRV records through the lookup_dns tool.
Supports x402 payments in USDC on Algorand, allowing AI agents to pay per API call or purchase prepaid credits using Algorand's USDC ASA.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agentpaylook up the full domain report for stripe.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AgentPay — pay-per-call APIs and MCP tools for AI agents
Web extraction, domain/network intelligence, and document tools that agents can use without signing up. Pay per request with x402 in USDC on Base or Algorand, or prepay credits for an API key. Every product is available as a REST API and as a remote MCP server.
Product | What it does | Base URL | MCP server |
Web Extract | Any URL → clean, LLM-ready markdown + title, metadata, Open Graph, canonical URL and links |
|
|
Domain & Network Lookup | DNS records, WHOIS/RDAP registration, IP ownership + reverse DNS, one-call domain report (email provider, SPF/DMARC, hosting) |
|
|
Doc Tools | PDF → per-page text, RSS/Atom/JSON Feed → JSON, sitemap (via robots.txt) → URL list |
|
|
Bundle | All of the above on one host |
|
|
Machine-readable docs: /llms.txt ·
/openapi.json ·
/.well-known/x402
Endpoints and pricing
Same price on Base and Algorand. Invalid input is rejected before payment, and x402 payments are only settled if the call succeeds — failed calls cost nothing.
Endpoint | Description | Price (USDC) |
| Web page → markdown, metadata, links ( | $0.005 |
| A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, PTR, SRV | $0.005 |
| Registrar, created/updated/expires, status, nameservers (RDAP) | $0.01 |
| Network owner, range, country, reverse DNS | $0.01 |
| Registration + DNS + email provider + SPF/DMARC + hosting | $0.02 |
| Per-page text from a PDF URL (≤20 MB) | $0.01 |
| RSS / Atom / JSON Feed → normalized items | $0.005 |
| Site URLs from sitemaps, following robots.txt and indexes | $0.005 |
| Prepaid credits ($1–$500) → API key. +10% bonus at $5, +20% at $20 | = amount |
Related MCP server: @warppay402/warppay402-mcp-tools
Paying
x402 (no account)
Call any endpoint. You get 402 Payment Required with a base64 PAYMENT-REQUIRED header (x402 v2) offering:
Base —
eip155:8453, USDC0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, exact scheme (EIP-3009)Algorand —
algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k, USDC ASA31566704, exact scheme
Any x402 v2 client handles this automatically:
import { wrapFetchWithPaymentFromConfig } from '@x402/fetch';
import { ExactEvmScheme } from '@x402/evm';
import { privateKeyToAccount } from 'viem/accounts';
const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: 'eip155:8453', client: new ExactEvmScheme(privateKeyToAccount(process.env.EVM_PRIVATE_KEY)) }],
});
const res = await fetchWithPayment('https://agentpay-lookup.agentpay-apis.workers.dev/lookup/v1/domain-report?domain=example.com');
console.log(await res.json());Full example for both networks: examples/x402-client.mjs.
Prepaid credits (fastest for repeated use)
GET https://agentpay.agentpay-apis.workers.dev/credits/buy?usd=5 (paid once via x402) returns { "apiKey": "ak_…" }.
Send Authorization: Bearer ak_… on any endpoint or MCP server. Failed calls are refunded automatically.
Balance: GET /credits/balance. Algorand holders can also pay by transfer: examples/buy-credits.mjs.
Using the MCP servers
Remote MCP over Streamable HTTP. Listing tools is free; tool calls are paid via x402
(params._meta["x402/payment"], per the x402 MCP transport) or with a credits key header.
Claude Code
claude mcp add --transport http agentpay-lookup https://agentpay-lookup.agentpay-apis.workers.dev/mcp --header "Authorization: Bearer ak_..."Cursor / Claude Desktop / any client with remote MCP support
{
"mcpServers": {
"agentpay-extract": { "url": "https://agentpay-extract.agentpay-apis.workers.dev/mcp", "headers": { "Authorization": "Bearer ak_..." } },
"agentpay-lookup": { "url": "https://agentpay-lookup.agentpay-apis.workers.dev/mcp", "headers": { "Authorization": "Bearer ak_..." } },
"agentpay-tools": { "url": "https://agentpay-tools.agentpay-apis.workers.dev/mcp", "headers": { "Authorization": "Bearer ak_..." } }
}
}MCP server | Tools |
agentpay-extract |
|
agentpay-lookup |
|
agentpay-tools |
|
agentpay (bundle) | all 8 |
Example responses
GET /lookup/v1/whois?domain=anthropic.com
{ "domain": "anthropic.com", "registered": true, "registrar": "MarkMonitor Inc.", "created": "2001-10-02T18:10:32Z",
"expires": "2033-10-02T18:10:32Z", "status": ["client delete prohibited", "client transfer prohibited"],
"nameservers": ["isla.ns.cloudflare.com", "randy.ns.cloudflare.com"], "source": "RDAP" }GET /lookup/v1/ip?ip=1.1.1.1
{ "ip": "1.1.1.1", "version": 4, "reverseDns": ["one.one.one.one."],
"network": { "name": "APNIC-LABS", "range": "1.1.1.0 - 1.1.1.255", "country": "AU", "organization": "APNIC Research and Development" } }Data sources
DNS over HTTPS (Cloudflare 1.1.1.1), IANA RDAP bootstrap → authoritative registry RDAP servers, and the regional internet registries. Web, PDF, feed and sitemap tools fetch the URL you provide at request time.
Support
Open an issue in this repository.
This server cannot be deployed
Maintenance
Related MCP Connectors
Pay-per-use tool API for AI agents. Free tier, x402 USDC micropayments, or API key.
Pay-per-call (x402/USDC-Base) web + crypto data tools for AI agents: audit, extract, crypto, DeFi.
Pay-per-call data APIs for AI agents. USDC on Base via x402. 33 tools, no signup.
Pay-per-call web scraping for AI agents via x402 on Base USDC. Six tools, no signup.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceWebsite intelligence tools for AI agents. Ten pay-per-call tools via x402 micropayments (USDC on Base) — no accounts, no API keys.1MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to use pay-per-use web scraping, Base blockchain analytics, and PDF text extraction tools, monetized via x402 USDC micropayments.-
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to call 45 micro-priced utility tools via x402 micropayments on Base, covering search, screenshots, OCR, PDFs, WHOIS, geo-IP, and more without API keys.-
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to pay per tool call in USDC via the x402 micropayment protocol, with no API keys or subscriptions required.-