lookup_municipality
Pack: ibge-br · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/lookup_municipality for the schema, then POST the same URL with its arguments for the data.
Look up a single municipality by its 7-digit IBGE code, returning full hierarchy (micro/mesoregion, state, region). e.g. code=“3550308” → São Paulo (capital).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
code | string | yes | 7-digit IBGE municipality code, e.g. “3550308” (São Paulo) or “3304557” (Rio de Janeiro). |
Example call
Arguments
{
"code": "3550308"
}
curl
curl -X POST https://gateway.pipeworx.io/ibge-br/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"lookup_municipality","arguments":{"code":"3550308"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('lookup_municipality', {
"code": "3550308"
});
More examples
{
"code": "3304557"
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the ibge-br pack
{
"mcpServers": {
"ibge-br": {
"url": "https://gateway.pipeworx.io/ibge-br/mcp"
}
}
}
See Getting Started for client-specific install steps.