
Mcp Brasil Public Apis
Wire your coding agent to 28 Brazilian government and public data APIs through one MCP server for economy, law, transparency, elections, health, and more.
Overview
mcp-brasil-public-apis is an agent skill for the Build phase that connects AI agents to 28 Brazilian public APIs via the mcp-brasil MCP server.
Install
npx skills add https://github.com/aradotso/trending-skills --skill mcp-brasil-public-apisWhat is this skill?
- MCP server exposing 213 tools, 55 resources, and 45 prompts across 28 Brazilian public APIs
- 26 APIs need no key; 2 use free registrations with env vars such as TRANSPARENCIA_API_KEY
- pip and uv install paths plus Claude Desktop JSON config with uvx module launch
- Natural-language queries over IBGE, Banco Central, transparency, judiciary, and legislative data
- 26 APIs require no API key
Adoption & trust: 763 installs on skills.sh; 31 GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
Your agent needs Brazilian government or statistical data but you do not want to maintain separate API clients and auth for each portal.
Who is it for?
Builders shipping Brazil-focused agents, dashboards, or research tools who standardize on MCP for external data.
Skip if: Products with no Brazil domain requirement or teams forbidden from outbound government API calls.
When should I use this skill?
Triggers include use mcp-brasil, connect to Brazilian government APIs, query Brazilian public data, query IBGE or Banco Central, or setup MCP server for Brazil APIs.
What do I get? / Deliverables
Your MCP client loads mcp-brasil so the agent can query IBGE, transparency, legislative, and related public APIs through one protocol surface.
- Working MCP server entry in client config
- Agent-callable tools over Brazilian public datasets
Recommended Skills
Journey fit
MCP server setup is an integration task you do while building the agent product, not during initial idea research. The skill’s purpose is connecting external public APIs via MCP—canonical placement is build → integrations.
How it compares
MCP integration server—not a standalone REST SDK cheat sheet or a skills-only workflow without MCP hosting.
Common Questions / FAQ
Who is mcp-brasil-public-apis for?
Indie developers and small teams building AI agents that must read Brazilian public economic, legal, electoral, or transparency data in production or research.
When should I use mcp-brasil-public-apis?
During Build while configuring agent-tooling: when triggers like use mcp-brasil, query IBGE or Banco Central, or setup MCP for Brazil APIs match your task.
Is mcp-brasil-public-apis safe to install?
It enables network access to third-party government APIs and optional API keys; review the Security Audits panel on this Prism page and your MCP client permissions before enabling.
SKILL.md
READMESKILL.md - Mcp Brasil Public Apis
# mcp-brasil: MCP Server for 28 Brazilian Public APIs > Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection. `mcp-brasil` is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server that exposes 213 tools, 55 resources, and 45 prompts across 28 Brazilian public APIs — letting AI agents (Claude, GPT, Copilot, Cursor, etc.) query government data in natural language. 26 APIs require no key; only 2 need free registrations. --- ## Installation ```bash # pip pip install mcp-brasil # uv (recommended) uv add mcp-brasil ``` --- ## Quick Setup by Client ### Claude Desktop Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows): ```json { "mcpServers": { "mcp-brasil": { "command": "uvx", "args": ["--from", "mcp-brasil", "python", "-m", "mcp_brasil.server"], "env": { "TRANSPARENCIA_API_KEY": "$TRANSPARENCIA_API_KEY", "DATAJUD_API_KEY": "$DATAJUD_API_KEY" } } } } ``` ### VS Code / Cursor Create `.vscode/mcp.json` in your project root: ```json { "servers": { "mcp-brasil": { "command": "uvx", "args": ["--from", "mcp-brasil", "python", "-m", "mcp_brasil.server"], "env": { "TRANSPARENCIA_API_KEY": "$TRANSPARENCIA_API_KEY", "DATAJUD_API_KEY": "$DATAJUD_API_KEY" } } } } ``` ### Claude Code CLI ```bash claude mcp add mcp-brasil -- uvx --from mcp-brasil python -m mcp_brasil.server ``` ### HTTP Transport (other clients) ```bash fastmcp run mcp_brasil.server:mcp --transport http --port 8000 # Server at http://localhost:8000/mcp ``` --- ## Environment Variables Create a `.env` file or export in your shell: ```bash # Optional — 26 other APIs work without any keys TRANSPARENCIA_API_KEY=your_key_here # https://portaldatransparencia.gov.br/api-de-dados/cadastrar-email DATAJUD_API_KEY=your_key_here # https://datajud-wiki.cnj.jus.br/api-publica/acesso # Tuning MCP_BRASIL_TOOL_SEARCH=bm25 # bm25 | code_mode | none (default: bm25) MCP_BRASIL_HTTP_TIMEOUT=30.0 # seconds MCP_BRASIL_HTTP_MAX_RETRIES=3 ``` --- ## API Coverage (28 Features, 213 Tools) | Category | Feature Key | API | Tools | |---|---|---|---| | Economic | `ibge` | IBGE — states, municipalities, statistics | 9 | | Economic | `bacen` | Banco Central — Selic, IPCA, FX, PIB, 190+ series | 9 | | Legislative | `camara` | Câmara dos Deputados — deputies, bills, votes, expenses | 10 | | Legislative | `senado` | Senado Federal — senators, bills, votes, committees | 26 | | Transparency | `transparencia` | Portal da Transparência — contracts, spending, sanctions | 18 | | Transparency | `tcu` | TCU — rulings, ineligible bidders | 8 | | TCE (states) | `tce_sp/rj/rs/sc/pe/ce/rn/pi/to` | 9 State audit courts | 39 | | Judiciary | `datajud` | DataJud/CNJ — court cases, movements | 7 | | Judiciary | `jurisprudencia` | STF, STJ, TST — rulings, precedents | 6 | | Electoral | `tse` | TSE — elections, candidates, campaign finance | 15 | | Environment | `inpe` | INPE — wildfires, deforestation | 4 | | Environment | `ana` | ANA — hydrological stations, reservoirs | 3 | | Health | `saude` | CNES/DataSUS — facilities, professionals, beds | 4 | | Oceanography | `tabua_mares` | Tide tables for Brazilian ports | 7 | | Procurement | `pncp` | PNCP — public contracts (Lei 14.133/2021) | 6 | | Procurement | `dadosabertos` | ComprasNet/SIASG | 8 | | Utilit