This repository provides a server to seamlessly query BrasilAPI data, including postal codes, banks, and holidays, through a unified interface for AI agents and applications. It enhances access to rich
This server provides a unified interface to query data from BrasilAPI resources, including postal codes, area codes, banks, holidays, and taxes. It enhances AI agents and applications with updated data from BrasilAPI.
Check the complete and official documentation from BrasilAPI here.
The server offers tools for every BrasilAPI endpoint, utilizing the brasilapi-js
client (https://github.com/WillianAgostini/brasilapi-js). Inspect and test these tools on the Tools page in Smithery.
Install dependencies with npm install
, build with npm run build
, and use npm run watch
for auto-rebuild during development. Debug using the MCP Inspector via npm run inspector
or npm run build-and-inspect
.
Run the server via Smithery using npx -y @smithery/cli install @mauricio-cantu/brasil-api-mcp-server
. For Claude, use npx -y @smithery/cli@latest install @mauricio-cantu/brasil-api-mcp-server --client claude
. Other integrations, like Cursor, are available on the Smithery Server page. Run locally with node /absolute/path/to/brasil-api-mcp-server/build/index.js
or use the provided Dockerfile.
Inspect the server's capabilities with npx -y @smithery/cli@latest inspect @mauricio-cantu/brasil-api-mcp-server
.
src/
⌘⌘⌘ apiClient/ # BrasilAPI client
⌘⌘⌘ tools/ # Tools implementations
⌘⌘⌘ types/ # Interfaces and types
⌘⌘⌘ utils/ # Utility functions
⌘⌘⌘ index.ts # MCP main file (server setup and tools listing)
mauricio-cantu/brasil-api-mcp-server
March 19, 2025
March 21, 2025
TypeScript