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 工具)。首次使用有免费额度,之后通过 x402 以 USDC 按次付费。付费前可验证收款地址的签名。
适用场景
当自己的抓取只拿到几乎没有文字的 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 分