npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

brazilian-dev-mcp

v1.1.0

Published

MCP server com utilitários para desenvolvedores brasileiros — CPF, CNPJ, CEP, telefone, moeda, dados fake e mais

Readme

Brazilian Dev MCP

Servidor MCP (Model Context Protocol) com ferramentas utilitárias para desenvolvedores que trabalham com dados brasileiros — CPF, CNPJ, CEP, telefones, moeda, validações, dados fake e mais.

Instalação

git clone https://github.com/dan94k/brazilian-dev-mcp.git
cd brazilian-dev-mcp
npm install

Uso

Com Claude Desktop

Adicione ao seu claude_desktop_config.json:

{
  "mcpServers": {
    "brazilian-dev": {
      "command": "npx",
      "args": ["tsx", "caminho/para/brazilian-dev-mcp/src/index.js"]
    }
  }
}

Com opencode

Adicione ao seu opencode.json (no diretório do projeto ou em ~/.config/opencode/opencode.json):

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "brazilian-dev": {
      "type": "local",
      "command": ["npx", "tsx", "caminho/para/brazilian-dev-mcp/src/index.js"],
      "enabled": true
    }
  }
}

Após salvar, reinicie o opencode para que as mudanças tenham efeito.

Com MCP Inspector (desenvolvimento)

npm run dev

Tools

| Tool | Descrição | Status | |------|-----------|--------| | validar_cpf | Valida se um CPF é válido e retorna o motivo da invalidez | ✅ | | gerar_cpf | Gera um CPF válido aleatório (módulo 11) | ✅ | | validar_cnpj | Valida CNPJ (formato numérico e alfanumérico) | ✅ | | gerar_cnpj | Gera um CNPJ válido aleatório (módulo 11) | ✅ | | consultar_cep | Consulta endereço pelo CEP na API ViaCEP | ✅ | | validar_cep | Valida CEP com regex /^\d{5}-?\d{3}$/ | ✅ | | consultar_cotacao | Consulta cotação de moedas (BRL, USD, EUR) via API AwesomeAPI | ✅ | | validar_email | Valida e-mail com regex | ⬜ | | validar_url | Valida URL usando construtor nativo URL | ⬜ | | validar_ipv4 | Valida IPv4 (4 octetos de 0-255) | ⬜ | | validar_ipv6 | Valida IPv6 (8 grupos de 4 hex) | ⬜ | | gerar_lorem | Gera Lorem Ipsum com X palavras | ⬜ | | eh_feriado | Verifica se uma data é feriado nacional | ⬜ | | eh_dia_util | Verifica se uma data é dia útil | ⬜ |

Arquitetura

src/
  index.js              → Entrypoint: cria McpServer, conecta StdioServerTransport
  registerTools.js      → Registra todas as tools no servidor
  handlers/             → Um arquivo por tool handler
    validateCPF.js
    generateCPF.js
    validateCNPJ.js
    generateCNPJ.js
    validateCEP.js
    searchCEP.js
    getCurrencyQuote.js

Design: Tools independentes

Cada tool é autocontida. Os handlers não dependem de outros arquivos do projeto — cada um contém toda a lógica necessária para funcionar. Isso significa que alguns códigos podem estar duplicados entre handlers, e isso é intencional. O objetivo é:

  • Zero acoplamento: cada tool pode ser entendida, testada e modificada isoladamente
  • Facilidade de contribuição: basta criar um handler novo em src/handlers/ e registrar em registerTools.js

Convenção de idioma

  • pt-BR (português brasileiro): tudo que o usuário final vê ou interage — nomes de tools, parâmetros, descrições, mensagens de retorno, propriedades do JSON de resposta.
  • Inglês: código interno — variáveis, funções, imports, lógica, nomes de arquivos

Exemplo: a tool se chama validar_cpf, mas a função interna é validateCPF.

Contribuindo

Contribuições são muito bem-vindas! Sinta-se livre para:

  • Implementar novas tools da lista de planejadas acima
  • Reportar bugs via Issues
  • Sugerir novas funcionalidades que não estão na lista
  • Melhorar documentação ou testes

Padrões para novas tools

  • Handler exporta uma função nomeada (em inglês)
  • Input schema usa z.object() do zod
  • Handler retorna { content: [{ type: "text", text: JSON.stringify(result) }] }
  • Nomes de tools, parâmetros e descrições em pt-BR
  • Código interno em inglês
  • Cada handler é independente — não importe outros handlers

Stack

  • Runtime: Node.js (ESM)
  • Execução: tsx
  • Schema: zod
  • MCP SDK: @modelcontextprotocol/sdk
  • Testes: vitest

Licença

MIT