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

intelligence-hub-mcp

v0.1.0

Published

MCP server for the Fan Intelligence Hub — chat, trend radar and internal knowledge base (RAG) as tools for Claude Code, Claude Desktop and Cursor, scoped to your hub account.

Readme

Intelligence Hub MCP

Servidor MCP que dá ao Claude Code / Claude Desktop / Cursor acesso ao Intelligence Hub da Fan — o chat conversacional, o radar de tendências e a base interna (RAG) — como ferramentas nativas do seu agente, passando pela sua conta do hub.

Toda chamada roteia pelo backend do hub e herda automaticamente: o vínculo com o seu usuário, o escopo de dados e o log de auditoria no perfil. A chave dos providers de IA nunca toca a sua máquina.

Como funciona

Claude Code/Desktop/Cursor  ──stdio──▶  intelligence-hub-mcp  ──HTTPS (Bearer ih_mcp_…)──▶  Hub /mcp

Você se autentica com uma chave MCP gerada no seu perfil do hub. O MCP só age em nome da sua conta.

1. Gere sua chave MCP

No app do hub → Perfil → Conexão MCP → Gerar chave. Copie a chave (ih_mcp_…) — ela só aparece uma vez.

2. Configure no seu cliente

Claude Code (CLI)

claude mcp add intelligence-hub \
  --env IH_API_TOKEN=ih_mcp_sua_chave \
  --env IH_API_URL=https://seu-backend \
  -- npx -y intelligence-hub-mcp

Claude Desktop (claude_desktop_config.json) / Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "intelligence-hub": {
      "command": "npx",
      "args": ["-y", "intelligence-hub-mcp"],
      "env": {
        "IH_API_URL": "https://seu-backend",
        "IH_API_TOKEN": "ih_mcp_sua_chave"
      }
    }
  }
}

IH_API_URL é a origin do backend do hub (sem /mcp no fim — o servidor acrescenta).

Tools

| Tool | O que faz | |------|-----------| | whoami | Confirma a conta vinculada à chave. | | chat | Pergunta ao hub (cruza RAG + radar + web, como o chat da plataforma). | | radar_search | Tendências do hub (Radar Geral + Radar do cliente citado). | | rag_search | Busca semântica na base interna (cases, propostas, OneDrive). | | list_clients | Clientes ativos da agência. |

Todas read-only nesta versão.

Variáveis de ambiente

| Var | Obrigatória | Descrição | |-----|-------------|-----------| | IH_API_TOKEN | sim | Sua chave MCP (ih_mcp_…), gerada no perfil. | | IH_API_URL | sim | Origin do backend do hub (ex: https://seu-backend). | | IH_VERIFY_ON_START | não | 1 pra logar a conta vinculada no boot. |

Segurança

  • A chave é pessoal e revogável (Perfil → Conexão MCP → revogar). Quem revoga corta o acesso na hora.
  • Cada requisição é logada e vinculada à sua conta (auditoria no perfil).
  • Read-only: nenhuma tool muta dados nem dispara jobs.
  • Nunca commite a chave. Ela vive só no config do seu host MCP.

Desenvolvimento

npm install
npm run typecheck   # tsc --noEmit
npm run build       # tsup → dist/index.js
IH_API_TOKEN=ih_mcp_... IH_API_URL=http://localhost:4000 npm run dev