Skip to content
MCP server

Sensegrep

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.5.3
Listing updated
5 days ago

About Sensegrep

Sensegrep is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add sensegrep --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- npx -y @sensegrep/mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "sensegrep": {
      "command": "npx",
      "args": [
        "-y",
        "@sensegrep/mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "sensegrep": {
      "command": "npx",
      "args": [
        "-y",
        "@sensegrep/mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "sensegrep": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@sensegrep/mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "sensegrep": {
      "command": "npx",
      "args": [
        "-y",
        "@sensegrep/mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "sensegrep": {
      "command": "npx",
      "args": [
        "-y",
        "@sensegrep/mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}

Configuration

  • SENSEGREP_ROOTRoot directory to index and search. Defaults to current working directory.
  • SENSEGREP_PROVIDEREmbeddings provider: gemini, openai, or bedrock.
  • GEMINI_API_KEYRequired only when SENSEGREP_PROVIDER=gemini.

Pricing

Open source

Sensegrep FAQ

Is Sensegrep free?

Yes. Sensegrep is open source, so you can use and self-host it for free.

How do I add Sensegrep to Claude Code?

Run this command in your terminal: claude mcp add sensegrep --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- npx -y @sensegrep/mcp