brasil-api-mcp-server

by mauricio-cantu
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

BrasilAPI MCP 服务器

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

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

工具

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

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

发展

安装依赖项:

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)
-
security - not tested
F
license - not found
-
quality - not tested

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

  1. Tools
    1. Development
      1. Debugging
    2. Integration with AI applications
      1. Running through Smithery
      2. Usage with Claude
      3. Cursor and other integrations
      4. Running the server with a local copy
    3. Server's capabilities inspection
      1. Project structure
        ID: x84kncg722