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

mcp-blackbots

v3.0.2

Published

MCP server bridging Claude clients to BlackBots tools. v3: dynamic tool discovery (no hardcoded tools), OAuth device flow, talks only to https://blackbots.com.br.

Readme

mcp-blackbots

MCP server (Model Context Protocol) que expõe dados de mercado da B3 + OKX e o histórico de ideias do CNPI BlackBots como ferramentas pro Claude.

Funciona em qualquer lugar (Claude Code, Claude Desktop, Cursor, etc.) — só precisa de conta BlackBots ativa.

Install

claude mcp add -s user mcp-blackbots -- npx -y mcp-blackbots

(Ou registra manualmente no ~/.claude.json.)

Como usar

Após registrar, peça qualquer coisa no Claude:

> qual o setup atual do PETR4?

Na primeira tool chamada, o Claude vai mostrar uma mensagem do tipo:

Pra usar essa ferramenta, autorize o mcp-blackbots na sua conta BlackBots. Abre https://blackbots.com.br/mcp/auth?code=ABCD-1234

Abre o link, faz login na BlackBots (se ainda não está), clica em "Autorizar" e refaz a pergunta no chat. A partir daí, o token fica salvo em ~/.mcp-blackbots/auth.json e nunca mais é pedido (até você revogar).

Tools

| Tool | Descrição | |---|---| | get_recent_candles | Últimos N candles OHLCV de um ativo | | get_indicators | RSI, ATR, EMA, Bollinger, ADX, VWAP, S/R, vol médio | | get_order_book | Top-N bids/asks (snapshot atual) | | get_funding_open_interest | Funding rate + OI da OKX | | get_aggressor_flow | Compra/venda agressora últimos N min | | get_correlated_assets | Ativos correlacionados (SPY/QQQ/DXY/Gold/Oil; sector peers) | | get_macro_calendar | Calendário macro (Kalshi US + BR Copom/IPCA) | | get_recent_outcomes | Histórico de ideias do CNPI + hit rate | | get_active_thesis | Tese ativa do CNPI pra um ativo |

Requisitos

Configuração avançada

| Env var | Default | Descrição | |---|---|---| | MCP_BLACKBOTS_API_BASE_URL | https://api.blackbots.com.br | Endpoint da API (override pra dev) | | MCP_BLACKBOTS_STATE_DIR | ~/.mcp-blackbots | Onde salva o token + estado OAuth | | MCP_LOG_FILE | (stderr) | Caminho de log opcional | | LOG_LEVEL | info | Nível de log pino |

Revogar acesso

No site da BlackBots → Configurações → Tokens MCP → "Revogar". Próxima tool call vai falhar e o fluxo de autorização recomeça.

Build a partir do source

npm install
npm run build
npm link

Versão

v2.0.0 — totalmente HTTP, sem Redis direto, com OAuth device flow.