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

@edilsonfjdev/claude-agents-rag

v1.1.0

Published

MCP Server para busca semântica na Knowledge Base do Claude Agents v1.4.0 (ChromaDB + FastEmbed BGE-small-en-v1.5 — ADR-001). Indexa skills code-review v1.3.0 (N1-N7) + exhaustive-mapping v1.0.0 (X1-X5) + careful (M6). Marco v1.4.0: count agentes corrigid

Downloads

224

Readme

@edilsonfjdev/claude-agents-rag

MCP Server para busca semântica na Knowledge Base do Claude Agents.

Permite que o Claude Code encontre agentes, commands e conhecimento através de descrição por intenção, em vez de precisar saber o nome exato.

Problema Resolvido

# Antes (busca por nome exato)
Usuario: "Qual comando cria ADR?"
→ Precisa saber que existe "/adr-create"

# Depois (busca por intenção)
Usuario: "Quero documentar uma decisão de arquitetura"
→ RAG retorna: "/adr-create (95%) - Cria novo ADR"

Instalação

Pré-requisitos

  • Node.js >= 18.0.0
  • Claude Code instalado

Via npx (Recomendado)

# Adiciona ao Claude Code
claude mcp add claude-agents-rag -- npx -y @edilsonfjdev/claude-agents-rag

Via npm global

# Instala globalmente
npm install -g @edilsonfjdev/claude-agents-rag

# Adiciona ao Claude Code
claude mcp add claude-agents-rag -- claude-agents-rag

Uso

Após instalação, o MCP Server disponibiliza 5 ferramentas:

search_agents

Busca semântica por agentes.

"Preciso de alguém para criar arquitetura"
→ SALOMÃO (95%), Zacarias (87%), Esdras (82%)

"Quem pode revisar meu código?"
→ Lucas (91%), Tomé (85%), Calebe (78%)

search_commands

Busca semântica por slash commands.

"Como criar uma especificação?"
→ /spec-create (93%), /story-create (75%), /spec-list (68%)

"Rodar testes"
→ /test (96%), /coverage (82%), /test-plan (75%)

search_knowledge

Busca na knowledge base (stacks, patterns, infra).

"Autenticação em Python"
→ patterns/authentication/python.md (89%)
→ stacks/python/security.md (78%)

find_by_intent

Busca unificada - retorna agentes, commands e knowledge relevantes.

"Quero implementar um novo endpoint de API"
→ Agentes: BEZALEL, Lucas, Silas
→ Commands: /api, /backend, /test
→ Knowledge: stacks/nestjs/api.md

reindex

Reindexa a knowledge base após atualizações.

/reindex path=./.claude

Configuração

Variáveis de Ambiente

| Variável | Descrição | Default | |----------|-----------|---------| | CLAUDE_AGENTS_RAG_PATH | Diretório para persistência do índice | ./data/chroma |

Primeira Execução

Na primeira execução, o índice precisa ser criado:

# Dentro de um projeto com .claude/
claude-agents-rag

# No Claude Code
/reindex

Arquitetura

┌──────────────────────────────────────────────────────┐
│                   Claude Code                         │
├──────────────────────────────────────────────────────┤
│                    MCP Protocol                       │
├──────────────────────────────────────────────────────┤
│              Claude Agents RAG Server                 │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐  │
│  │  Indexer    │  │ VectorStore │  │   Server    │  │
│  │ (parse MD)  │  │  (ChromaDB) │  │   (MCP)     │  │
│  └─────────────┘  └─────────────┘  └─────────────┘  │
├──────────────────────────────────────────────────────┤
│              FastEmbed (Embeddings)                   │
│              BAAI/bge-small-en-v1.5                   │
└──────────────────────────────────────────────────────┘

Dependências

| Pacote | Versão | Função | |--------|--------|--------| | chromadb | ^1.8.0 | Vector database local | | fastembed | ^0.2.0 | Embeddings locais (ONNX) | | @modelcontextprotocol/sdk | ^1.0.0 | Protocolo MCP |

Performance

| Métrica | Valor | |---------|-------| | Tempo de busca | < 200ms | | Tamanho do índice | ~5MB (para 150 docs) | | Modelo de embeddings | ~130MB (download único) | | Memória em uso | ~200MB |

Limitações

  • Primeira indexação pode demorar (download do modelo)
  • Requer reindex manual após atualizar .claude/
  • Embeddings em inglês (modelo bge-small-en)

Desenvolvimento

# Clone o repositório
git clone https://github.com/edilsonfj/claude-agents.git
cd claude-agents/tools/claude-agents-rag-mcp

# Instale dependências
npm install

# Execute localmente
npm start

# Teste
npm test

Roadmap

  • [ ] Auto-reindex ao detectar mudanças
  • [ ] Suporte a embeddings em português
  • [ ] Cache de queries frequentes
  • [ ] Métricas de uso

Licença

MIT

Autor

Edilson de Freitas Júnior [email protected]


Parte do Ecossistema Claude Agents v1.0.9