/ Каталог / Песочница / mcp-brasil
● Сообщество jxnxts ⚡ Сразу

mcp-brasil

автор 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.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

brasil.replay ▶ готово
0/0

Установка

Выберите клиент

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

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

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

Cursor использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

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

Щёлкните значок MCP Servers на боковой панели Cline, затем "Edit Configuration".

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

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

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

Continue использует массив объектов серверов, а не map.

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

Добавьте в context_servers. Zed перезагружается автоматически.

claude mcp add brasil -- uvx mcp-brasil

Однострочная команда. Проверить: claude mcp list. Удалить: claude mcp remove.

Сценарии использования

Реальные сценарии: mcp-brasil

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

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

Когда использовать: You need to follow a specific proposition (PL/PEC) across votes, amendments, and committee stages without scraping websites.

Предварительные требования
  • The bill identifier (e.g. PL 2630/2020) — From a Câmara/Senado URL or news article
Поток
  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.✓ Скопировано
    → 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.✓ Скопировано
    → 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.✓ Скопировано
    → Ready-to-publish policy summary

Итог: A sourced legislative brief built from primary Câmara/Senado data in under 10 minutes.

Подводные камни
  • Bill IDs collide across houses — PL in Câmara ≠ PLS in Senado — Always specify the house; use planejar_consulta to query both if uncertain
Сочетать с: notion

Audit Brazilian government contracts with mcp-brasil

👤 Investigative reporters, transparency NGOs ⏱ ~40 min advanced

Когда использовать: You suspect irregular spending by a federal body and want to cross-check Portal da Transparência, sanctions registry, and contract data.

Предварительные требования
  • Free Portal da Transparência API key — api.portaldatransparencia.gov.br — takes a minute, set TRANSPARENCIA_API_KEY
Поток
  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.✓ Скопировано
    → 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.✓ Скопировано
    → Supplier-by-supplier compliance status
  3. Cross-reference with public servant data
    Use executar_lote to parallelize partner lookups across all flagged CNPJs.✓ Скопировано
    → Potential conflict-of-interest leads

Итог: A data-backed lead list you can hand to a legal or journalistic team for verification.

Подводные камни
  • 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
Сочетать с: google-sheets

Build a live Brazilian macro dashboard with mcp-brasil

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

Когда использовать: You need daily SELIC, IPCA, câmbio without wiring BCB/IBGE APIs manually.

Поток
  1. Pull today's key rates
    Give me today's SELIC, CDI, IPCA (12m), USD/BRL using mcp-brasil.✓ Скопировано
    → 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.✓ Скопировано
    → Formatted note ready to paste in Slack

Итог: A self-refreshing macro snapshot you can schedule daily.

Сочетать с: google-sheets

Комбинации

Сочетайте с другими MCP — эффект 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.✓ Скопировано
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.✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
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

Стоимость и лимиты

Во что обходится

Квота API
Upstream varies: Câmara/Senado effectively unlimited; Transparência ~90 req/min per key; IBGE/BCB generous
Токенов на вызов
100–1500 depending on endpoint
Деньги
Free — all underlying APIs are public
Совет
Use planejar_consulta first to avoid firing 10 tools when 2 suffice

Безопасность

Права, секреты, радиус поражения

Хранение учётных данных: Optional keys in env vars TRANSPARENCIA_API_KEY, DATAJUD_API_KEY, META_ACCESS_TOKEN
Исходящий трафик: Calls go to Brazilian government domains (gov.br, ibge.gov.br, bcb.gov.br) and Meta Ad Library

Устранение неполадок

Частые ошибки и исправления

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

Проверить: 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

Альтернативы

mcp-brasil в сравнении

АльтернативаКогда использоватьКомпромисс
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

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills