mcp-brasil
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 |
| Bevölkerung, BIP, Suche nach Gemeinden und generische Abfrage beliebiger SIDRA-Aggregate |
Banco Central |
| SGS-Zeitreihen (Selic, IPCA...), PTAX-Kurse, Währungsliste und Erwartungen des Boletim Focus |
INMET |
| Liste der Wetterstationen und beobachtete stündliche Daten (Beobachtungsdaten erfordern Token) |
Câmara dos Deputados |
| 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 syncKonfiguration
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-brasilOptionales 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 srcArchitektur
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 v2Stdio-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
Maintenance
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
- AlicenseNot gradedqualityNot gradedmaintenanceConnects 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.
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to access Brazilian IBGE statistical data (population, economy, agriculture) via natural language, with tools for querying aggregated data and metadata.
- AlicenseAqualityDmaintenanceEnables AI agents to access Brazilian statistical, geographic, and economic data in real-time via IBGE public APIs.3219MIT
- AlicenseAqualityCmaintenanceExposes 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.41Apache 2.0
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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