原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

semhood

作者:ahmeedgamil版本 0.1.0i★ –i在你的电脑上运行
注册名称io.github.AhmeedGamil/semhood

安装

概览

作者提供的说明(英文原文)

AST-based semantic code search; results ship with their call graph (calls + callers).

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 搜索与 AI 记忆

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "semhood": {
      "command": "uvx",
      "args": [
        "semhood"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add semhood -- uvx semhood

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "semhood": {
      "command": "uvx",
      "args": [
        "semhood"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "semhood": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "semhood"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 ahmeedgamil 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 5676 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 5676 个服务器的 16% 更新
  • 基础检查结果等于或优于此分类中其他 5676 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

semhood 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.0)于5个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

作者:upstash

Up-to-date docs for AI agents

电脑或云端★ 64,224MIT昨天更新
安装

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

在你的电脑上运行★ 48,148MIT21天前更新
安装

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

在云端运行★ 5,213MIT2个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

semhood

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.


What makes semhood different

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:

🧠 Enrichment that thinks like a developer

An LLM reads each function and class and writes two artifacts, each stored as its own search vector:

  • A logic summary — what the code actually *does*, in plain language. Not its name, not its signature — its behavior.
  • Predicted developer questions — the real questions an engineer would ask to find this code: *"how do we retry a failed payment?"*, *"where are customer emails validated?"*

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.

🕸️ Every result ships with its call graph

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.


Features

  • Retrieval-boosting enrichment — an LLM gives each chunk a plain-language logic summary + predicted developer questions, indexed as their own vectors so question-style queries hit the right code even with zero shared keywords. Written once, committed to git, shared with the team.
  • Call graph included — each result knows what it calls and what calls it, so your agent gets the neighborhood, not just the function
  • AST-aware chunking via Tree-sitter — every function, method, and class becomes a first-class searchable unit
  • Hybrid retrieval — dense vectors (code, description, developer_queries) + BM25 sparse, all in one query
  • Token-efficient for AI agents — replaces dozens of read_file + grep calls with one search
  • MCP server out of the box — works with Claude Desktop, Cursor, Cline, Continue, Kiro, Zed
  • 10 languages — Python, JavaScript, TypeScript, Java, Go, PHP, C#, Ruby, Rust, C++
  • Free tier works — local embeddings + structural pipeline need zero API keys
  • Incremental indexing — --changed re-indexes only what git diff touched

Install

# Local-only (free, offline embeddings via sentence-transformers)

pip install "semhood[local]"

With everything: voyage + openai + anthropic + cohere + chroma

pip install "semhood[all]"

Pick exactly what you need

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.


60-second quickstart

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 .

2. search — pure retrieval, ~80 ms (a background daemon stays warm)

semhood search "how does the payment retry logic work?"

3. (optional) LLM enrichment — needs an Anthropic/OpenAI/OpenRouter/Ollama key

semhood enrich

4. (optional) full RAG with answer generation

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.


CLI commands

CommandWhat it does
semhood index Stage 1: parse + embed + upsert. No LLM.
semhood index --changedIncremental — only files in git diff HEAD~1.
semhood index --resetRebuild from scratch (after changing the embedding model).
semhood enrichStage 2: drain pending chunks through an LLM.
semhood enrich --forceRe-enrich every chunk.
semhood compactPrune 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 statusPer-state chunk counts + provider summary.
semhood projectsList every indexed project in ~/.semhood/indexes/.
semhood serveRun the daemon in the foreground (it otherwise auto-starts).
semhood stopStop the background daemon.
semhood doctorDaemon + 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.yaml flag.


MCP — wire it into your AI editor

The package ships an MCP server (semhood-mcp) that exposes eight tools — five for search, three for agent-driven enrichment:

ToolUse it for
searchSemantic search over the index.
search_manySeveral searches in one call — results grouped per query.
find_symbolExact-name lookup for a function/method/class.
get_chunk_contextFull source + calls + called_by for a symbol.
index_statusSanity-check the index.
list_pending_enrichmentsGet a batch of chunks needing LLM enrichment.
save_enrichmentPersist a summary the agent wrote.
enrichment_progressLoop 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)

EditorConfig 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 Codeclaude 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

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx