Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Sensegrep

by Stahldavidversion 1.5.3i★ –iRuns on your computer
Registry nameio.github.Stahldavid/sensegrep

Install

Overview

Description from the maker (original English)

Semantic + structural code search MCP server for AI-native development.

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Search & AI memory
  • You need to fill in: GEMINI_API_KEY

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: SENSEGREP_ROOT, SENSEGREP_PROVIDER, GEMINI_API_KEY

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • npmNode.js installed (for the npx command)

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/mcp

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

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.

Open in VS Code

Or copy the settings yourself

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.

Values you fill in

  • SENSEGREP_ROOT env
    Root directory to index and search. Defaults to current working directory.
  • SENSEGREP_PROVIDER env
    Embeddings provider: gemini, openai, or bedrock.
  • GEMINI_API_KEY secret env
    Required only when SENSEGREP_PROVIDER=gemini.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

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

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account Stahldavid, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Search & AI memoryi

  • More stars than 0% of the other 7270 servers in this category
  • Published to the registry more recently than 15% of the other 7270 servers in this category
  • Basic checks equal to or better than 100% of the other 7270 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Sensegrep safe?

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.

What keys or codes does it need?

You need to fill in: GEMINI_API_KEY

Does it run on my computer or in the cloud?

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).

Is it still maintained?

The GitHub repo last changed –, and the latest version (1.5.3) reached the registry 5 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Context7, Codebase Memory, Exa

Alternatives

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

Context7

by upstash

Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.

Computer or cloud★ 64,224MITUpdated yesterday
Install

Codebase Memory

by DeusData

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

Runs on your computer★ 48,148MITUpdated 21 days ago
Install

Exa

by exa-labs

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

Runs in the cloud★ 5,213MITUpdated last month
Install

README from the maker

Open the README

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.

sensegrep

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

Why sensegrep?

Traditional search tools (grep, ripgrep, ast-grep) match text patterns. sensegrep matches concepts:

Featuregrep/ripgrepast-grepsensegrep
Exact text matchYesYesYes (via --pattern)
AST-awareNoYesYes (tree-sitter)
Semantic searchNoNoYes (AI embeddings)
Symbol metadata filtersNoPartialYes (30+ filters)
Duplicate detectionNoNoYes (logical duplicates)
Tree-shaking outputNoNoYes (collapse irrelevant code)
MCP server for AI agentsNoNoYes

Quickstart

Optional remote evaluation: Jev setup, evidence-aware reranking, group labels and duplicate judgments. It is off by default and works alongside local Ollama embeddings.

Claude Code Plugin (recommended)

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@sensegrep on a fresh machine before claude plugin marketplace add Stahldavid/sensegrep will fail because Claude Code does not know the sensegrep marketplace yet.

CLI
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"

Known exact text, 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 --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 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.

Cursor Plugin

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
Codex Plugin

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.

MCP Server (for Codex or manual 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.

Agent Skill — CLI (no MCP server)

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.

VS Code Extension

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.

Recipes

Copy-paste setup and practical workflows:

  • Claude Code recipe
  • Cursor recipe
  • Codex recipe
  • CI with GitHub Actions
  • Generic CI recipe

Full index: docs/recipes/README.md

How It Works

Source Code

│ ▼ ┌─────────────┐ ┌──────────────┐ ┌──────────────┐ │ Tree-Sitter │───▶│ Chunker │───▶│ Embeddings │ │ AST Parser │ │ (symbols + │ │ (Ollama, │ │ │ │ metadata) │ │ Gemini, etc.)│ └─────────────┘ └──────────────┘ └──────────────┘ │ ▼ ┌──────────────┐ Query ──────▶│ LanceDB │ │ Vector Search│ └──────┬───────┘ │ ▼ ┌──────────────┐ │ Tree-Shaker │──▶ Results │ (collapse │ │ irrelevant) │ └──────────────┘

  1. Parse: Tree-sitter extracts AST nodes with full metadata (symbol type, exports, complexity, docs, decorators)
  2. Chunk: Code is split into semantic chunks aligned to symbol boundaries
  3. Embed: Each chunk is embedded using Ollama, Gemini, an OpenAI-compatible embeddings API, or Amazon Bedrock.
  4. Store: Embeddings + metadata are stored in LanceDB for fast vector search
  5. Search: Vector and lexical candidates are fused, structurally filtered, and optionally reranked
  6. Tree-shake: Results are collapsed to show only relevant code, hiding unrelated symbols

Supported Languages

  • TypeScript / JavaScript (TSX/JSX included)
  • Python (dataclasses, protocols, decorators, async generators, TypedDict, and more)
  • Java (classes, interfaces, records, annotations, methods, and tree-shaken results)
  • Vue (single-file components with / semantic support)
  • More coming: C#, HTML (see feature branches)

Search Filters

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

Find Python dataclasses

sensegrep search "user model" --type class --variant dataclass --language python

Find undocumented complex code (refactoring candidates)

sensegrep search "business logic" --min-complexity 10 --has-docs false

Filter by decorator

sensegrep search "route handler" --type function --decorator route

Keep docs and markdown out of results

sensegrep search "authentication flow" --include "src/**/*.ts" --exclude "*.md"

Build a reading map for onboarding a domain

sensegrep survey "authentication login token" --language typescript --limit 4

Split a broad backend topic into subthemes

sensegrep cluster "price list commission ncm uf packaging" --language java --include "backend-api/**/*.java"

Build an agent context pack with a hard estimated-token budget

sensegrep context "authentication request flow" --max-tokens 8000

Review only code changed against a Git base

sensegrep audit "security and regression risks" --base origin/main

Navigate the local symbol graph

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.

Index Operations

# Inspect local work before any embedding request

sensegrep index --dry-run --no-watch

Interrupted full builds resume their fingerprint-matched staging table

sensegrep index --full --no-watch

Compare safe concurrency candidates without changing saved config

sen

Only the beginning is shown; read the rest in the repo

Ask PopNx