Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"io-github-stahldavid-sensegrep": {
"args": [
"-y",
"@sensegrep/mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Semantic + structural code search for AI-native development.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y '@sensegrep/mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked @sensegrep/mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in search / developer-tools
Copy/paste detector for programming source code, supports 223 formats. AI-ready with token-efficient reporter, skill and MCP server.
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Manage Supabase projects — databases, auth, storage, and edge functions
MCP Security Weekly
Get CVE alerts and security updates for io.github.Stahldavid/sensegrep and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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.

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 |
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):
claude plugin marketplace add Stahldavid/sensegrep claude plugin install sensegrepAfter the marketplace has been added once, the explicit marketplace form also works:
claude plugin install sensegrep@sensegrepRunning
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
# Smoke-test local CLI/core/config without calling embeddings
sensegrep selftest --root .
# Default local embeddings use Ollama when no API key/provider is configured
ollama pull qwen3-embedding:0.6b
sensegrep index --root .
# Search by meaning
sensegrep search "error handling and retry logic" --type function --exported --exclude "*.md"
# Deterministic and exhaustive: no embedding call
sensegrep literal "X-Goog-Message-Number" --include "src/**"
# Compact evidence cards, followed by deterministic expansion
sensegrep search "authentication flow" --purpose understand --json
sensegrep show <result-id> --before 10 --after 20
# Exhaustive within the ripgrep-visible filesystem, independent of the index
sensegrep literal "TODO:" --filesystem --max-output-bytes 50000 --json
# Complete changed-file review coverage in bounded batches
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
# Build a reading map for a broad theme
sensegrep survey "authentication login token" --language typescript --limit 4
# Break a broad topic into coherent subthemes
sensegrep cluster "checkout payment order cart" --limit 4
# Find duplicates
sensegrep detect-duplicates --threshold 0.85
sensegrep det
... [View full README on GitHub](https://github.com/Stahldavid/sensegrep#readme)