Skip to main content
BA

Brasil API

@codespar/mcp-brasil-api Β· v0.2.2

πŸ‡§πŸ‡· BrazilDataAuth Β· No Authlive24 tools0 env vars

Brazilian public data: CEP lookup, CNPJ validation, bank codes, FIPE vehicle prices, holidays, and tax tables. No auth required.

Get started Β· freeView docs

MIT Β· runs locally with your own credentials

Package
@codespar/mcp-brasil-api
Version
0.2.2
npm dist-tag
latest
Category
Data
Auth
No Auth
Country
πŸ‡§πŸ‡· Brazil
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, with your own credentials.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variablesNone. This server's code reads no environment variable.
Restart and make the first callThe agent can call any of the 24 tools. Try get_cep first.
terminal
# Claude Code claude mcp add brasil-api -- npx -y @codespar/mcp-brasil-api@0.2.2 # then: /mcp to confirm the server is connected
Environment variablesnone

This server's code reads no environment variable.

Names read from the package code (@codespar/mcp-brasil-api@0.2.2). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials.

First call demoget_cep

"Look up address by CEP"

tools/callget_cepresult returned

Tools

What your agent can call.

24 tools, as the package's tools/list returns them.

get_cep

Look up address by CEP (Brazilian postal code)

get_cnpj

Look up company information by CNPJ

get_banks

List all Brazilian banks with codes and names

get_holidays

List national holidays for a given year

get_fipe_brands

List vehicle brands by type from FIPE table

get_fipe_price

Get vehicle price from FIPE table by code

get_ddd

Get state and cities for a DDD (area code)

get_isbn

Look up book information by ISBN

get_ncm

Look up NCM tax classification code

get_cptec_weather

Get weather forecast for a city (CPTEC/INPE)

get_pix_participants

List Pix participant institutions (PSPs/banks enrolled in Pix)

get_domain_info

Look up .br domain registration info

Names and descriptions come from the package's tools/list (@codespar/mcp-brasil-api@0.2.2). A kind (read, write, delete) is shown only when the package annotates its tools or each tool was verified one by one; neither exists for this server yet.

Compatibility

MCP is a protocol. Any client that speaks it can mount this server.

The CodeSpar runtime does not route this server. Mount it in your client over stdio Β· streamable-http.

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the Brasil API MCP server?

Run npx -y @codespar/mcp-brasil-api@0.2.2 and add the config block above to your MCP client: Claude Code, Cursor, Claude Desktop, VS Code, or any MCP-compatible client. No build step, no SDK required.

What can my agent do with Brasil API?

Brasil API exposes 24 tools for data. Your agent calls them directly; the full list is above.

How does Brasil API authenticate, and how are credentials stored?

Brasil API uses No Auth. Self-hosted, you hold the credentials: the server reads them from its environment variables.

How does Brasil API handle upstream API changes?

Every server is versioned independently on npm. The command on this page pins 0.2.2, the version whose tools are listed here; your agent keeps running it until you change the version.

Is Brasil API open source? How do I report a bug?

Yes. Brasil API is MIT-licensed and published on npm as @codespar/mcp-brasil-api, source on GitHub (link in the Details panel). Report issues on the package repository; security issues go to security@codespar.dev, and we respond within 24 hours.

Start in seconds.

Add the config above, set the variables, and your agent calls the tools.

Start in seconds demo
Add the server to your client with the config above.
Set the environment variables listed above.
Ask your agent for the first call.
Brasil API β€” MCP server Β· 24 tools | CodeSpar