1. readfetch
  2. integrations

Integrations

Clients, MCP, and discovery

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.

MCP

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.

Cursor / Claude — stdio proxy that signs x402
{
  "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.

MCP host configs

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.

Cursor — ~/.cursor/mcp.json
{
  "mcpServers": {
    "readfetch": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@readfetch/mcp-x402-proxy@latest"]
    }
  }
}
Claude Desktop — claude_desktop_config.json
{
  "mcpServers": {
    "readfetch": {
      "command": "npx",
      "args": ["-y", "@readfetch/mcp-x402-proxy@latest"]
    }
  }
}
VS Code — .vscode/mcp.json
{
  "servers": {
    "readfetch": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@readfetch/mcp-x402-proxy@latest"]
    }
  }
}
Windsurf — ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "readfetch": {
      "command": "npx",
      "args": ["-y", "@readfetch/mcp-x402-proxy@latest"]
    }
  }
}
Paid tools — add env to any block above
"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.

A tool definition for a model API

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:

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

Official REST clients

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).

InstallGitHubFramework examples
pip install readfetch-clientreadfetch/client-pyreadfetch_text_tool.py
npm install @readfetch/clientreadfetch/client-jsreadfetch_text_tool.mjs
npx @readfetch/mcp-x402-proxy@latestreadfetch/mcp-x402-proxyMCP host configs
Docs hub + all links: readfetch/readfetch · REPOS.md

Integrator feedback: use client submit_feedback / submitFeedback or MCP readfetch_feedback — /docs#feedback.

Python
# 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"])
Node
// 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);

Agent frameworks

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).

StackClientExample (GitHub)
LangChain, crewAI, LlamaIndexreadfetch-clientreadfetch_text_tool.py
PydanticAIreadfetch-clientreadfetch_pydantic_ai_tool.py
LangChain.js, OpenAI Agents SDK@readfetch/clientreadfetch_text_tool.mjs
Vercel AI SDK@readfetch/client + aireadfetch_vercel_ai_tool.mjs
AutoGen, Semantic Kernel, MastraPython or JS clientexamples/README.md
Cursor / Claude (MCP)@readfetch/mcp-x402-proxy@latesthost configs · GitHub
n8nCode node + @readfetch/clientn8n-readfetch-text.json
Python tool wrapper (LangChain / crewAI / LlamaIndex)
# 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
JavaScript tool wrapper (LangChain.js / Agents SDK)
// 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;
}

Discovery links

Machine-readable contracts — not a substitute for a signing client on paid routes.

NeedWhat to useWhat you get back
paid RESTreadfetch-client · @readfetch/client · @readfetch/mcp-x402-proxy402 → sign → retry handled for you
GitHub reposREPOS.mddocs hub + client-js + client-py + mcp-x402-proxy
the schema/openapi.jsonOpenAPI 3.1, one operation per endpoint
the prices/.well-known/x402-resources.jsonx402 records: resource, accepts, input schema, output example
the manifest/.well-known/service.jsonname, version, payment block, limits, endpoint list
routing for an agent/SKILL.mdintent → endpoint, and the recovery table
agent drop-in (GitHub)AGENTS.mdprobe → pay → MCP; links HOSTS + examples
a liveness check/healthzfree, no payment

Use readfetch-client / @readfetch/client or @readfetch/mcp-x402-proxy — see clients.

What does not exist

So you do not go looking for it.

Official clients handle payment

Paid routes need readfetch-client, @readfetch/client, or @readfetch/mcp-x402-proxy — see clients and REPOS.md.

No per-framework packages

No langchain-readfetch or crewai-readfetch — one client per language, framework examples on GitHub.

No API key

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.