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

cloudbroker-mcp

v0.5.0

Published

MCP server para consultar dados de FinOps do CloudBroker (custo, forecast, IA, recomendações, anomalias) via assistente de IA.

Readme

cloudbroker-mcp

Servidor MCP para consultar dados de FinOps do CloudBroker (custo por app/grupo, forecast, uso de IA, recomendações, anomalias) direto de um assistente de IA — sem entrar na console.

Leitura + escrita completas: budget, criação/edição de App e Grupo, e descoberta automática de apps a partir de recursos não tagueados (ACDE Lite). connect_aws ainda não tem prioridade definida — ver docs/mvp-mcp-server.md.

Configuração (Claude Desktop, Cursor, etc.)

Pegue sua CloudBroker API key (cb_live_…) em Configurações → API key e adicione:

{
  "mcpServers": {
    "cloudbroker": {
      "command": "npx",
      "args": ["-y", "cloudbroker-mcp"],
      "env": { "CLOUDBROKER_API_KEY": "cb_live_xxx" }
    }
  }
}

Variável opcional CLOUDBROKER_ENDPOINT (default https://api.cloudbroker.app.br).

Tools disponíveis

Leitura

| Tool | Descrição | |---|---| | get_cost_overview | Custo por app/grupo (month YYYY-MM ou months) | | list_apps | Apps/serviços cadastrados | | list_groups | Grupos/produtos de negócio | | get_forecast | Projeção de custo de fim de mês | | get_ai_usage | Custo de IA por produto/modelo (month ou days) | | get_recommendations | Plano de otimização | | get_anomalies | Anomalias de custo | | discovery_scan | Descobre apps a partir de recursos sem tag, agrupados por similaridade (threshold opcional) |

Escrita ✏️

| Tool | Descrição | |---|---| | set_budget | Define budget mensal (USD) + alerta (%) de um app/grupo | | create_app | Cria um novo app (name obrigatório; description, color, tags opcionais) | | update_app | Edita um app existente (nome, cor, tags, budget) | | create_group | Cria um novo grupo/produto (name obrigatório) | | update_group | Edita um grupo existente (nome, budget) |

✏️ Tools de escrita alteram dados. O cliente MCP (Claude Desktop, etc.) pede sua aprovação a cada chamada. A API key precisa de permissão de escrita (os endpoints REST correspondentes aceitam a cb-key via requireAuthOrApiKey).

Exemplos de perguntas

  • "Qual meu custo de nuvem em maio por produto?"
  • "Qual a projeção de gasto desse mês?"
  • "Tem alguma anomalia de custo recente?"
  • "Quanto gastei de IA nos últimos 30 dias por modelo?"
  • "Define o budget do app backend em $45 e alerta em 90%"
  • "Cria um app chamado checkout com a tag app=checkout"
  • "Roda a descoberta de apps e me diga quais recursos não estão atribuídos a nenhum app"

Autenticação

A API key autentica via header x-api-key nos endpoints REST do CloudBroker (middleware requireAuthOrApiKey). A key dá acesso de leitura à sua conta — trate como segredo e rotacione em Configurações → API key se necessário.

Desenvolvimento

npm install
npm test     # testa os handlers com API mockada
npm start    # inicia o servidor (precisa de CLOUDBROKER_API_KEY)