A Model Context Protocol (MCP) server that provides tools to query BrasilAPI across different clients and LLMs. Enhance your AI apps with rich data from Brasil resources.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"brasil-api-mcp-server": {
"args": [
"-y",
"@mauricio-cantu/brasil-api-mcp-server"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Query a variety of data from Brasil resources seamlessly. Access information on postal codes, area codes, banks, holidays, taxes, and more through a unified interface. Enhance your AI agents and applications with rich and updated data from BrasilAPI effortlessly.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y '@mauricio-cantu/brasil-api-mcp-server' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked @mauricio-cantu/brasil-api-mcp-server against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in data / search
Query and manage PostgreSQL databases directly from AI assistants
Web and local search using Brave Search API
Production ready MCP server with real-time search, extract, map & crawl.
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
MCP Security Weekly
Get CVE alerts and security updates for Brasil Api Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Query a variety of data from Brasil resources seamlessly. Access information on postal codes, area codes, banks, holidays, taxes, and more through a unified interface. Enhance your AI agents and applications with rich and updated data from BrasilAPI effortlessly.
Check the complete and official documentation from BrasilAPI here.
This server provides tools to query every endpoint available from BrasilAPI. Under the hood, it uses this JS client to communicate with the API: https://github.com/WillianAgostini/brasilapi-js
Check the Tools page in Smithery to inspect and test each one of them.
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
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 to get other integration options such as Cursor and more.
After you've downloaded this project, you can run the server using node:
node /absolute/path/to/brasil-api-mcp-server/build/index.js
At the root of the project there's also a Dockerfile to build and run the image if you'd like.
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)