COMPARISONS · CODE SEARCH

Zoekt alternatives in 2026: self-hosted code search for AI agents and teams

AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-12-03 · UPDATED · 2026-12-03
SHORT ANSWER · UPDATED 2026-12-03

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.

TOOL · FILTER

Find the Zoekt alternative that fits

I need

Sort by

ToolWhat it isBest forLatest releaseLicenceStars
ZoektFast trigram based code search, with an indexserver, a web UI, a JSON API and a gRPC APIA fast self-hosted index you build your own tools onNo GitHub releaseApache-2.02,109
SourcebotSelf-hosted code context layer for humans and agents: indexes repos from GitHub, GitLab, Bitbucket and Azure DevOpsA ready web app plus an MCP server for coding agentsv6.1.3, 30 Nov 2026MIT4,049
OpenGrokFast and usable source code search and cross reference engine, written in JavaBrowsing and cross-referencing large code bases1.15.1, 3 Dec 2026CDDL-1.05,039
livegrepInteractively grep source code, the engine behind livegrep.comInteractive regex search of gigabyte-scale repositoriesNo GitHub releaseBSD-2-Clause (COPYING file)2,240
HoundExtremely fast source code search engine: a React frontend over a Go backend that keeps an index for each repositoryA simple web search over a list of reposv0.7.1, 3 May 2023MIT5,900
ripgrepRecursive regex search that respects your gitignore, as a command line toolOne checkout on one machine16.0.0, 22 Nov 2026MIT or Unlicense70,709
SourcegraphCode search and code intelligence across many repos, with an MCP server on Enterprise plansLarge organisations that want one platformHosted and self-managed productProduct, see sourcegraph.comHosted product
XERJLocal search engine for AI agents over code, docs and files, with cited answers over CLI and MCPCode plus docs, PDFs and logs on your own machinev1.0.0-rc.105, 23 Nov 2026Apache-2.023,537

Stars, licences and descriptions from the public GitHub API on 3 Dec 2026; latest GitHub releases from the releases API the same day. Zoekt publishes no GitHub releases, so its row sorts by last push. Sourcegraph is a product, so its stars cell shows that instead of a number. Tick boxes to keep only the tools that do all of them; sort by stars, newest release or name.
PASTE THIS TO YOUR AI AGENT. IT DOES THE REST 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

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

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