Context7
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Description from the maker (original English)
Semantic + structural code search MCP server for AI-native development.
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
SENSEGREP_ROOT, SENSEGREP_PROVIDER, GEMINI_API_KEYValues marked secret are keys to your account. Never share them or paste them into a chat.
You need
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into 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"
}
}
}
}Run this in your terminal
claude mcp add sensegrep --env SENSEGREP_ROOT=your-value --env SENSEGREP_PROVIDER=your-value --env GEMINI_API_KEY=your-value -- npx -y @sensegrep/mcpFill in the empty values before running it.
Paste into .cursor/mcp.json in your project, or ~/.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"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Paste into .vscode/mcp.json in your project
{
"servers": {
"sensegrep": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sensegrep/mcp"
],
"env": {
"SENSEGREP_ROOT": "your-value",
"SENSEGREP_PROVIDER": "your-value",
"GEMINI_API_KEY": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
SENSEGREP_ROOT envSENSEGREP_PROVIDER envThese settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026
The registry name was verified with the GitHub account Stahldavid, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: GEMINI_API_KEY
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed –, and the latest version (1.5.3) reached the registry 5 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.
In the same category: Context7, Codebase Memory, Exa
Servers in the same category from other makers, sorted by stars.
Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
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.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
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
Only the beginning is shown; read the rest in the repo