Zoekt alternatives in 2026: self-hosted code search for AI agents and teams
What are the best Zoekt alternatives in 2026? For a ready web app with an MCP server for coding agents, Sourcebot. For cross-referenced browsing of big code bases, OpenGrok. For interactive regex search of large repositories, livegrep. For a light web search over a list of repos, Hound. For one checkout on one machine, ripgrep. For one platform across a company, Sourcegraph. For code plus docs, PDFs and logs on your own machine, XERJ.
Key number: Zoekt has 2,109 GitHub stars and is Apache-2.0. Sourcebot has 4,049 stars and a release from 30 Nov 2026. ripgrep has 70,709 stars.
Stars, licences and descriptions from the public GitHub API on 3 Dec 2026; latest releases from the GitHub releases API the same day. Licences for OpenGrok and livegrep read from their LICENSE and COPYING files. MCP support from each project's README or docs on the same day.
TL;DR Zoekt is a fast trigram based code search engine under Apache 2.0, with an indexserver that syncs repositories, a web UI, and JSON and gRPC APIs. People compare alternatives when they want a finished web app, an MCP server for coding agents, cross-reference browsing, or one search over code and the docs that sit beside it. Use the filter below to keep only the tools that match what you need.
Find the Zoekt alternative that fits
Sort by
| Tool | What it is | Best for | Latest release | Licence | Stars |
|---|---|---|---|---|---|
| Zoekt | Fast trigram based code search, with an indexserver, a web UI, a JSON API and a gRPC API | A fast self-hosted index you build your own tools on | No GitHub release | Apache-2.0 | 2,109 |
| Sourcebot | Self-hosted code context layer for humans and agents: indexes repos from GitHub, GitLab, Bitbucket and Azure DevOps | A ready web app plus an MCP server for coding agents | v6.1.3, 30 Nov 2026 | MIT | 4,049 |
| OpenGrok | Fast and usable source code search and cross reference engine, written in Java | Browsing and cross-referencing large code bases | 1.15.1, 3 Dec 2026 | CDDL-1.0 | 5,039 |
| livegrep | Interactively grep source code, the engine behind livegrep.com | Interactive regex search of gigabyte-scale repositories | No GitHub release | BSD-2-Clause (COPYING file) | 2,240 |
| Hound | Extremely fast source code search engine: a React frontend over a Go backend that keeps an index for each repository | A simple web search over a list of repos | v0.7.1, 3 May 2023 | MIT | 5,900 |
| ripgrep | Recursive regex search that respects your gitignore, as a command line tool | One checkout on one machine | 16.0.0, 22 Nov 2026 | MIT or Unlicense | 70,709 |
| Sourcegraph | Code search and code intelligence across many repos, with an MCP server on Enterprise plans | Large organisations that want one platform | Hosted and self-managed product | Product, see sourcegraph.com | Hosted product |
| XERJ | Local search engine for AI agents over code, docs and files, with cited answers over CLI and MCP | Code plus docs, PDFs and logs on your own machine | v1.0.0-rc.105, 23 Nov 2026 | Apache-2.0 | 23,537 |
Read https://xerj.org/compare/zoekt-alternatives-2026.md. Ask me how many repos we have, whether the search runs on my machine or a server, whether agents need an MCP server, and whether docs and PDFs should be searchable too, then tell me which Zoekt alternative fits and how to set it up.
Pick one in ten seconds
- A finished web app plus an MCP server for coding agents: Sourcebot.
- Cross-referenced browsing of very large code bases: OpenGrok.
- Interactive regex search of gigabyte-scale repositories: livegrep.
- A light web search over a list of repos: Hound.
- Search in one checkout on one machine: ripgrep.
- One platform for a whole company, with an MCP server on Enterprise plans: Sourcegraph.
- Code, docs, PDFs and logs in one local index with cited answers: XERJ.
Why people look for a Zoekt alternative
Zoekt is a proven engine for fast trigram search over many repositories. It ships the pieces: an indexer, a web server, and JSON and gRPC APIs. Teams look at other tools when they want a packaged web app with sign-in, an MCP server so coding agents can search the same index, cross-reference pages, or a single search over code and documentation. For the commercial platform, see Sourcegraph alternatives 2026.
Zoekt vs Sourcebot
Zoekt is Apache-2.0 with 2,109 GitHub stars and no GitHub releases, so you build from source or from your own packaging. Sourcebot is MIT with 4,049 stars and a latest release of v6.1.3, 30 Nov 2026. Its README describes a self-hosted code context layer that indexes repositories from GitHub, GitLab, Bitbucket and Azure DevOps, with an MCP server that exposes code search, file reading, and symbol definitions and references to clients such as Claude Code, Codex and Cursor. Choose Zoekt when you want the engine and will write the surrounding service. Choose Sourcebot when you want the finished product.
Zoekt vs OpenGrok, livegrep and Hound
OpenGrok is a Java source code search and cross reference engine under CDDL-1.0, 5,039 stars, latest release 1.15.1, 3 Dec 2026. Choose it when readers browse definitions and references across a large tree. livegrep is a BSD-2-Clause tool for interactively grepping source code, 2,240 stars, built for interactive regex search of gigabyte-scale source repositories. Hound is MIT with 5,900 stars and a latest release of v0.7.1, 3 May 2023; a Go backend keeps an up-to-date index for each repository and a React front end shows the results. Each fits a smaller, simpler setup than a full indexserver.
Zoekt vs ripgrep
ripgrep searches directories for a regex while respecting your gitignore, is dual-licensed MIT or Unlicense, has 70,709 stars, and its latest release is 16.0.0, 22 Nov 2026. It needs no index, which makes it the right tool for one checkout on one machine. Zoekt builds an index so repeated searches over many repositories stay fast. See grep alternatives 2026 for agent-ready options.
Sourcegraph as a platform
Sourcegraph offers code search and code intelligence across many repositories. Its MCP server is documented for Enterprise plans and includes keyword search, natural-language search, go to definition and find references. Choose it when one vendor-supported platform for a whole company is the goal.
XERJ: a new way for AI to search for data
XERJ does not mirror a code host. It indexes folders you already have, including code, docs, PDFs and logs, and returns cited passages to agents over CLI and MCP, with BM25, vector and hybrid search in one binary. It is Apache 2.0 and its latest release is v1.0.0-rc.105, 23 Nov 2026. xerj mcp --http serves Streamable HTTP at http://127.0.0.1:9330/mcp, read-only unless you pass --allow-writes. A non-loopback bind needs XERJ_MCP_TOKEN. The flag is --http. Pick XERJ when the agent needs the repo and the documents beside it in one local index. See best MCP server for local code search 2026.
Read next
- Sourcegraph alternatives 2026
- grep.app alternatives 2026
- Grep alternatives 2026
- Greptile alternatives 2026
- Best MCP server for local code search 2026
FAQ
What is the best Zoekt alternative in 2026?
It depends on the job. Sourcebot fits a finished web app with an MCP server. OpenGrok fits cross-referenced browsing. livegrep fits interactive regex search of large repositories. Hound fits a light web search over a list of repos. ripgrep fits one checkout. Sourcegraph fits a company-wide platform, and XERJ fits code plus docs on your own machine.
Is Zoekt open source?
Yes. sourcegraph/zoekt is Apache-2.0, with 2,109 GitHub stars on 3 Dec 2026. It publishes no GitHub releases.
Does Zoekt have an MCP server?
The Zoekt README documents a web UI, a JSON API and a gRPC API. It does not mention an MCP server. Sourcebot, which has a documented MCP server, is the closest packaged option, and XERJ serves MCP from the same binary that indexes your files.
What is a free alternative to Zoekt?
Sourcebot (MIT), OpenGrok (CDDL-1.0), livegrep (BSD-2-Clause), Hound (MIT), ripgrep (MIT or Unlicense) and XERJ (Apache-2.0) are all open source and free to self-host.
How was this page checked?
Stars, licences and descriptions came from the public GitHub API on 3 Dec 2026. Latest releases came from the GitHub releases API the same day. OpenGrok and livegrep licences were read from their LICENSE and COPYING files. MCP support was read from each project's README or documentation.
Evidence
- sourcegraph/zoekt: 2,109 stars, Apache-2.0, no GitHub releases.
- sourcebot-dev/sourcebot: 4,049 stars, MIT, v6.1.3, 30 Nov 2026. MCP: Sourcebot MCP docs.
- opengrok/opengrok: 5,039 stars, CDDL-1.0 (LICENSE.txt), 1.15.1, 3 Dec 2026.
- livegrep/livegrep: 2,240 stars, BSD-2-Clause (COPYING), no GitHub releases.
- hound-search/hound: 5,900 stars, MIT, v0.7.1, 3 May 2023.
- BurntSushi/ripgrep: 70,709 stars, MIT or Unlicense, 16.0.0, 22 Nov 2026.
- Sourcegraph MCP Server docs: supported on Enterprise plans; tools include keyword_search, nls_search, go_to_definition and find_references.
- xerj-org/xerj: 23,537 stars, Apache-2.0, v1.0.0-rc.105, 23 Nov 2026.