Mcp Brasil Api

io.github.codespar由 GitHub 帳號 codespar 發布v0.2.2更新於 Oct 24, 2026

MCP server for BrasilAPI — CEP, CNPJ, banks, FIPE, holidays, weather

概覽

AI 產生的概覽

本機 MCP 伺服器,串接 BrasilAPI,可查詢巴西郵遞區號、企業、銀行、FIPE 車價、假日、天氣等公開資料。

可以做什麼
  • 依 CEP 查詢巴西地址,依 CNPJ 查詢企業資訊
  • 列出巴西銀行、Pix 參與機構以及 CVM 註冊的券商
  • 查詢 FIPE 參考表、車輛品牌、車型與價格
  • 取得假日、IBGE 州與市鎮、DDD 區碼、NCM 稅則代碼、ISBN 圖書資料與 .br 網域註冊資訊
  • 取得 CPTEC/INPE 的天氣預報、首府與機場天氣以及海洋預報
  • 讀取 Selic、CDI、IPCA 等巴西目前經濟利率
適用情境
適合助理需要巴西公開參考資料時使用,例如核對地址或企業資料、查詢車價、假日、稅率或當地天氣,不必自行撰寫 API 呼叫。
執行需求
以 stdio 在本機執行,通常透過 npx 啟動 npm 套件 @codespar/mcp-brasil-api,因此需要 Node.js 以及連線至 BrasilAPI 的網路。無需驗證、API 金鑰或環境變數。
安裝前請注意
所有工具都是對免費公開 API 的唯讀查詢;查詢內容(如 CEP、CNPJ 或網域)會傳送到 BrasilAPI 的第三方伺服器。README 另提到獨立的付費企業版服務,不屬於此伺服器。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Brasil Api,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@codespar/mcp-brasil-api

MCP server for BrasilAPI — free public data APIs for CEP, CNPJ, banks, holidays, FIPE, and more

[npm] [License: MIT]

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

json
{  "mcpServers": {    "brasil-api": {      "command": "npx",      "args": ["-y", "@codespar/mcp-brasil-api"]    }  }}

Claude Code

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

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

json
{  "servers": {    "brasil-api": {      "command": "npx",      "args": ["-y", "@codespar/mcp-brasil-api"]    }  }}

Tools (24)

ToolPurpose
get_cepLook up address by CEP (Brazilian postal code)
get_cnpjLook up company information by CNPJ
get_banksList all Brazilian banks with codes and names
get_holidaysList national holidays for a given year
get_fipe_brandsList vehicle brands by type from FIPE table
get_fipe_priceGet vehicle price from FIPE table by code
get_dddGet state and cities for a DDD (area code)
get_isbnLook up book information by ISBN
get_ncmLook up NCM tax classification code
get_cptec_weatherGet weather forecast for a city (CPTEC/INPE)
get_pix_participantsList Pix participant institutions (PSPs/banks enrolled in Pix)
get_domain_infoLook up .br domain registration info
get_ibge_municipalitiesList all municipalities for a Brazilian state (IBGE data)
get_tax_ratesGet current Brazilian tax/economic rates (Selic, CDI, IPCA)
get_cptec_citiesSearch CPTEC/INPE cities by name for weather forecasts
get_cep_v1Look up address by CEP using BrasilAPI v1 (single-provider, often faster than v2)
get_fipe_vehiclesList vehicle models for a given FIPE brand code and vehicle type
get_fipe_tablesList FIPE reference tables (months/years available for FIPE queries)
get_cptec_airport_weatherGet current airport weather (METAR) by ICAO code from CPTEC/INPE
get_cptec_capitals_weatherGet current weather conditions for all Brazilian state capitals
get_cptec_ocean_forecastGet ocean/wave forecast for a coastal city (CPTEC/INPE)
get_ibge_statesList all Brazilian states/UFs with IBGE codes and metadata
get_corretorasList all CVM-registered Brazilian brokerages (corretoras)
get_corretoraLook up a single CVM-registered brokerage by CNPJ

Authentication

No authentication required. BrasilAPI is a free public API.

Sandbox / Testing

No sandbox needed. BrasilAPI is free and open for all requests.

Get your credentials

No credentials needed. Just install and use.

Environment Variables

No environment variables required.

Roadmap

v0.2 (planned)

  • get_pix_participants — Get list of Pix participant institutions
  • get_domain_info — Get domain registration info
  • get_vehicle_info — Get vehicle info by license plate (FIPE)
  • get_ibge_municipalities — List municipalities by state (IBGE)
  • get_tax_rates — Get current tax rates (Selic, CDI, IPCA)

v0.3 (planned)

  • get_cvm_funds — Get investment fund data from CVM
  • get_election_results — Get election results by region

Want to contribute? Open a PR or request a tool.

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

來源:packages/identity/brasil-api/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分