Skip to main content
MCP server CX Codex

mcp-brasil-api — Claude Code MCP server: Brazilian data

Hands your agent Brazilian public data: addresses by CEP, companies by CNPJ, banks, holidays, weather and FIPE vehicle prices.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add mcp-brasil-api -- npx -y @codespar/mcp-brasil-api
Open on GitHub

What mcp-brasil-api does

This MCP server wraps BrasilAPI, a free public source of Brazilian records. It ships 24 tools. get_cep and get_cep_v1 resolve a postal code to an address, get_cnpj pulls company details, get_banks and get_corretoras list banks and brokerages, while get_fipe_price and get_fipe_vehicles cover vehicle pricing. Weather comes from CPTEC/INPE, including METAR by ICAO code, alongside holidays for a given year, DDD area codes, ISBN, NCM and the Selic, CDI and IPCA rates.

It runs through npx, so nothing gets installed globally. There is no API key and no environment variable to set, because BrasilAPI answers anyone. In Claude one line is enough: claude mcp add brasil-api -- npx -y @codespar/mcp-brasil-api. Cursor and VS Code take the same server through .cursor/mcp.json or .vscode/mcp.json.

Every tool calls an outside public API, so when that API is down the calls fail. And if your project has nothing to do with Brazil, skip this one: the toolset is built entirely around its registries and reference tables. MIT licensed, source in codespar/mcp-dev-latam.

What it helps with

  • resolve a Brazilian postal code to a street address
  • pull company registration details from a CNPJ
  • compare vehicle prices from the FIPE table
  • check national holidays for a chosen year
  • read a weather forecast or an airport METAR

Example prompts for the agent

  • Look up the address for CEP 01310-100
  • Show me the company data for CNPJ 00.000.000/0001-00
  • What is the current weather at airport SBGR?

How to install mcp-brasil-api

Platform CLI

claude mcp add mcp-brasil-api -- npx -y @codespar/mcp-brasil-api

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-brasil-api

How do I install mcp-brasil-api in Claude Code?

Run claude mcp add brasil-api -- npx -y @codespar/mcp-brasil-api. The server starts through npx, so you never install the package separately.

What does mcp-brasil-api do?

It gives the agent 24 tools against BrasilAPI: CEP and CNPJ lookups, bank and brokerage lists, holidays, CPTEC/INPE weather, the FIPE table, DDD, ISBN and NCM codes, plus current Selic, CDI and IPCA rates.

Does it need an API key or environment variables?

No. BrasilAPI is free and public, so there is no authentication and no environment variable to configure. Install the server and start querying.

Similar MCP servers

All MCP servers for Backend and APIs →

From the same set40

mcp-clip An MCP server for taking payments through Clip (PayClip) in Mexico. Agents get hosted payment links, card-token charges, refunds and payment lookups, priced in MXN. CX Codex +1 ★ 274repo stars mcp-cielo Wires Cielo payments into your coding agent: card sales, boleto, Pix, recurring charges and payment links, as 22 callable tools. Handy when billing logic lives in the repo you are editing. CX Codex +1 ★ 274repo stars mcp-celcoin An MCP server that hands your agent Celcoin's payment API: Pix charges, boletos, TED/DOC transfers, top-ups. Handy when a Brazilian payment has to happen from the chat. CX Codex +1 ★ 274repo stars mcp-c6 An MCP server exposing Pix, boleto and account calls for C6 Bank to your coding agent. The npm package is deprecated and its hosts do not resolve. CX Codex +1 ★ 274repo stars mcp-bigdatacorp Wires BigDataCorp into your agent: CPF and CNPJ lookups, vehicles, property, antifraud scoring. Useful when you build onboarding or credit flows for Brazil. CX Codex +1 ★ 274repo stars mcp-banco-do-brasil Wires your agent into Banco do Brasil's API: issue Pix charges, register boletos, read balances and account statements. CX Codex +1 ★ 274repo stars mcp-andreani Wires the Andreani courier API into your agent: shipments, tracking, rate quotes and labels handled from the chat. CX Codex +1 ★ 274repo stars mcp-airwallex Wires the Airwallex API into your coding agent: 20 tools for pay-ins, refunds, cross-border transfers and FX. CX Codex +1 ★ 274repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor