Skip to main content
MA

Matera

v0.2.0-alpha.2OAuth2alpha

Infraestrutura de core-banking brasileira (BaaS). Processa cerca de 10% do Pix do Brasil segundo cases por fornecedor. Não é PSP — são as trilhas por baixo das fintechs. Pra empresas que constroem em cima do Pix em vez de aceitá-lo como merchant. Release alpha no npm — paths de endpoint pendentes de verificação na doc.

22 ferramentas3 env vars🇧🇷 Brasilalpha — validação pendente

O que seu agente faz

O Matera dá ao seu agente 22 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer cliente MCP.

  • create_pix_charge_staticCreate a static Pix charge (reusable QR code tied to a merchant Pix key). Returns EMV copy-paste payload and QR code image. Use for points-of-sale or donations where the same QR is shown to many payers.
  • create_pix_charge_dynamicCreate a dynamic Pix charge (single-use QR with expiration). Returns txid, EMV copy-paste, and QR image. Preferred for e-commerce checkouts and invoices.
  • get_pix_chargeRetrieve a Pix charge (static or dynamic) by txid.
Exemplo de chamada
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_pix_charge_static", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-matera@alpha

Quickstart

Adicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "matera": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-matera@alpha"
      ],
      "env": {
        "MATERA_CLIENT_ID": "<your_matera_client_id>",
        "MATERA_CLIENT_SECRET": "<your_matera_client_secret>"
      }
    }
  }
}

Depois de reiniciar, seu agente pode chamar qualquer uma das 22 ferramentas abaixo — teste create_pix_charge_static primeiro.

Variáveis de ambiente · 3

Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.

MATERA_CLIENT_ID
obrigatório

OAuth2 client_id issued by Matera

MATERA_CLIENT_SECRET
obrigatóriosecret

OAuth2 client_secret issued by Matera

MATERA_BASE_URL
opcional

API base URL. Defaults to https://api.matera.com (production)

Ferramentas disponíveis · 22

Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.

WRITEcreate_pix_charge_static
Create a static Pix charge (reusable QR code tied to a merchant Pix key). Returns EMV copy-paste payload and QR code image. Use for points-of-sale or donations where the same QR is shown to many payers.
WRITEcreate_pix_charge_dynamic
Create a dynamic Pix charge (single-use QR with expiration). Returns txid, EMV copy-paste, and QR image. Preferred for e-commerce checkouts and invoices.
WRITEget_pix_charge
Retrieve a Pix charge (static or dynamic) by txid.
WRITElist_pix_charges
List immediate Pix charges (BCB /cob) with date and status filters. Use for reconciling QR-driven receipts in a time window.
WRITEupdate_pix_charge
Update an immediate Pix charge (BCB PATCH /cob/{txid}). Use to revise amount/expiration before payment, or to mark a charge REMOVIDA_PELO_USUARIO_RECEBEDOR.
WRITEcreate_pix_charge_due
Create a due-dated Pix charge (BCB /cobv — Pix com Vencimento). Boleto-style charge with due date, late fee (multa), interest (juros), and discount fields. Returns txid + QR payload.
WRITEget_pix_charge_due
Retrieve a due-dated Pix charge (BCB GET /cobv/{txid}).
WRITEcreate_pix_payment
Initiate an outbound Pix transfer (ordem de pagamento). Moves money from a debtor account held on Matera to any Pix key in BR. Returns endToEndId once the BCB SPI confirms.

Frameworks compatíveis

MCP é um protocolo — qualquer framework que o fale pode montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Qualquer cliente MCPProtocolo

Perguntas frequentes

Rode `npx -y @codespar/mcp-matera` e adicione o bloco de config acima ao seu cliente MCP — Claude, Cursor, VS Code ou qualquer cliente compatível com MCP. Sem build, sem SDK. Prefere hospedado? O tier gerenciado da CodeSpar roda pra você, com a auth resolvida.
Matera — MCP server · 22 tools | CodeSpar