/ Annuaire / Playground / mcp-brasil
● Communauté jxnxts ⚡ Instantané

mcp-brasil

par 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.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

brasil.replay ▶ prêt
0/0

Installer

Choisissez votre 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
    }
  }
}

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

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

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

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

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

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

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

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

Continue utilise un tableau d'objets serveur plutôt qu'une map.

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

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

claude mcp add brasil -- uvx mcp-brasil

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : mcp-brasil

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

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

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

Prérequis
  • The bill identifier (e.g. PL 2630/2020) — From a Câmara/Senado URL or news article
Déroulement
  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.✓ Copié
    → 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.✓ Copié
    → 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.✓ Copié
    → Ready-to-publish policy summary

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

Pièges
  • Bill IDs collide across houses — PL in Câmara ≠ PLS in Senado — Always specify the house; use planejar_consulta to query both if uncertain
Combiner avec : notion

Audit Brazilian government contracts with mcp-brasil

👤 Investigative reporters, transparency NGOs ⏱ ~40 min advanced

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

Prérequis
  • Free Portal da Transparência API key — api.portaldatransparencia.gov.br — takes a minute, set TRANSPARENCIA_API_KEY
Déroulement
  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.✓ Copié
    → 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.✓ Copié
    → Supplier-by-supplier compliance status
  3. Cross-reference with public servant data
    Use executar_lote to parallelize partner lookups across all flagged CNPJs.✓ Copié
    → Potential conflict-of-interest leads

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

Pièges
  • 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
Combiner avec : google-sheets

Build a live Brazilian macro dashboard with mcp-brasil

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

Quand l'utiliser : You need daily SELIC, IPCA, câmbio without wiring BCB/IBGE APIs manually.

Déroulement
  1. Pull today's key rates
    Give me today's SELIC, CDI, IPCA (12m), USD/BRL using mcp-brasil.✓ Copié
    → 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.✓ Copié
    → Formatted note ready to paste in Slack

Résultat : A self-refreshing macro snapshot you can schedule daily.

Combiner avec : google-sheets

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

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.✓ Copié
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.✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
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

Coût et limites

Coût d'exécution

Quota d'API
Upstream varies: Câmara/Senado effectively unlimited; Transparência ~90 req/min per key; IBGE/BCB generous
Tokens par appel
100–1500 depending on endpoint
Monétaire
Free — all underlying APIs are public
Astuce
Use planejar_consulta first to avoid firing 10 tools when 2 suffice

Sécurité

Permissions, secrets, portée

Stockage des identifiants : Optional keys in env vars TRANSPARENCIA_API_KEY, DATAJUD_API_KEY, META_ACCESS_TOKEN
Sortie de données : Calls go to Brazilian government domains (gov.br, ibge.gov.br, bcb.gov.br) and Meta Ad Library

Dépannage

Erreurs courantes et correctifs

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

Vérifier : 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

Alternatives

mcp-brasil vs autres

AlternativeQuand l'utiliserCompromis
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

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills