AgentPay Doc Tools

io.github.noah-silverv1.1.0Updated Oct 1, 2026

Pay-per-call PDF to text, RSS/Atom to JSON, sitemap to URLs for agents. x402 USDC, Base/Algorand.

VerifiedStreamable HTTPWeb executableFiles & StorageWeb Search & Scraping

Overview

AI-generated overview

Remote MCP server that converts PDFs to per-page text, RSS/Atom/JSON feeds to normalized items, and sitemaps to URL lists, paid per call.

What it does
AgentPay Doc Tools exposes three paid tools over Streamable HTTP: tools_pdf_text returns per-page text from a PDF URL up to 20 MB, tools_feed normalizes RSS, Atom or JSON Feed items, and tools_sitemap lists site URLs from sitemaps while following robots.txt and sitemap indexes. Listing tools is free; each tool call is billed per request. The same endpoints are also offered as REST APIs.
When to use it
Use it when an assistant needs to read PDFs, ingest feeds, or enumerate a site's URLs without building and hosting its own extraction pipeline, and when paying per call is preferable to running local parsing code.
Requirements
A remote MCP endpoint over Streamable HTTP; no local runtime or package install. Either an Authorization header with a Bearer credits API key obtained from the credits purchase endpoint, or an x402-capable client that pays per call in USDC on Base or Algorand. Network access to the endpoint and to the URLs being fetched.
Before you install
Tool calls cost money: prices range from $0.005 to $0.02 USDC per call, and credits are prepaid in amounts from $1 to $500. Paying per call with x402 requires a client holding a private key that signs USDC payments, so treat that key as sensitive. The Authorization header carries a credits API key and should be kept secret. The service fetches whatever URL you supply at request time, so avoid passing internal or private addresses.

Installation

In SourceWeft

  1. Open AgentPay Doc Tools 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.

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "agentpay-tools": {
      "type": "http",
      "url": "https://agentpay-tools.agentpay-apis.workers.dev/mcp"
    }
  }
}

README

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.

ProductWhat it doesBase URLMCP server
Web ExtractAny URL → clean, LLM-ready markdown + title, metadata, Open Graph, canonical URL and linkshttps://agentpay-extract.agentpay-apis.workers.dev…/mcp
Domain & Network LookupDNS records, WHOIS/RDAP registration, IP ownership + reverse DNS, one-call domain report (email provider, SPF/DMARC, hosting)https://agentpay-lookup.agentpay-apis.workers.dev…/mcp
Doc ToolsPDF → per-page text, RSS/Atom/JSON Feed → JSON, sitemap (via robots.txt) → URL listhttps://agentpay-tools.agentpay-apis.workers.dev…/mcp
BundleAll of the above on one hosthttps://agentpay.agentpay-apis.workers.dev…/mcp

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.

EndpointDescriptionPrice (USDC)
GET /extract/v1/page?url=Web page → markdown, metadata, links (maxChars optional)$0.005
GET /lookup/v1/dns?name=&type=A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, PTR, SRV$0.005
GET /lookup/v1/whois?domain=Registrar, created/updated/expires, status, nameservers (RDAP)$0.01
GET /lookup/v1/ip?ip=Network owner, range, country, reverse DNS$0.01
GET /lookup/v1/domain-report?domain=Registration + DNS + email provider + SPF/DMARC + hosting$0.02
GET /tools/v1/pdf-text?url=Per-page text from a PDF URL (≤20 MB)$0.01
GET /tools/v1/feed?url=&limit=RSS / Atom / JSON Feed → normalized items$0.005
GET /tools/v1/sitemap?url=&limit=Site URLs from sitemaps, following robots.txt and indexes$0.005
GET /credits/buy?usd=Prepaid credits ($1–$500) → API key. +10% bonus at $5, +20% at $20= amount

Paying

x402 (no account)

Call any endpoint. You get 402 Payment Required with a base64 PAYMENT-REQUIRED header (x402 v2) offering:

  • Base — eip155:8453, USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, exact scheme (EIP-3009)
  • Algorand — algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k, USDC ASA 31566704, exact scheme

Any x402 v2 client handles this automatically:

js
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

bash
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

json
{  "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 serverTools
agentpay-extractextract_page
agentpay-lookuplookup_dns, lookup_whois, lookup_ip, lookup_domain_report
agentpay-toolstools_pdf_text, tools_feed, tools_sitemap
agentpay (bundle)all 8

Example responses

GET /lookup/v1/whois?domain=anthropic.com

json
{ "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

json
{ "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.

Source: README.md at commit 5df9d36

Tools

0
Tool metadata has not been indexed yet.

Version history

1
  1. v1.1.0LatestOct 1, 2026