Miniframe Tools

io.github.edsonvmendes由 GitHub 账号 edsonvmendes 发布v1.3.0更新于 Oct 24, 2026

Brazilian tools for agents: Pix, CEP, CNPJ, BCB rates + web capture and PDF. Pay per call.

概览

AI 生成的概览

让助手生成 Pix 支付码、查询巴西 CEP 与 CNPJ 数据,并把网页渲染为 Markdown、截图或 PDF。

可以做什么
Miniframe Tools 以 MCP 工具形式提供巴西数据与网页、文档处理能力。工具包括 pix_brcode(Pix BR Code 及二维码 PNG)、cep_lookup(邮编转地址)、cnpj_lookup(企业登记查询)、empresa_profile(企业综合档案)、url_to_markdown、screenshot_url、url_to_pdf、extract(页面结构化数据及 CSS 选择器字段)和 compress_pdf。每个工具对应同一服务的 HTTP 端点,按调用计费。
适用场景
适合助手需要巴西地址或企业数据、Pix 支付码,或需要沙箱无法完成的网页与 PDF 处理(如渲染依赖 JavaScript 的页面、运行 Ghostscript)时使用。不适用于助手本身已能完成的任务,例如解析 CSV。
运行要求
通过 npm 包 miniframe-tools-mcp(npx)以 stdio 在本地运行。需要环境变量 EVM_PRIVATE_KEY,即 Base 上已充值 USDC 的钱包私钥,并需要访问该 API 的网络。MINIFRAME_API_URL 可选,默认指向服务地址。未声明需要账号或 API 密钥。
安装前请注意
EVM_PRIVATE_KEY 是用于在 Base 上签署按次 USDC 支付的钱包私钥;README 建议使用专用的低余额钱包,切勿使用主钱包。每次调用都会产生费用(例如 CNPJ 查询 $0.01、截图 $0.03),使用会消耗资金。网页工具会抓取外部页面,发送的 Pix 密钥会用于生成支付码。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Miniframe Tools,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MiniFrame Tools

The Brazilian toolkit for AI agents — plus the web and document work agents can't do inside a sandbox.

Ask your agent to generate a Pix payment code, resolve a CEP to a full address, or pull a company's record from the CNPJ registry. Point it at a JavaScript-heavy page and get clean Markdown, a screenshot or a PDF back.

A CNPJ lookup costs $0.01 — billed per call, with no monthly plan, no contract and no minimum, which is unusual for Brazilian data APIs.

Tools

  • pix_brcode — Generate a Brazilian Pix payment code (BR Code / "Copia e Cola" string) plus a QR PNG. $0.01 per call.
  • cep_lookup — Resolve a Brazilian postal code (CEP) to a full street address. $0.005 per call.
  • cnpj_lookup — Look up a Brazilian company by its CNPJ number in the public registry. $0.01 per call.
  • empresa_profile — Consolidated Brazilian company profile to qualify a lead: registry + address completed via CEP + derived flags (active, headquarters, age, MEI/Simples, size, risk). $0.02 per call.
  • url_to_markdown — Fetch a JavaScript-rendered web page and return clean Markdown for an LLM. $0.02 per call.
  • screenshot_url — Take a screenshot of a web page and return it as PNG or JPEG. $0.03 per call.
  • url_to_pdf — Render a web page as a PDF. $0.03 per call.
  • extract — Extract the structured data a page exposes (JSON-LD, Open Graph, meta, tables, links) plus any fields you pass as CSS selectors. $0.02 per call.
  • compress_pdf — Compress a PDF file with Ghostscript. $0.02 per call.

Each tool maps to an HTTP endpoint of the same service:

ToolEndpoint
pix_brcodePOST /pix/brcode
cep_lookupPOST /cep
cnpj_lookupPOST /cnpj
empresa_profilePOST /empresa
url_to_markdownPOST /url-to-markdown
screenshot_urlPOST /screenshot
url_to_pdfPOST /url-to-pdf
extractPOST /extract
compress_pdfPOST /compress-pdf

What makes these worth paying for

Brazilian sources, handled properly. CEP lookups hit BrasilAPI first and fall back to ViaCEP automatically, so a single upstream outage doesn't break your agent. Both sources come back through one normalized, English-keyed shape — your prompt never has to know which one answered.

Pix codes built to spec, locally. The BR Code follows the Central Bank's EMV layout, CRC16 and all, generated on our side with no third-party payment provider in the path. The key you send is used to build the code and is not stored.

Privacy taken seriously. CNPJ responses carry the company record — legal name, trade name, status, main activity, address — with personal fields left out by design.

Rendering that doesn't become an attack surface. The web tools run real Chromium, so JavaScript pages resolve, and they refuse private and internal addresses (SSRF guard) before a page is ever loaded.

Nothing to install for the hard parts. Ghostscript and a headless browser are the kind of dependency an agent sandbox doesn't have and can't install. That is exactly what this is for — anything an agent already does well on its own (parsing a CSV, reading a spreadsheet) is not sold here.

Use it as an MCP server

Works with Claude Desktop, Claude Code, Cursor, Windsurf, Cline and any MCP client.

json
{  "mcpServers": {    "miniframe-tools": {      "command": "npx",      "args": ["-y", "miniframe-tools-mcp"],      "env": {        "EVM_PRIVATE_KEY": "0xyour_private_key"      }    }  }}

Restart the client and the seven tools appear. Then just ask:

"Generate a Pix code for R$ 50 to key [email protected], name Maria Silva, city Recife"

"What's the address for CEP 01310-100?"

"Look up CNPJ 00.000.000/0001-91 and tell me if the company is active"

"Turn https://example.com into Markdown so I can summarise it"

Use it as a plain HTTP API

No MCP needed — every tool is a normal endpoint:

bash
curl -i -X POST https://tools.miniframe.com.br/cep \  -H "Content-Type: application/json" \  -d '{"cep":"01310100"}'

Paying

Calls are billed per request in USDC on Base, using the x402 protocol: the endpoint answers 402 with the price, your client signs the payment and repeats the request. Most agent runtimes handle this for you.

For MCP, set EVM_PRIVATE_KEY to a wallet funded with a few dollars of USDC — use a dedicated low-balance wallet, never your main one. The key stays on your machine and signs locally; it is never sent to the API.

VariableRequiredDefault
EVM_PRIVATE_KEYyes—
MINIFRAME_API_URLnohttps://tools.miniframe.com.br

Over plain HTTP, wrap your client with any x402 library — see examples/ for a runnable Node script.

License

MIT

来源:README.md,提交 f77ce49

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v1.3.0最新Sep 28, 2026
  2. v1.2.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分