X402 Scraper

io.github.ihen404由 GitHub 帳號 ihen404 發布v1.0.0更新於 Oct 24, 2026

Autonomous HTTP 402 Web Scraping Mesh on Base for $0.02 USDC.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取金融

概覽

AI 產生的概覽

遠端 MCP 端點,讓 AI 助理透過 Base 上的 x402 協議以每次 0.02 USDC 付費抓取網頁,並回傳精簡的 Markdown。

可以做什麼
  • 透過 x402 付費抓取請求取得網頁,回傳去除 HTML 與導覽雜訊、節省 token 的 Markdown。
  • 在任務進行中自動探索並完成 Base 上按次 USDC 結算,無需 API 金鑰。
  • 藉由解耦的佇列與 worker 架構處理抓取工作,以因應高併發。
  • 透過 Base 主網或 Base Sepolia 上的 ERC-8004 身分進行鏈上註冊或識別。
適用情境
適合希望助理在無需管理 API 金鑰或代理訂閱的情況下抓取網頁,並願意用錢包按次支付 USDC 費用的情境。較偏向 Base 上的自主代理工作流程,而非一次性手動抓取。
執行需求
需要一個遠端 MCP 端點(清單中僅為佔位網域,需替換為實際部署位址)。需要持有 Base 主網或 Base Sepolia 上 USDC 的加密錢包;若依 README 建置代理,還需 Coinbase AgentKit 與 LangChain 相關套件。需要能存取該端點及 Base 網路。
安裝前請注意
每次請求都會實際花錢:每次抓取固定結算 0.02 USDC,由代理控制的錢包簽署支付。錢包及其私鑰是主要風險,未經確認的自動支付可能耗盡資金。抓取內容來自第三方網站;README 中的 MCP 位址指向 GitHub 上的原始檔案而非已部署服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 X402 Scraper,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.ihen404%2Fx402-scraper/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "x402-scraper": {
      "type": "http",
      "url": "https://your-domain.com/mcp.json"
    }
  }
}

README

@ihentrel/x402-scraper-langchain

[npm version] [License: MIT] [Network]

Protocol-native web scraping utility tool engineered for autonomous AI agents, powered by Coinbase AgentKit, LangChain, and x402 on-chain micro-settlements.


Key Features & Strategic Positioning

  • Zero API Keys Required: Agents discover, pay, and execute scraping requests mid-task without unhandled API key exceptions or rate limits.
  • Predictable Operational Cost: Flat $0.02 USDC/request settlement on Base, offering a transparent OpEx alternative to dynamic per-gigabyte proxy services.
  • Token-Optimized Markdown: HTML, navigation boilerplate, and DOM elements are automatically stripped into clean, token-dense Markdown to reduce LLM context window costs.
  • Asynchronous Queue Resilience: Underpinned by a decoupled better-sqlite3 queue and PM2 worker mesh to prevent payload failures under high concurrency.
  • Ecosystem Ready: Native support for Model Context Protocol (MCP) manifests (/mcp.json) and ERC-8004 identity registration on Base.

Quickstart

1. Installation

bash
npm install @ihentrel/x402-scraper-langchain @coinbase/agentkit @langchain/openai

2. Basic Agent Usage

typescript
import { AgentKit, ViemWalletProvider, walletActionProvider } from "@coinbase/agentkit";import { getLangChainTools } from "@coinbase/agentkit-langchain";import { ChatOpenAI } from "@langchain/openai";import { createReactAgent } from "@langchain/langgraph/prebuilt";import { x402ActionProvider } from "@ihentrel/x402-scraper-langchain";
async function main() {  const agentKit = await AgentKit.from({    actionProviders: [walletActionProvider(), x402ActionProvider()],  });
  const tools = await getLangChainTools(agentKit);  const agent = createReactAgent({    llm: new ChatOpenAI({ modelName: "gpt-4o-mini" }),    tools,  });
  const response = await agent.invoke({    messages: [      {        role: "user",        content: "Use the x402 scraper tool to fetch data from https://api.example.com/x402-resource",      },    ],  });
  console.log(response.messages[response.messages.length - 1].content);}
main();

Model Context Protocol (MCP) Integration

For drop-in compatibility with MCP clients (e.g., Claude Desktop, Cursor, CrewAI):

json
{  "mcpServers": {    "x402-scraper": {      "url": "https://raw.githubusercontent.com/ihen404/langchain-x402/main/mcp.json"    }  }}

On-Chain Verification

  • Network: Base Mainnet / Base Sepolia
  • Protocol Standard: ERC-8004 Agent Identity
  • Settlement Asset: USDC ($0.02 / request)

License

MIT © Ike Ambrose Hentrel II

來源:README.md,提交 c2a4a5b

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v1.0.0最新Sep 18, 2026

評分

已滿足適用檢查項的 75%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。