# mcp-brasil

An independent MCP server that connects AI agents to 70 Brazilian public data sources covering the economy, legislation, transparency, the judiciary, elections, health, education, public safety and aviation.

mcp-brasil is an MCP server for 70 Brazilian public data sources, exposing 533 tools, 131 resources and 102 prompts across 15 subject areas, including the economy, legislation, transparency, the judiciary, elections, the environment, health, education, public safety, subnational fiscal data and aviation. Sixty-six of the underlying APIs need no key, and four require a free key that takes about a minute to register.

Large datasets are cached locally with SQL access through embedded DuckDB, including roughly 813,000 property records, Brazilian electoral data from 2014 to 2024 covering candidates, assets, votes and social networks, fuel prices, national school census and exam data, and public safety and civil aviation datasets. A cross-referencing tool builds an execution plan that combines multiple APIs into one query, a batch tool runs several queries in parallel, and a search step filters the 533 tools down to the ones relevant to a given request. Adding a new data source only requires creating a folder, with no manual registration step.

It is an independent project, not an official government service; the code is MIT licensed but each data source keeps its own license, and it is written in Python.

Website: https://github.com/Mcp-Brasil/mcp-brasil
