Sensegrep MCP Server

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

Local serverstdioPython

What is the Sensegrep MCP Server?

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

The short version

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Sensegrep MCP Server

{
  "mcpServers": {
    "sensegrep": {
      "command": "npx",
      "args": ["-y", "@sensegrep/mcp"],
      "env": {
        "SENSEGREP_PROVIDER": "your-value",
        "GEMINI_API_KEY": "your-value",
        "SENSEGREP_OPENAI_API_KEY": "your-value",
        "SENSEGREP_OPENAI_BASE_URL": "your-value",
        "SENSEGREP_EMBED_MODEL": "your-value",
        "SENSEGREP_EMBED_DIM": "your-value",
        "SENSEGREP_OPENAI_BATCH_SIZE": "your-value",
        "AWS_REGION": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
SENSEGREP_PROVIDERConfiguration value read at startup.Optional
GEMINI_API_KEYCredential the server authenticates with.Yes
SENSEGREP_OPENAI_API_KEYCredential the server authenticates with.Yes
SENSEGREP_OPENAI_BASE_URLEndpoint or connection string the server talks to.Yes
SENSEGREP_EMBED_MODELConfiguration value read at startup.Optional
SENSEGREP_EMBED_DIMConfiguration value read at startup.Optional
SENSEGREP_OPENAI_BATCH_SIZEConfiguration value read at startup.Optional
AWS_REGIONConfiguration value read at startup.Optional

Frequently asked questions

Semantic + structural code search MCP server for AI-native development. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.