The BrasilAPI MCP Server is a Model Context Protocol (MCP) server that provides tools to query BrasilAPI across different clients and LLMs. It allows you to access a variety of data from Brasil resources, including postal codes, area codes, banks, holidays, taxes, and more. This server enhances your AI applications with rich and updated data from BrasilAPI.
This server provides tools to query every endpoint available from BrasilAPI. Under the hood, it uses the BrasilAPI JS client to communicate with the API.
You can inspect and test each tool on the Tools page in Smithery.
Install dependencies:
shell
npm install
Build the server:
shell
npm run build
For development with auto-rebuild:
shell
npm run watch
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
To generate an updated build and inspect:
npm run build-and-inspect
The Inspector will provide a URL to access debugging tools in your browser.
Run the server automatically via Smithery:
npx -y @smithery/cli install @mauricio-cantu/brasil-api-mcp-server
npx -y @smithery/cli@latest install @mauricio-cantu/brasil-api-mcp-server --client claude
Check the Server page in Smithery for other integration options such as Cursor and more.
After downloading this project, you can run the server using node
:
node /absolute/path/to/brasil-api-mcp-server/build/index.js
Alternatively, you can build and run the Docker image provided in the project.
You can inspect this MCP server's capabilities using Smithery:
npx -y @smithery/cli@latest inspect @mauricio-cantu/brasil-api-mcp-server
This will show you all available tools, their parameters, and how to use them.
src/
├── apiClient/ # BrasilAPI client
├── tools/ # Tools implementations
├── types/ # Interfaces and types
├── utils/ # Utility functions
└── index.ts # MCP main file (server setup and tools listing)
The BrasilAPI MCP Server is designed to enhance AI applications with rich data from Brasil resources. It provides a unified interface to query BrasilAPI across different clients and LLMs.
smithery.ai/server/@mauricio-cantu/brasil-api-mcp-server
No releases published
No packages published