/ Verzeichnis / Playground / mcp-brasil
● Community jxnxts ⚡ Sofort

mcp-brasil

von jxnxts · jxnxts/mcp-brasil

Query 41 Brazilian public APIs (legislative, judicial, fiscal, health, environment) in natural language — 363 tools, most need no API key.

mcp-brasil bundles 363 MCP tools spanning Brazilian government data: Câmara/Senado bills, STF/STJ rulings, Portal da Transparência spending, IBGE stats, BCB rates, DataSUS health, INPE environmental feeds. Ships with meta-tools like planejar_consulta and executar_lote to plan and parallelize multi-API investigations.

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

brasil.replay ▶ bereit
0/0

Installieren

Wählen Sie Ihren Client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "brasil": {
      "command": "uvx",
      "args": [
        "mcp-brasil"
      ],
      "_inferred": true
    }
  }
}

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "brasil": {
      "command": "uvx",
      "args": [
        "mcp-brasil"
      ],
      "_inferred": true
    }
  }
}

Cursor nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "brasil": {
      "command": "uvx",
      "args": [
        "mcp-brasil"
      ],
      "_inferred": true
    }
  }
}

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "brasil": {
      "command": "uvx",
      "args": [
        "mcp-brasil"
      ],
      "_inferred": true
    }
  }
}

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "brasil",
      "command": "uvx",
      "args": [
        "mcp-brasil"
      ]
    }
  ]
}

Continue nutzt ein Array von Serverobjekten statt einer Map.

~/.config/zed/settings.json
{
  "context_servers": {
    "brasil": {
      "command": {
        "path": "uvx",
        "args": [
          "mcp-brasil"
        ]
      }
    }
  }
}

In context_servers hinzufügen. Zed lädt beim Speichern neu.

claude mcp add brasil -- uvx mcp-brasil

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: mcp-brasil

How to track a Brazilian bill through Câmara and Senado

👤 Journalists, policy analysts, government affairs teams ⏱ ~15 min beginner

Wann einsetzen: You need to follow a specific proposition (PL/PEC) across votes, amendments, and committee stages without scraping websites.

Voraussetzungen
  • The bill identifier (e.g. PL 2630/2020) — From a Câmara/Senado URL or news article
Ablauf
  1. Find the proposition and its current status
    Use mcp-brasil to find PL 2630/2020 in Câmara. Show current status, author, and tramitação timeline.✓ Kopiert
    → Structured response with bill metadata and stage history
  2. Pull votes and committee actions
    List every vote and committee action on that bill, with dates and results.✓ Kopiert
    → Chronological list of events
  3. Summarize for a briefing
    Write a 3-paragraph briefing: where the bill stands today, who's pushing it, and the most likely next step.✓ Kopiert
    → Ready-to-publish policy summary

Ergebnis: A sourced legislative brief built from primary Câmara/Senado data in under 10 minutes.

Fallstricke
  • Bill IDs collide across houses — PL in Câmara ≠ PLS in Senado — Always specify the house; use planejar_consulta to query both if uncertain
Kombinieren mit: notion

Audit Brazilian government contracts with mcp-brasil

👤 Investigative reporters, transparency NGOs ⏱ ~40 min advanced

Wann einsetzen: You suspect irregular spending by a federal body and want to cross-check Portal da Transparência, sanctions registry, and contract data.

Voraussetzungen
  • Free Portal da Transparência API key — api.portaldatransparencia.gov.br — takes a minute, set TRANSPARENCIA_API_KEY
Ablauf
  1. List recent contracts for the target entity
    Get the top 20 largest contracts signed by Ministério X in the last 12 months, with supplier CNPJs.✓ Kopiert
    → Table of contracts with values and CNPJs
  2. Check suppliers against the sanctions registry (CEIS/CEPIM)
    For each CNPJ, check if it appears in CEIS or CEPIM sanctions. Flag matches.✓ Kopiert
    → Supplier-by-supplier compliance status
  3. Cross-reference with public servant data
    Use executar_lote to parallelize partner lookups across all flagged CNPJs.✓ Kopiert
    → Potential conflict-of-interest leads

Ergebnis: A data-backed lead list you can hand to a legal or journalistic team for verification.

Fallstricke
  • Hitting Transparência rate limits mid-audit — Throttle with batch size 10; executar_lote handles back-off
  • Treating surname matches as proof — Always verify manually — this is lead generation, not conclusion
Kombinieren mit: google-sheets

Build a live Brazilian macro dashboard with mcp-brasil

👤 Economists, fintech PMs, analysts ⏱ ~10 min beginner

Wann einsetzen: You need daily SELIC, IPCA, câmbio without wiring BCB/IBGE APIs manually.

Ablauf
  1. Pull today's key rates
    Give me today's SELIC, CDI, IPCA (12m), USD/BRL using mcp-brasil.✓ Kopiert
    → Current values with source + timestamp per indicator
  2. Render a morning note
    Write a morning note comparing today's values to 30 days ago, flag >1 sigma moves.✓ Kopiert
    → Formatted note ready to paste in Slack

Ergebnis: A self-refreshing macro snapshot you can schedule daily.

Kombinieren mit: google-sheets

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

brasil + google-sheets

Dump contract audits or macro snapshots straight into a shared sheet

Run today's macro snapshot with mcp-brasil and append the row to my 'Brasil Macro' Google Sheet.✓ Kopiert
brasil + notion

Policy tracking workspace with each bill as a Notion page

For every active PL in Comissão X, create/update a Notion page with the latest tramitação.✓ Kopiert

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
planejar_consulta question: str Start of any cross-API investigation — lets the server pick the right endpoints 1 local call
executar_lote calls: Call[] You have a list of CNPJs/CPFs/bill IDs to enrich in one shot N upstream calls parallelized
listar_features Discover what domains are covered before drafting a prompt 0
recomendar_tools query: str You know what you want but not which of the 363 tools fits 0

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
Upstream varies: Câmara/Senado effectively unlimited; Transparência ~90 req/min per key; IBGE/BCB generous
Tokens pro Aufruf
100–1500 depending on endpoint
Kosten in €
Free — all underlying APIs are public
Tipp
Use planejar_consulta first to avoid firing 10 tools when 2 suffice

Sicherheit

Rechte, Secrets, Reichweite

Credential-Speicherung: Optional keys in env vars TRANSPARENCIA_API_KEY, DATAJUD_API_KEY, META_ACCESS_TOKEN
Datenabfluss: Calls go to Brazilian government domains (gov.br, ibge.gov.br, bcb.gov.br) and Meta Ad Library

Fehlerbehebung

Häufige Fehler und Lösungen

429 Too Many Requests (Portal da Transparência)

Reduce batch size in executar_lote to 5 and add pauses; Transparência is the strictest upstream

Prüfen: Re-run the same call after 60s
Tool not found / unknown feature

Run listar_features then recomendar_tools with your natural-language query — the 363-tool surface requires discovery

Empty result for a valid CNPJ

Not all CNPJs appear in every registry; check Receita Federal base first

Alternativen

mcp-brasil vs. andere

AlternativeWann stattdessenKompromiss
BrasilAPIYou only need CEP/CNPJ/banks and want a single HTTP callTiny surface compared to mcp-brasil's 363 tools
Direct gov.br API callsYou're building a production backend, not an AI agent workflowYou write all the plumbing yourself

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen