Brazil IBGE Geospatial Census MCP
# brazil-ibge-geospatial-census-mcp
Official Brazilian geospatial and census division server over Model Context Protocol (MCP) powered by the IBGE Localidades API. Supply-chain teams, regional economists, and LatAm GIS analysts can inspect all 27 states, 5,570 municipalities, mesoregions, and macro-regions with zero API keys and zero sign-up. It connects right away.
## Hosted endpoint
Point any Streamable HTTP MCP client at the free hosted Cloudflare Worker endpoint.
```text
https://brazil-ibge-geospatial-census-mcp.lipmichal.workers.dev/mcp
```
## Available tools
| Tool | Purpose |
| --- | --- |
| `list_brazil_ibge_states` | List all 27 Brazilian federal states (UF) with IBGE codes and macro-region assignments |
| `list_brazil_state_municipalities` | Search official IBGE municipalities within a Brazilian state by UF or 2-digit IBGE code |
| `get_brazil_municipality_detail` | Retrieve full IBGE microregion, mesoregion, and immediate/intermediate region hierarchy for a municipality |
| `list_brazil_ibge_regions` | List Brazil five official IBGE macro-regions with their member state UF codes |
| `list_brazil_ibge_mesoregions` | List official Brazilian IBGE mesoregions nationwide or filtered by state UF |
## Client configuration
Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.
```json
{
"mcpServers": {
"brazil-ibge-geospatial-census": {
"url": "https://brazil-ibge-geospatial-census-mcp.lipmichal.workers.dev/mcp"
}
}
}
```
## Run locally over stdio
You can also run the server locally on Node 20 or newer over stdio.
```bash
npm install
npm run build
npm start
```
## Compliance and reliability
Every upstream request queries `servicodados.ibge.gov.br/api/v1/localidades/` with a polite `User-Agent` header (`mcpstamp-brazil-ibge-geospatial-census/1.0.1 (hello@mcpstamp.com)`) and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates future protocol versions down to the SDK version cleanly.
## More MCP servers and readiness check
This server belongs to the public MCP directory maintained by MCPStamp and Zovo.
- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and client setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.brazil-ibge-geospatial-census-mcp) with hosted commercial servers and priority endpoints.
TDQS
Scored across 5 tools
Each tool targets a distinct IBGE geography level or action, and list_brazil_state_municipalities versus get_brazil_municipality_detail is clearly separated by verb and input type. There is minor conceptual overlap between macro-regions and mesoregions, but the descriptions make the distinction clear.
All names follow a verb_noun pattern with Brazil/IBGE prefixes, and the list_ versus get_ distinction is meaningful. One tool drops the ibge token (list_brazil_state_municipalities), so the pattern is not perfectly uniform.
Five tools map cleanly to the main reference levels: macro-regions, states, municipalities, municipality detail, and mesoregions. The set is focused and none of the tools appears redundant.
The core IBGE hierarchy is covered, but there is no standalone listing for microregions, immediate regions, or intermediate regions, and nationwide municipality lookup by name is not supported. Despite the 'Census' and 'Geospatial' naming, no census variables or spatial geometry operations are exposed.