Semantic + structural code search MCP server for AI-native development.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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:
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):
After the marketplace has been added once, the explicit marketplace form also works:
Running
claude plugin install sensegrep@sensegrepon a fresh machine beforeclaude plugin marketplace add Stahldavid/sensegrepwill fail because Claude Code does not know thesensegrepmarketplace yet.
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:
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):
Install from the public marketplace β no manual config:
See the Codex recipe for the manual ~/.codex/config.toml setup.
Add to your MCP configuration:
Or with npm global install first:
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:
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
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sensegrep)<a href="https://allmcps.com/mcp/sensegrep"><img src="https://allmcps.com/api/badge/sensegrep?style=directory" alt="Sensegrep on AllMCPs" /></a>