MCP Brazil Public Data
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Brazil Public DataLook up company data for CNPJ 00000000000191"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.

MCP Brazil Public Data
A modern Model Context Protocol server for Brazilian public data, backed by BrasilAPI — no API key required. Exposes 15 tools and 2 guided prompts covering companies (CNPJ), postal codes (CEP), banking, economy, geography, and more.
Inspired by the project alanpcf/brasil-data-mcp, but adding Streamable-HTTP transport.
Requirements
Python 3.10+
uv (or Docker, for the containerized setup)
Related MCP server: MCP DadosBR
Installation
uv venv
uv pip install -e ".[dev]"Running
The server supports two transports, selected via the MCP_TRANSPORT environment variable (see Configuration).
STDIO
The server speaks MCP over stdio by default (the transport used by most MCP clients such as Claude Desktop and Claude Code):
source .venv/bin/activate
mcp-brazil-public-dataStreamable HTTP
To serve over streamable HTTP instead:
source .venv/bin/activate
MCP_TRANSPORT=http mcp-brazil-public-dataThe HTTP endpoint is then available at http://0.0.0.0:8080/mcp/.
Docker
Build the image and run it in HTTP mode (the image defaults to HTTP on port 8080):
docker build -t mcp-brazil-public-data .
docker run --rm -p 8080:8080 mcp-brazil-public-dataOverride any setting at runtime with -e, e.g. a different port:
docker run --rm -p 9000:9000 -e MCP_PORT=9000 mcp-brazil-public-dataConfiguration
Variable | Default | Description |
|
| Transport to use: |
|
| Host/interface to bind when using HTTP. Use |
|
| Port to listen on when using HTTP. |
Available Tools
Companies & Finance
Tool | Description | Source |
| Company registration data (legal name, status, partners, CNAE) | Federal Revenue |
| CVM-authorized brokerage firm by CNPJ | CVM |
| List of ~250 registered banks | BACEN |
| Bank data by COMPE code | BACEN |
Location & Geography
Tool | Description | Source |
| Full address from a postal code (CEP) | Correios/ViaCEP |
| State and cities served by an area code (DDD) | — |
| 27 states (UFs) with IBGE codes | IBGE |
| Municipalities of a state with IBGE codes | IBGE |
Economy
Tool | Description | Source |
| Current economic indices (SELIC, CDI, IPCA) | BACEN |
| Current value of an index by symbol | BACEN |
| Foreign currencies available for quotes | BACEN |
| PTAX quote of a currency on a date | BACEN |
Reference
Tool | Description | Source |
| National holidays for a year | — |
| Book metadata by ISBN | CBL/Google Books |
| Status of a | Registro.br |
Guided Prompts
Prompt | Description |
| Looks up a CNPJ and produces a structured company analysis |
| Combines current economic rates with the year's holidays |
Development
Testing
Run the test suite with:
pytestLicense
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/devantage/mcp-brazil-public-data'
If you have feedback or need assistance with the MCP directory API, please join our Discord server