Skip to main content
Glama

Brasil API MCP

index.ts1.27 kB
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; // Import the tool modules import { registerCepTools } from "./tools/cep/index.js"; import { registerCnpjTools } from "./tools/cnpj/index.js"; import { registerBankTools } from "./tools/bank/index.js"; import { registerDddTools } from "./tools/ddd/index.js"; import { registerIbgeTools } from "./tools/ibge/index.js"; import { registerCambioTools } from "./tools/cambio/index.js"; import { registerRegistroBrTools } from "./tools/registrobr/index.js"; // Criando o servidor MCP const server = new McpServer({ name: "Brasil-API-MCP", version: "0.1.0", capabilities: { tools: {}, resources: {}, prompts: {} } }); // Register all tools registerCepTools(server); registerCnpjTools(server); registerBankTools(server); registerDddTools(server); registerIbgeTools(server); registerCambioTools(server); registerRegistroBrTools(server); async function main() { const transport = new StdioServerTransport(); await server.connect(transport); console.error("Brasil API Service running via stdio"); } main().catch((error) => { console.error("Fatal error in main():", error); process.exit(1); });

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/guilhermelirio/brasil-api-mcp'

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