Official clients handle payment
Paid routes need readfetch-client, @readfetch/client, or @readfetch/mcp-x402-proxy — see clients and REPOS.md.
Integrations
Paid routes need readfetch-client, @readfetch/client, or @readfetch/mcp-x402-proxy (start with free POST /v1/probe or readfetch_probe). 14 endpoints at https://readfetch.com. Repo map: REPOS.md.
Streamable HTTP, JSON-RPC 2.0, one tool per endpoint.
POST https://readfetch.com/mcp speaks the Model Context Protocol over streamable HTTP. Tools are named readfetch_<endpoint> — readfetch_text, readfetch_scrape, readfetch_probe — and tools/list is generated from the same catalog as the REST surface, so the two cannot drift.
Default path: readfetch_probe then readfetch_text with the same url. If challenge: true, use readfetch_scrape. After a confusing call, readfetch_feedback — bind with request_id from X-Request-Id.
Tool calls ride the same 402 flow: an unpaid call comes back as isError with the quote in structuredContent. readfetch_probe is free — no wallet, no payment header. Most hosts cannot attach PAYMENT-SIGNATURE on paid tools — use the signing proxy below or REST with @readfetch/client / readfetch-client. Tool list: /.well-known/mcp.json.
{
"mcpServers": {
"readfetch": {
"command": "npx",
"args": ["-y", "@readfetch/mcp-x402-proxy@latest"],
"env": { "EVM_PRIVATE_KEY": "0x…" }
}
}
}
Point an MCP host at https://readfetch.com/mcp only if it can forward PAYMENT-SIGNATURE. Otherwise use the stdio proxy above (npx @readfetch/mcp-x402-proxy) — same paid REST surface with automatic x402. Source: GitHub. Probe-only: omit EVM_PRIVATE_KEY — readfetch_probe is free; add a key for paid tools.
Paste one block, restart the client. Same package everywhere: @readfetch/mcp-x402-proxy@latest.
Remote MCP (ChatGPT, hosted bridges) cannot attach PAYMENT-SIGNATURE — do not use https://readfetch.com/mcp alone for paid tools. Use this stdio proxy or REST clients. Full matrix: HOSTS.md on GitHub.
{
"mcpServers": {
"readfetch": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@readfetch/mcp-x402-proxy@latest"]
}
}
}
{
"mcpServers": {
"readfetch": {
"command": "npx",
"args": ["-y", "@readfetch/mcp-x402-proxy@latest"]
}
}
}
{
"servers": {
"readfetch": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@readfetch/mcp-x402-proxy@latest"]
}
}
}
{
"mcpServers": {
"readfetch": {
"command": "npx",
"args": ["-y", "@readfetch/mcp-x402-proxy@latest"]
}
}
}
"env": {
"EVM_PRIVATE_KEY": "0x…",
"READFETCH_MAX_PAYMENT_USD": "1"
}
Also documented: Claude Code, Continue, Cline, Goose — see HOSTS.md. Agent drop-in for repos: AGENTS.md.
OpenAI and Anthropic both take a JSON Schema for the arguments.
The parameters are the endpoint's input_schema from /openapi.json, verbatim. Copy it rather than retype it, because the two failure modes differ: an unknown field at the top level is ignored, so a typo there fails quietly, while a typo inside advanced, auth or a cookie is rejected with 422. Exit is not a body field — datacentre by default; residential only POST /v1/scrape/residential (same JSON as scrape). This is the object for /v1/text with the optional fields trimmed to the one that changes cost:
{
"name": "readfetch_text",
"description": "Read a public URL and return its main text as Markdown, with title, author and date. No browser needed.",
"parameters": {
"type": "object",
"required": ["url"],
"properties": {
"url": { "type": "string", "format": "uri" }
}
}
}
Anthropic calls the same object input_schema; OpenAI calls it parameters inside a function. Everything else — the 402, the signature, the receipt — happens in the HTTP layer your tool executes against, not in the definition.
Packages latest+ — required for paid REST unless your stack already signs x402. Every published route, call() / quote(), payment helpers, and submitFeedback / submit_feedback. probe() is free (no key).
| Install | GitHub | Framework examples |
|---|---|---|
pip install readfetch-client | readfetch/client-py | readfetch_text_tool.py |
npm install @readfetch/client | readfetch/client-js | readfetch_text_tool.mjs |
npx @readfetch/mcp-x402-proxy@latest | readfetch/mcp-x402-proxy | MCP host configs |
| Docs hub + all links: readfetch/readfetch · REPOS.md | ||
Integrator feedback: use client submit_feedback / submitFeedback or MCP readfetch_feedback — /docs#feedback.
# pip install readfetch-client
from readfetch import Client
rf = Client(private_key="0x…") # funded account with USDC on Base
result = rf.fetch("https://example.com")
print(result["text"])
// npm install @readfetch/client
import { Client } from "@readfetch/client";
const rf = new Client({ privateKey: "0x…" });
const result = await rf.fetch("https://example.com");
console.log(result.text);
Install a client above, wrap one function in your tool decorator — no per-framework package.
LangChain, crewAI, LlamaIndex, LangChain.js, and the OpenAI Agents SDK all call the same readfetch_text / readfetchText from readfetch-client or @readfetch/client. Copy the matching file from GitHub examples.
MCP-only hosts (Cursor, Claude Desktop): use the stdio signing proxy, not these recipes. n8n: the HTTP Request node will not sign 402 — use a Code node with @readfetch/client (see n8n example on GitHub).
| Stack | Client | Example (GitHub) |
|---|---|---|
| LangChain, crewAI, LlamaIndex | readfetch-client | readfetch_text_tool.py |
| PydanticAI | readfetch-client | readfetch_pydantic_ai_tool.py |
| LangChain.js, OpenAI Agents SDK | @readfetch/client | readfetch_text_tool.mjs |
| Vercel AI SDK | @readfetch/client + ai | readfetch_vercel_ai_tool.mjs |
| AutoGen, Semantic Kernel, Mastra | Python or JS client | examples/README.md |
| Cursor / Claude (MCP) | @readfetch/mcp-x402-proxy@latest | host configs · GitHub |
| n8n | Code node + @readfetch/client | n8n-readfetch-text.json |
# pip install readfetch-client langchain-core
from readfetch import Client
@tool
def readfetch_text_tool(url: str) -> str:
return Client(private_key="0x…").fetch(url)["text"] # funded account with USDC on Base
// npm install @readfetch/client
import { Client } from "@readfetch/client";
const rf = new Client({ privateKey: "0x…" });
export async function readfetchTextTool(url) {
const page = await rf.fetch(url);
return page.text;
}
Machine-readable contracts — not a substitute for a signing client on paid routes.
| Need | What to use | What you get back |
|---|---|---|
| paid REST | readfetch-client · @readfetch/client · @readfetch/mcp-x402-proxy | 402 → sign → retry handled for you |
| GitHub repos | REPOS.md | docs hub + client-js + client-py + mcp-x402-proxy |
| the schema | /openapi.json | OpenAPI 3.1, one operation per endpoint |
| the prices | /.well-known/x402-resources.json | x402 records: resource, accepts, input schema, output example |
| the manifest | /.well-known/service.json | name, version, payment block, limits, endpoint list |
| routing for an agent | /SKILL.md | intent → endpoint, and the recovery table |
| agent drop-in (GitHub) | AGENTS.md | probe → pay → MCP; links HOSTS + examples |
| a liveness check | /healthz | free, no payment |
Use readfetch-client / @readfetch/client or @readfetch/mcp-x402-proxy — see clients.
So you do not go looking for it.
Paid routes need readfetch-client, @readfetch/client, or @readfetch/mcp-x402-proxy — see clients and REPOS.md.
No langchain-readfetch or crewai-readfetch — one client per language, framework examples on GitHub.
No key to rotate, no dashboard to sign into, no account to create. The wallet that signs the quote is the only credential, and only on a paid call.