# miniframe-tools [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/edsonvmendes/miniframe-tools-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 276  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/miniframe-tools

## Description
Brazilian tools for agents: Pix codes, CEP, CNPJ + web capture and PDF. Pay per call.

## Tools
Capabilities this server exposes over MCP:

- **pix_brcode** — POST /pix/brcode
- **cep_lookup** — POST /cep
- **cnpj_lookup** — POST /cnpj
- **empresa_profile** — POST /empresa
- **url_to_markdown** — POST /url-to-markdown
- **screenshot_url** — POST /screenshot
- **url_to_pdf** — POST /url-to-pdf
- **extract** — POST /extract
- **compress_pdf** — POST /compress-pdf

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

**Requires environment variables:** `EVM_PRIVATE_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What miniframe-tools does

The miniframe-tools MCP server gives agents access to Brazilian business and payment utilities alongside browser and document operations. Its Brazilian tools generate Pix BR Code payment strings and QR images, resolve postal codes (CEPs), query company records by CNPJ, and assemble a broader company profile with registry, address, status, company age, size, and related derived flags.

The web tools handle pages that require browser rendering. They can return a JavaScript-rendered page as Markdown, capture a page as PNG or JPEG, render it to PDF, or extract structured information such as JSON-LD, Open Graph data, metadata, tables, links, and values selected with CSS selectors. A PDF compression operation uses Ghostscript.

## How it works

The miniframe-tools MCP server is installed as a local stdio process through the `miniframe-tools-mcp` npm package. Each MCP tool maps to a POST endpoint on the hosted API, such as `/cep`, `/cnpj`, `/url-to-markdown`, or `/compress-pdf`. The service also exposes an OpenAPI document and an `llms.txt` file for machine-readable reference.

Requests are billed individually through x402 in USDC on Base. When a request requires payment, the endpoint returns HTTP 402; the client signs the payment and retries. The private key remains on the local machine and signs requests locally. A dedicated wallet with a small balance is recommended instead of a primary wallet.

CEP requests use BrasilAPI first and ViaCEP as a fallback, with the results normalized into one English-keyed shape. Pix codes are generated using the Central Bank BR Code format, including CRC16, and the supplied key is not stored. CNPJ results omit personal fields by design. Browser-based requests use Chromium and reject private or internal addresses before loading them.

## Setup and configuration

Add the server to an MCP client with `npx -y miniframe-tools-mcp` as the command and set `EVM_PRIVATE_KEY` in its environment. The wallet must contain enough USDC on Base to cover requested calls. `MINIFRAME_API_URL` is optional and defaults to `https://tools.miniframe.com.br`.

The README identifies Claude Desktop, Claude Code, Cursor, Windsurf, Cline, and other MCP clients as supported. The same service can also be called without MCP through its HTTP API. For direct HTTP use, clients need an x402 library to handle the payment response and retry flow.

## Tools and capabilities

- `pix_brcode`: create a Pix BR Code string and QR PNG.
- `cep_lookup`: resolve a Brazilian postal code to an address.
- `cnpj_lookup`: retrieve a company record from the public CNPJ registry.
- `empresa_profile`: return a consolidated company profile with derived attributes.
- `url_to_markdown`: render a page and return Markdown suitable for an LLM.
- `screenshot_url`: capture a rendered page as PNG or JPEG.
- `url_to_pdf`: render a web page as a PDF.
- `extract`: collect page metadata, structured data, tables, links, and CSS-selected fields.
- `compress_pdf`: reduce a PDF using Ghostscript.

## Limitations and notes

The service is pay-per-call rather than subscription-based, and the documented examples list different prices by tool. Web access is restricted for private and internal addresses. The API does not replace agent-side parsing for files such as CSVs or spreadsheets; its documented focus is on the listed Brazilian, web, and PDF operations. The project is released under the MIT license.

_Full upstream README: https://allmcps.com/mcp/miniframe-tools/readme_

