Skip to main content
Glama
lucianoon

mcp-brasil

by lucianoon

mcp-brasil

MCP-Server (Model Context Protocol), der öffentliche brasilianische Daten als Werkzeuge für KI-Assistenten bereitstellt: Claude Desktop, Claude Code, Cursor und jeder MCP-Client.

Verfügbare Werkzeuge

Quelle

Tools

Beschreibung

IBGE/SIDRA

ibge_populacao, ibge_pib, ibge_municipios, ibge_sidra

Bevölkerung, BIP, Suche nach Gemeinden und generische Abfrage beliebiger SIDRA-Aggregate

Banco Central

bcb_serie, bcb_cambio, bcb_moedas, bcb_focus

SGS-Zeitreihen (Selic, IPCA...), PTAX-Kurse, Währungsliste und Erwartungen des Boletim Focus

INMET

inmet_estacoes, inmet_dados

Liste der Wetterstationen und beobachtete stündliche Daten (Beobachtungsdaten erfordern Token)

Câmara dos Deputados

camara_deputados, camara_detalhes_deputado, camara_proposicoes, camara_votacoes_proposicao

Abgeordnete, Gesetzesvorschläge und Abstimmungen

Alle Quellen sind offizielle offene APIs – kein API-Schlüssel erforderlich, außer für die stündlichen INMET-Daten (siehe unten).

Related MCP server: ibge-data-mcp

Installation

Voraussetzungen: uv (oder Python 3.12+ mit pip).

git clone https://github.com/lucianoon/mcp-brasil
cd mcp-brasil
uv sync

Konfiguration

Claude Desktop / Cursor

Fügen Sie zur Konfigurationsdatei hinzu (claude_desktop_config.json oder mcp.json):

{
  "mcpServers": {
    "mcp-brasil": {
      "command": "uv",
      "args": ["run", "--directory", "/caminho/para/mcp-brasil", "mcp-brasil"]
    }
  }
}

Claude Code

claude mcp add mcp-brasil -- uv run --directory /caminho/para/mcp-brasil mcp-brasil

Optionales INMET-Token

Die Auflistung der Stationen (inmet_estacoes) ist offen. Die beobachteten stündlichen Daten (inmet_dados) erfordern jedoch ein vom INMET bereitgestelltes Token – fordern Sie es unter portal.inmet.gov.br an und konfigurieren Sie die Umgebungsvariable im MCP-Client:

{
  "mcpServers": {
    "mcp-brasil": {
      "command": "uv",
      "args": ["run", "--directory", "/caminho/para/mcp-brasil", "mcp-brasil"],
      "env": { "INMET_TOKEN": "seu-token" }
    }
  }
}

Ohne das Token funktionieren die übrigen 13 Werkzeuge normal.

Anwendungsbeispiele

Nach der Konfiguration fragen Sie den Assistenten direkt:

  • "Wie hoch war der IPCA der letzten 6 Monate?"

  • "Was erwartet der Markt für die Selic bei den nächsten Sitzungen?" (Boletim Focus)

  • "Wer sind die Bundesabgeordneten von Minas Gerais der Partei X?"

  • "Wie hoch ist die Bevölkerung von São Paulo im Jahr 2022? Und das BIP?"

  • "Wie steht der PTAX-Dollar in den letzten Tagen?"

  • "Suchen Sie nach Gesetzesentwürfen von 2025 zum Thema psychische Gesundheit"

  • "Welche automatischen INMET-Stationen gibt es in Amazonas?"

Entwicklung

uv sync --dev
uv run pytest
uv run ruff check .
uv run mypy src

Architektur

src/mcp_brasil/
├── server.py        # Servidor MCP e registro das tools
├── http.py          # Cliente HTTP compartilhado, retry e tratamento de erros
├── cache.py         # Cache TTL em memória para as respostas das APIs
└── tools/
    ├── ibge.py      # SIDRA v3 + localidades v1
    ├── bcb.py       # SGS + Olinda (PTAX e Boletim Focus)
    ├── inmet.py     # Estações e dados observacionais
    └── camara.py    # Dados Abertos da Câmara v2
  • Stdio-Transport (MCP-Desktop-Standard)

  • TTL-Cache von 10 Minuten pro identischer Anfrage

  • Automatische Wiederholung bei Netzwerkfehlern

  • Ausgaben als für das Modell lesbarer Text formatiert

Roadmap

  • v0.2 – INMET (Stationen + Beobachtungsdaten mit Token) und Boletim Focus

  • DOU: Suche im Diário Oficial da União (wartet auf stabile öffentliche API)

  • TSE: Wahlergebnisse

  • Veröffentlichung auf PyPI (uvx mcp-brasil)

  • Optionaler streamable-http-Transport

Lizenz

MIT

Install Server
A
license - permissive license
A
quality
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
2Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Connects AI agents to 28 Brazilian public APIs, providing over 200 tools to access data on economy, legislation, transparency, and the judiciary. It enables complex queries and cross-referencing of government datasets like IBGE, the Central Bank, and the National Congress through natural language.
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables LLMs to access Brazilian IBGE statistical data (population, economy, agriculture) via natural language, with tools for querying aggregated data and metadata.
  • A
    license
    A
    quality
    C
    maintenance
    Exposes the BrasilAPI as MCP tools, enabling AI agents to query Brazilian public data such as CEP, CNPJ, DDD, IBGE, banks, PIX, FIPE, NCM, exchange rates, taxes, weather, CVM information, holidays, ISBN, domains, stock tickers, and TUSS.
    41
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • Cross-asset market data for AI agents: forex, equities, Brazil macro (BCB/B3), crypto.

  • Brazilian Open Finance MCP — 30+ banks (Itaú, Nubank, etc.) to Claude/Cursor. Read-only.

  • Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lucianoon/mcp-brasil'

If you have feedback or need assistance with the MCP directory API, please join our Discord server