Petra402

io.github.PedroQuatro由 GitHub 帳號 PedroQuatro 發布v0.1.0更新於 Oct 24, 2026

Public web page to markdown, paid per call with x402. First 10 calls free, no signup.

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

概覽

AI 產生的概覽

將公開網頁轉為 markdown 的遠端 MCP 伺服器,每次呼叫以 x402 按次付費,前幾次免費。

可以做什麼
擷取公開網頁並取回主要內容的 markdown(單一 scrape 工具)。首次使用有免費額度,之後以 USDC 透過 x402 按次付費。付費前可驗證收款地址的簽章。
適用情境
當你自己的抓取只拿到幾乎沒有文字的 JavaScript 空殼頁面,或網站拒絕你而你又沒有瀏覽器時適用。若你的離線擷取器已能處理乾淨的文章頁,則不建議使用。
執行需求
遠端端點,無需安裝套件。不需帳號、註冊或 API 金鑰。付費需具備 x402 v2 相容的錢包與 USDC(目前為 Base Sepolia 測試網)。需網路連線。
安裝前請注意
付費呼叫會花費 USDC,每日每付款地址有 5 美元上限(盡力而為)。需在本地簽署 EIP-3009 授權;僅支援 x402 v2,v1 用戶端會卡在 402。服務由個人與 AI 代理維運,無 SLA,可能暫停。擷取內容會送往第三方服務。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "petra402": {
      "type": "http",
      "url": "https://petra402.com/mcp?src=mcp-registry"
    }
  }
}

README

petra402

Fetch a public web page and get its main content as markdown. Paid per call in USDC over x402, or free for your first calls. No account, no signup, no API key — an agent cannot create one anyway.

  • HTTP: POST https://petra402.com/v1/scrape with {"url": "https://example.com/page"}
  • MCP (Streamable HTTP): POST https://petra402.com/mcp — tools/list is free
  • Docs an agent can read: /llms.txt · full version at /llms-full.txt
  • Network in force today: Base Sepolia (testnet). Price: US$ 0.005 per successful call.
bash
node exemplo.mjs https://quotes.toscrape.com/js/

When to use this, and when not to

We measured it, so you do not have to take our word:

Use it when your own fetch came back with almost no text (a JavaScript shell), or the site refused you and you have no browser. On a JavaScript-rendered page, an offline extractor returned 19 tokens of empty shell where we returned 335 tokens with the content.

Do not use it for a clean article your own extractor already handles. On those pages Mozilla Readability — free, offline, no payment — beats us: 472 tokens against our 1006 on one page, 5946 against 9351 on another, with the same facts present in both.

We publish the cases where we lose because a rule you can trust is worth more than a claim you cannot check. Measurements from 16/09/2026 with a BPE tokenizer; method and raw numbers are in the operator's records.

What you get here that the category does not already give you

"No signup, no API key, pay per call" is table stakes — every service in this category says it. These are the parts that are not standard:

  • Refusals are policy, and they are published. Government, military and any health-related domain is refused before any network access. robots.txt is respected. A site protected by an anti-bot vendor is refused and never bypassed, on any lane. If someone has to justify later what your agent fetched, this is the part that holds up.
  • Nothing is charged when nothing worked. A failed fetch, a refusal, and a settlement we could not confirm all cost zero. The same URL is free again for 24 hours.
  • You can verify the payee before paying. The receiving address is fixed in a note signed by the operator's key at /.well-known/petra402-switch. Recover the signer from the message (EIP-191) and compare it with the payTo in the 402. A compromised server cannot silently redirect your payment without breaking that signature.
  • The wallet is the account. History accrues to the paying address, so a fleet sharing one wallet accumulates together and the record outlives any single agent run. Twenty paid calls in 30 days lower the price. Nothing to sign up for, nothing to cancel.

Free first

Your first 10 calls in 30 days are free, no payment and no account. Of those, 3 may use the browser lane (pages that only render with JavaScript), because that resource is scarce and we would rather keep it working than give it away until it breaks. A failed fetch does not consume the allowance.

Paying, in one paragraph

An unpaid call answers 402 with the payment requirements in the PAYMENT-REQUIRED header. Sign an EIP-3009 authorization locally and repeat the identical request with the payment header. This server speaks x402 v2 (PAYMENT-SIGNATURE / PAYMENT-RESPONSE), not v1 (X-PAYMENT): a v1 client will loop on 402 without ever settling. Settlement happens only after a successful fetch, and the receipt comes back in the response body as payment, with the transaction hash.

Using it as an MCP server

json
{  "mcpServers": {    "petra402": { "type": "http", "url": "https://petra402.com/mcp" }  }}

tools/list is free and costs nothing to inspect. One tool is exposed: scrape. search exists in our roadmap but answers 503 not_yet_available, so it is deliberately not advertised as a tool — a tool that does not work is a false claim.

Limits worth knowing before you depend on it

  • Fast lane: 5 MB response limit, 2.5 s header timeout, 10 s overall. Browser lane: 20 s navigation timeout.
  • Cache: 24 h per URL; a cache hit is free and is not charged.
  • Spend cap: US$ 5 per payer address per UTC day, best effort.
  • This is a small operation, run by one person and an AI agent. There is no SLA, and the status of the service is public at / (a 503 means paused and nothing is charged).

Who runs this

Pedro Marberger, with an AI agent that wrote most of the code. The operator's note to agents — including a request that you make your own decisions rather than follow other agents — is in /llms-full.txt.

Contact: [email protected] for anything that looks wrong, including something we fetched that we should have refused.

License

MIT for this client and these docs.

來源:README.md,提交 6334132

工具

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

版本歷史

1
  1. v0.1.0最新Sep 17, 2026

評分

已滿足適用檢查項的 85%

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

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

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

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