Skip to main content
Glama

BrasilAPI MCP 服务器

铁匠徽章

无缝查询来自巴西资源的各种数据。通过统一界面访问邮政编码、区号、银行、节假日、税费等信息。轻松使用BrasilAPI中丰富且最新的数据增强您的 AI 代理和应用程序。

在此处查看 BrasilAPI 的完整官方文档。

工具

该服务器提供查询 BrasilAPI 所有可用端点的工具。其底层使用以下 JS 客户端与 API 进行通信: https://github.com/WillianAgostini/brasilapi-js

检查Smithery 中的工具页面来检查和测试每一个。

Related MCP server: mcp-server-airbnb

发展

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:

npm run inspector

要生成更新的构建并检查:

npm run build-and-inspect

检查器将提供一个 URL 来访问浏览器中的调试工具。

与AI应用程序集成

穿过史密斯镇

通过Smithery自动运行服务器:

npx -y @smithery/cli install @mauricio-cantu/brasil-api-mcp-server

与 Claude 一起使用

npx -y @smithery/cli@latest install @mauricio-cantu/brasil-api-mcp-server --client claude

光标和其他集成

查看Smithery中的服务器页面以获取其他集成选项,例如 Cursor 等。

使用本地副本运行服务器

下载此项目后,您可以使用node运行服务器:

node /absolute/path/to/brasil-api-mcp-server/build/index.js

如果您愿意的话,在项目的根目录下还有一个 Dockerfile 来构建和运行映像。

服务器能力检查

您可以使用 Smithery 检查此 MCP 服务器的功能:

npx -y @smithery/cli@latest inspect @mauricio-cantu/brasil-api-mcp-server

这将向您显示所有可用的工具、它们的参数以及如何使用它们。

项目结构

src/ ├── apiClient/ # BrasilAPI client ├── tools/ # Tools implementations ├── types/ # Interfaces and types ├── utils/ # Utility functions └── index.ts # MCP main file (server setup and tools listing)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mauricio-cantu/brasil-api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server