Context7
Up-to-date docs for AI agents
Descripción del creador (original en inglés)
AST-based semantic code search; results ship with their call graph (calls + callers).
Estos tres nunca se combinan en una sola puntuación: las opiniones, las mediciones y la popularidad son cosas distintas.
Todavía no escribimos un resumen sencillo para este. Abajo están los datos que leímos del registro.
Elige la app de IA que usas y copia la configuración.
Necesitas
¿Qué app usas?
Elige tu app arriba. La recordamos, así que la próxima vez el botón dirá “Instalar en …”.
Abre Claude Desktop → Settings → Developer → Edit Config y pega esto en claude_desktop_config.json
{
"mcpServers": {
"semhood": {
"command": "uvx",
"args": [
"semhood"
]
}
}
}Ejecuta esto en tu terminal
claude mcp add semhood -- uvx semhoodPégalo en .cursor/mcp.json de tu proyecto, o en ~/.cursor/mcp.json
{
"mcpServers": {
"semhood": {
"command": "uvx",
"args": [
"semhood"
]
}
}
}Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.
Pégalo en .vscode/mcp.json de tu proyecto
{
"servers": {
"semhood": {
"type": "stdio",
"command": "uvx",
"args": [
"semhood"
]
}
}
}Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.
Este se ejecuta en tu computadora, y ChatGPT solo puede conectarse a servidores en internet. Elige otra app.
Tu elección se guarda en una cookie en este dispositivo; no necesitas cuenta.
Esta configuración se genera a partir de la ficha del creador en el registro. Si el README dice otra cosa, sigue el README.
Se ejecuta en tu computadora; la lista de herramientas aparece en tu app de IA después de instalarlo.
Revisamos información que cualquiera puede ver; no hemos leído el código. Las revisiones que no aplican no se cuentan. · Revisado el 7 nov 2026
El nombre en el registro se verificó con la cuenta de GitHub ahmeedgamil, dueña del repo
Todavía no hemos leído este repo en GitHub
Todavía no hemos leído este repo en GitHub
Este se ejecuta en tu computadora; no hay endpoint en internet
Se ejecuta en tu computadora y usa ajustes locales en su lugar
Se ejecuta en tu computadora; solo podemos leer listas de herramientas de endpoints en internet
Comparado con todos los servidores activos de esta categoría en el registro. Las estrellas solo cuentan cuando quien lo publica es dueño del repo.
Superó 1 de 1 revisiones básicas aplicables. No hemos leído el código. Antes de agregar una clave o un token, revisa qué acceso pide el servidor y usa una clave que tenga solo los permisos que necesitas.
El registro no indica ninguna clave obligatoria, aunque algunos servidores te piden iniciar sesión la primera vez que los usas.
Se ejecuta en tu computadora. Tu app de IA lo inicia cuando hace falta, y los datos no pasan por los servidores del creador (a menos que el propio servidor llame a un servicio en línea).
El repo de GitHub cambió por última vez –, y la última versión (0.1.0) llegó al registro hace 5 meses.
Las apps compatibles con MCP, como Claude Desktop, Claude Code, Cursor y VS Code. También necesitas Python (uv) en tu computadora.
En la misma categoría: Context7, Codebase Memory, Exa
Servidores de la misma categoría hechos por otros creadores, ordenados por estrellas.
Cómo leer una tarjeta:★ Estrellas de GitHubiTres pilares: reseñas · revisiones · usoiActualizado = fecha en que se publicó la última versión en el registroi
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Copiado tal cual del repo del creador. PopNx MCP no lo ha revisado ni lo respalda. Se quitaron HTML, imágenes y scripts. Los enlaces llevan fuera de este sitio.
Stop grepping. Find the exact code your AI agent needs by intent, not keywords. semhood is an AST-aware semantic code search engine that retrieves code by what it does, complete with call-graph context and optional LLM enrichment.
*Runs fully offline with zero API keys — or plug in cloud embeddings — Voyage's code-specialized models, or OpenAI's strong general-purpose (natural-language) embeddings — for higher-quality retrieval. Optional LLM enrichment adds a logic summary and developer queries to each chunk that you commit once and share — and every result ships with its call graph (what it calls + what calls it).*
Why semhood · Install · Quickstart · MCP Setup · Architecture · Config · Troubleshooting
┌──────────────┐ parse + embed ┌──────────────┐ LLM enrich ┌──────────────┐
│ source tree │ ───────────────────► │ code vector │ ──────────────► │ description │ │ │ │ + BM25 sparse│ │ + queries │ └──────────────┘ └──────────────┘ └──────────────┘
Search via CLI, HTTP, or MCP.
semhood indexes your codebase the way a developer thinks about it: every function, method, and class becomes a chunk, with its call graph, docstring, and signature attached. You search by intent (*"how do we retry transient payment failures?"*) and get back the few chunks that actually answer the question.
Two stages: structural (always, free, ~seconds) and enrichment (optional, LLM or code agent, drains a pending queue). The index is queryable after stage 1; stage 2 just makes natural-language matches sharper.
The package ships an MCP server so Claude Desktop, Cursor, Cline, Continue, Kiro, Zed, and any other MCP-aware client can call semhood as a tool — your AI agent gets search, find_symbol, and get_chunk_context next to its built-in read_file and grep.
Most code search embeds your raw source and hopes a natural-language query lands near it. semhood adds two things plain vector search and grep can't:
An LLM reads each function and class and writes two artifacts, each stored as its own search vector:
This is the part that makes retrieval click. When you search with a question, you're matching against questions the code was pre-labeled to answer — so the right chunk wins even when it shares *zero keywords* with your query. You generate the enrichment once, commit it to git, and your whole team — and every AI agent — retrieves better for free. → Portable enrichment
Why enrichment matters: some code has no words to search. Plain semantic search only works when the source *contains* language close to your question. Plenty of important code doesn't — terse names, raw math, business rules. Consider a function like:
def _calc(p, r, n):
return p * (1 + r) ** n
Ask *"how do we calculate compound interest?"* and plain vector search comes up empty — there's no "interest", no "compound", nothing in the source that means anything close to the question. Enrichment reads the code and generates:
{
"logic_summary": "Computes compound interest — final balance = principal × (1 + rate)^periods.", "developer_queries": [ "how do we calculate compound interest?", "where is the future-value / compounding formula?", "how is a balance grown over multiple periods?" ] }
Now your question matches a pre-written question that means the same thing, and _calc ranks first — despite sharing *zero words* with your query. The cryptic-but-critical functions are exactly the ones plain semantic search misses and enrichment rescues.
Each chunk knows what it calls and what calls it. So a result isn't just "here's the function" — it's the function *plus its neighborhood*. One get_chunk_context call returns the body, calls, and called_by together, so your AI agent gets the caller/callee context in the same response instead of opening files and tracing references by hand.
code, description, developer_queries) + BM25 sparse, all in one queryread_file + grep calls with one search--changed re-indexes only what git diff touched# Local-only (free, offline embeddings via sentence-transformers)
pip install "semhood[local]"
pip install "semhood[all]"
pip install "semhood[anthropic,local]"
Prefer an isolated CLI install? pipx keeps semhood and its deps out of your global environment — recommended for a command-line tool:
pipx install "semhood[local]"
Just want to try it without installing? With uv, run it straight from PyPI:
uvx --from "semhood[local]" semhood index .
Requires Python 3.11+. First index downloads the embedding model (~420 MB for the default
all-mpnet-base-v2) and caches it.
No config files, no API keys, no setup. semhood works offline with a local embedder by default. Just cd into any project and index it:
# 1. structural index — no LLM, free, no config needed
cd ~/code/your-project semhood index .
semhood search "how does the payment retry logic work?"
semhood enrich
semhood query "where is auth handled?"
The first command auto-starts a background daemon that loads the embedding model once and keeps it warm — so every later search (from any terminal or your editor) is instant. Each project gets its own index automatically under ~/.semhood/indexes/, keyed by repo root. One global config lives at ~/.semhood/config.yaml (created on first run); there is no per-project config file to manage.
| Command | What it does |
|---|---|
semhood index | Stage 1: parse + embed + upsert. No LLM. |
semhood index --changed | Incremental — only files in git diff HEAD~1. |
semhood index --reset | Rebuild from scratch (after changing the embedding model). |
semhood enrich | Stage 2: drain pending chunks through an LLM. |
semhood enrich --force | Re-enrich every chunk. |
semhood compact | Prune orphaned records from .semhood/enrichment.jsonl. |
semhood search "query" | Pure retrieval. --format json/paths/compact/table. |
semhood query "question" | Full RAG: retrieval + answer generation. |
semhood status | Per-state chunk counts + provider summary. |
semhood projects | List every indexed project in ~/.semhood/indexes/. |
semhood serve | Run the daemon in the foreground (it otherwise auto-starts). |
semhood stop | Stop the background daemon. |
semhood doctor | Daemon + config health check. |
All commands act on the current project (nearest git root of your cwd).
Override with
--root /path/to/repo. They're thin clients to the daemon — no
model loading, no
config.yamlflag.
The package ships an MCP server (semhood-mcp) that exposes eight tools — five for search, three for agent-driven enrichment:
| Tool | Use it for |
|---|---|
search | Semantic search over the index. |
search_many | Several searches in one call — results grouped per query. |
find_symbol | Exact-name lookup for a function/method/class. |
get_chunk_context | Full source + calls + called_by for a symbol. |
index_status | Sanity-check the index. |
list_pending_enrichments | Get a batch of chunks needing LLM enrichment. |
save_enrichment | Persist a summary the agent wrote. |
enrichment_progress | Loop sentinel — pending vs done. |
Register it once, globally — it then works in every project you open, with no per-project setup. This is the entire config — drop it into your editor's *user-level* MCP file:
{
"mcpServers": { "semhood": { "command": "semhood-mcp" } } }
Where that file lives, per editor (click to expand)
| Editor | Config file |
|---|---|
| Claude Desktop (macOS) | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Claude Desktop (Windows) | %APPDATA%\Claude\claude_desktop_config.json |
| Cursor | ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project) |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| Cline (VS Code) | Cline panel → MCP Servers → *Configure* (edits cline_mcp_settings.json) |
| Continue | ~/.continue/config.yaml → under a mcpServers: block |
| Kiro | ~/.kiro/settings/mcp.json |
| Claude Code | claude mcp add semhood semhood-mcp |
A few clients use a slightly different shape — e.g. VS Code's native MCP uses a
top-level
"servers"key instead of"mcpServers". If yours differs, keep
Solo se muestra el principio; lee el resto en el repo