Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Semantic + structural code search MCP server for AI-native development.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
SENSEGREP_ROOT, SENSEGREP_PROVIDER, GEMINI_API_KEY「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"sensegrep": {
"command": "npx",
"args": [
"-y",
"@sensegrep/mcp"
],
"env": {
"SENSEGREP_ROOT": "your-value",
"SENSEGREP_PROVIDER": "your-value",
"GEMINI_API_KEY": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add sensegrep --env SENSEGREP_ROOT=your-value --env SENSEGREP_PROVIDER=your-value --env GEMINI_API_KEY=your-value -- npx -y @sensegrep/mcp動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"sensegrep": {
"command": "npx",
"args": [
"-y",
"@sensegrep/mcp"
],
"env": {
"SENSEGREP_ROOT": "your-value",
"SENSEGREP_PROVIDER": "your-value",
"GEMINI_API_KEY": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"sensegrep": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sensegrep/mcp"
],
"env": {
"SENSEGREP_ROOT": "your-value",
"SENSEGREP_PROVIDER": "your-value",
"GEMINI_API_KEY": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
SENSEGREP_ROOT envSENSEGREP_PROVIDER envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント Stahldavid で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:GEMINI_API_KEY
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(1.5.3)がレジストリに届いたのは5 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
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.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
semantic grep for AI coding agents
sensegrep understands your code semantically. Instead of matching text patterns, it uses AI embeddings and tree-sitter AST parsing to find code by *meaning* - so you can search for "authentication logic" and actually find your auth functions, even if they never contain the word "authentication".
AI agents should not read more code, they should read the right code. sensegrep combines semantic search, exact matching, and AST-aware structural retrieval to deliver smaller, more relevant context.
For agent routing, search is the default for discovery: questions about behavior, concepts, structure, or where/how something is implemented. Use literal only for a known exact string or regex, an exhaustive occurrence audit, or verification/refinement after semantic discovery. If the intent is ambiguous, start with search.
MP4 fallback: assets/time-to-value.mp4
Watch full product demo (25s): assets/time-to-value-full.mp4
Traditional search tools (grep, ripgrep, ast-grep) match text patterns. sensegrep matches concepts:
| Feature | grep/ripgrep | ast-grep | sensegrep |
|---|---|---|---|
| Exact text match | Yes | Yes | Yes (via --pattern) |
| AST-aware | No | Yes | Yes (tree-sitter) |
| Semantic search | No | No | Yes (AI embeddings) |
| Symbol metadata filters | No | Partial | Yes (30+ filters) |
| Duplicate detection | No | No | Yes (logical duplicates) |
| Tree-shaking output | No | No | Yes (collapse irrelevant code) |
| MCP server for AI agents | No | No | Yes |
Optional remote evaluation: Jev setup, evidence-aware reranking, group labels and duplicate judgments. It is off by default and works alongside local Ollama embeddings.
The fastest way to get sensegrep into Claude Code — zero configuration:
claude plugin marketplace add Stahldavid/sensegrep
claude plugin install sensegrep
This automatically sets up the MCP server and teaches Claude when and how to use sensegrep instead of grep. No manual JSON editing required.
Marketplace setup (required on first install):
`bash
claude plugin marketplace add Stahldavid/sensegrep
claude plugin install sensegrep
`
After the marketplace has been added once, the explicit marketplace form also works:
`bash
claude plugin install sensegrep@sensegrep
`
Running
claude plugin install sensegrep@sensegrepon a fresh machine beforeclaude plugin marketplace add Stahldavid/sensegrepwill fail because Claude Code does not know thesensegrepmarketplace yet.
npm i -g @sensegrep/cli
sensegrep selftest --root .
ollama pull qwen3-embedding:0.6b sensegrep index --root .
sensegrep search "error handling and retry logic" --type function --exported --exclude "*.md"
sensegrep literal "X-Goog-Message-Number" --include "src/**"
sensegrep search "authentication flow" --purpose understand --json sensegrep show --before 10 --after 20
sensegrep literal "TODO:" --filesystem --max-output-bytes 50000 --json
sensegrep audit "security regressions" --base origin/main --require-coverage --continue-uncovered --batch-tokens 4000 --max-total-tokens 8000 --max-output-bytes 32000 --max-batches 8
sensegrep survey "authentication login token" --language typescript --limit 4
sensegrep cluster "checkout payment order cart" --limit 4
sensegrep detect-duplicates --threshold 0.85 sensegrep detect-duplicates --threshold 0.85 --timeout 30s --resume-cursor 0 --json
Agent-facing JSON is minified and minimal by default. Opt into --json-detail content, --diagnostic, --json-detail full, or --pretty only when that additional payload is needed. Schema v2 uses one card vocabulary across transports: id, file, lines, symbol, kind, rank, and relevance. Minimal output keeps retrieval sufficiency, compact index state, and structured warnings; budgets appear only when constrained. Physical output budgets apply to the final serialized JSON and retain a partial evidence card when possible. Duplicate JSON excludes source code unless --show-code is supplied. Survey and cluster JSON default to actionable summary mode with representative IDs.
Install from the Cursor marketplace or via CLI:
cursor plugin install sensegrep
Includes the MCP server, an always-on rule to prefer sensegrep over grep, and a skill with full filter reference. Cursor plugin status: pending marketplace approval.
One-click MCP install link for Cursor:
Fallback deeplink (copy/paste if needed):
cursor://anysphere.cursor-deeplink/mcp/install?name=sensegrep&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzZW5zZWdyZXAvbWNwQGxhdGVzdCJdfQ%3D%3D
Install from the public marketplace — no manual config:
codex plugin marketplace add Stahldavid/sensegrep
codex plugin install sensegrep
See the Codex recipe for the manual ~/.codex/config.toml setup.
npx -y @sensegrep/mcp
Add to your MCP configuration:
{
"servers": { "sensegrep": { "command": "npx", "args": ["-y", "@sensegrep/mcp"] } } }
Or with npm global install first:
npm install -g @sensegrep/mcp
{
"servers": { "sensegrep": { "command": "sensegrep-mcp" } } }
The MCP server provides canonical sensegrep_search, sensegrep_show, sensegrep_literal, sensegrep_context, sensegrep_survey, sensegrep_cluster, sensegrep_graph, sensegrep_index, and sensegrep_detect_duplicates tools. Legacy dotted names such as sensegrep.search remain available as compatibility aliases where supported.
For terminal-first agents or CI, you don't need an MCP server. Install the CLI and the sensegrep-cli Agent Skill, which teaches the agent to run sensegrep commands directly:
npm i -g @sensegrep/cli
npx skills add Stahldavid/sensegrep --skill sensegrep-cli -g
See docs/agent-skills.md for when to use the MCP tools vs the CLI skill.
Search for "Sensegrep" in the VS Code marketplace, or install from the extension page.
Features: semantic search sidebar, duplicate detection, code lens, semantic folding, and multi-root auto-indexing/watch mode.
Copy-paste setup and practical workflows:
Full index: docs/recipes/README.md
Source Code
│ ▼ ┌─────────────┐ ┌──────────────┐ ┌──────────────┐ │ Tree-Sitter │───▶│ Chunker │───▶│ Embeddings │ │ AST Parser │ │ (symbols + │ │ (Ollama, │ │ │ │ metadata) │ │ Gemini, etc.)│ └─────────────┘ └──────────────┘ └──────────────┘ │ ▼ ┌──────────────┐ Query ──────▶│ LanceDB │ │ Vector Search│ └──────┬───────┘ │ ▼ ┌──────────────┐ │ Tree-Shaker │──▶ Results │ (collapse │ │ irrelevant) │ └──────────────┘
/ semantic support)sensegrep supports 30+ structural filters that can be combined with semantic search:
# Find exported async functions with high complexity
sensegrep search "data processing" --type function --exported --async --min-complexity 5
sensegrep search "user model" --type class --variant dataclass --language python
sensegrep search "business logic" --min-complexity 10 --has-docs false
sensegrep search "route handler" --type function --decorator route
sensegrep search "authentication flow" --include "src/**/*.ts" --exclude "*.md"
sensegrep survey "authentication login token" --language typescript --limit 4
sensegrep cluster "price list commission ncm uf packaging" --language java --include "backend-api/**/*.java"
sensegrep context "authentication request flow" --max-tokens 8000
sensegrep audit "security and regression risks" --base origin/main
sensegrep references loadUser sensegrep impact loadUser --depth 3 sensegrep trace handleRequest loadUser
Graph nodes use canonical file/range identities. Ambiguous same-name call targets are omitted instead of expanded into speculative impact edges.
# Inspect local work before any embedding request
sensegrep index --dry-run --no-watch
sensegrep index --full --no-watch
sen
冒頭だけを表示しています。続きはリポジトリで読めます