grepai
Semantic code search CLI with a local, MCP-ready index
Install
See setup instructions on yoanbernabeu.github.ioWhat it does
grepai is a command-line tool for searching source code by meaning rather than exact text. It builds an index from vector embeddings so that natural-language queries can surface relevant functions even when names differ from the words you used, and it can also trace call graphs to show which code calls a given function before you modify it.
It is aimed at developers and at AI coding agents that need focused context instead of raw search output. The README says feeding such context reduces the number of input tokens an agent consumes. Indexing runs locally through an embedding provider you configure: Ollama (the default), LM Studio, or OpenAI. A file watcher keeps the index current while a project is open.
Installation is available via Homebrew on macOS, a shell installer for Linux and macOS, and a PowerShell script on Windows. Agents including Claude Code, Cursor and Windsurf are supported, and grepai exposes an MCP server so an agent can call it as a tool. Shell completion exists for zsh, bash, fish and PowerShell.
Limitations: it requires a separate embedding provider and a pulled embedding model; semantic results depend on index freshness; the project is source-available under MIT and does not accept pull requests, preferring issue-first reports.
Compatibility and authentication
- Connection
- Local
- Transports
- Unspecified
- Authentication
- Unknown
Security and permissions
- When you run the server locally, it runs with your user permissions.
- Authentication type: Unknown.
Repository data
- Stars
- 1,955
- Last push
- Nov 2, 2026
- License
- MIT
- Archived
- No
Other Ollama MCP servers
Compare serversFAQ
- What license does grepai use?
- MIT
- Does grepai run locally or remotely?
- It runs locally.
- Is grepai an official server?
- It is listed as a community server.
Embed a listing badge
<a href="https://aiagentsmarketplace.dev/mcp/grepai"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
Comments
No comments yet.