---
title: "GitHub MCP Server alternatives 2026: code search tools compared"
canonical: "https://xerj.org/compare/github-mcp-server-alternatives-2026"
updated: "2026-12-03"
---

# Best GitHub MCP Server alternatives in 2026

SHORT ANSWER · UPDATED 2026-12-03
The best GitHub MCP Server alternatives in 2026 are Context7 for current library docs inside an AI editor, codebase-memory-mcp for persistent code graph memory for coding agents, Serena for symbol-level navigation and edits for agents and Hound for a simple self-hosted code search for a team. In one line, GitHub MCP Server is this: gitHub's official MCP server for repositories, issues, pull requests and code search. The right swap depends on how you want to run it and which licence you need.
**Key number:** GitHub MCP Server had 34,945 GitHub stars on 3 Dec 2026, latest release v2.3.0, 24 Nov 2026.
Stars, licences, languages and releases for 10 tools were fetched live from the GitHub API, GitHub release pages and the Hugging Face API on 3 Dec 2026. Hosted services link to their official sites and carry no invented numbers.

**TL;DR** The best GitHub MCP Server alternatives in 2026 are Context7 for current library docs inside an AI editor, codebase-memory-mcp for persistent code graph memory for coding agents, Serena for symbol-level navigation and edits for agents and Hound for a simple self-hosted code search for a team.

## Agent prompt

```text
Read https://xerj.org/llms.txt. I am comparing GitHub MCP Server alternatives. Install XERJ, start a local node, run xerj autoindex on my project folder, connect xerj mcp, and show me three searches with file and line citations.
```

## Pick one in ten seconds

- Pick [Context7](https://github.com/upstash/context7) if you want current library docs inside an AI editor.
- Pick [codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp) if you want persistent code graph memory for coding agents.
- Pick [Serena](https://github.com/oraios/serena) if you want symbol-level navigation and edits for agents.
- Pick [Hound](https://github.com/hound-search/hound) if you want a simple self-hosted code search for a team.
- Pick [OpenGrok](https://github.com/oracle/opengrok) if you want long-lived cross-reference of big codebases.
- Pick [Sourcebot](https://github.com/sourcebot-dev/sourcebot) if you want self-hosted code search across GitHub and GitLab.
- Pick [livegrep](https://github.com/livegrep/livegrep) if you want live regex search over a big monorepo.
- Pick [Zoekt](https://github.com/sourcegraph/zoekt) if you want searching many repositories by regex at scale.
- Pick [XERJ](https://github.com/xerj-org/xerj) if an AI agent should search your local code, docs and logs over MCP.

## What GitHub MCP Server does well

GitHub's official MCP server for repositories, issues, pull requests and code search. It suits agents working with GitHub repos and issues. It runs as a self-hosted server, is written mainly in Go, and its licence is MIT. Plan for this: searches what lives on GitHub.

## How the GitHub MCP Server alternatives differ

The alternatives split by how they run:

- **Self-hosted server:** Context7, codebase-memory-mcp, Serena, Hound, OpenGrok, Sourcebot, livegrep, Zoekt.

## Licences at a glance

- **Permissive licences:** GitHub MCP Server (MIT), Context7 (MIT), codebase-memory-mcp (MIT), Hound (MIT), Sourcebot (MIT), livegrep (BSD-2-Clause), Zoekt (Apache-2.0).
- **Copyleft licences:** Serena (GPL-3.0-or-later, SolidLSP part under MIT), OpenGrok (CDDL-1.0).

## Most recent releases

Context7 shipped upstash/context7-mcp 4.9.3 on 3 Dec 2026. OpenGrok shipped 1.15.1 on 3 Dec 2026. Sourcebot shipped v6.1.3 on 30 Nov 2026. A recent release is a sign of active upkeep, so check the changelog for the features you rely on.

## Where XERJ fits next to GitHub MCP Server

XERJ is a new way for AI to search for data: one local Rust binary that indexes code, docs, logs and data with `xerj autoindex` and returns passages with file and line citations. `xerj mcp` is a stdio MCP server, and `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`. It complements GitHub MCP Server when an agent needs answers from files on your machine.

## How we checked

Stars, licences, languages and releases for 10 tools were fetched live from the GitHub API, GitHub release pages and the Hugging Face API on 3 Dec 2026. Hosted services link to their official sites and carry no invented numbers. Descriptions summarise each project's own README or documentation. Star counts move daily, so treat them as a snapshot.

## Read next

- [Context7 vs GitHub MCP Server (2026): which code search fits?](https://xerj.org/compare/context7-vs-github-mcp-server-2026)
- [Context7 and Ref alternatives 2026: 6 docs MCP servers compared](https://xerj.org/compare/context7-alternatives-2026)
- [Codegraph vs codebase-memory-mcp (2026): which code search fits?](https://xerj.org/compare/codegraph-vs-codebase-memory-mcp-2026)
- [codebase-memory-mcp alternatives 2026: code graph MCP servers](https://xerj.org/compare/codebase-memory-mcp-alternatives-2026)
- [Serena vs Codegraph (2026): which code search fits?](https://xerj.org/compare/serena-vs-codegraph-2026)
- [Serena MCP alternatives 2026: code search MCP servers compared](https://xerj.org/compare/serena-mcp-alternatives-2026)
- [What is syntax-aware search?](https://xerj.org/science/syntax-aware-search)
- [Reference coding for AI coding agents](https://xerj.org/science/reference-coding)
- [What is agentic search? AI agents that search in a loop (2026)](https://xerj.org/science/agentic-search)

## FAQ

### What is the best GitHub MCP Server alternative in 2026?

It depends on the job: Context7 fits current library docs inside an AI editor, codebase-memory-mcp fits persistent code graph memory for coding agents, Serena fits symbol-level navigation and edits for agents, Hound fits a simple self-hosted code search for a team, and XERJ fits AI agents searching local files over MCP.

### Is GitHub MCP Server open source?

GitHub MCP Server is published under MIT and had 34,945 GitHub stars on 3 Dec 2026.

### Which GitHub MCP Server alternatives can I self-host?

These run on your own machines: Context7, codebase-memory-mcp, Serena, Hound, OpenGrok, Sourcebot, livegrep, Zoekt.

### Which languages are the GitHub MCP Server alternatives written in?

C: codebase-memory-mcp; C++: livegrep; Go: Zoekt; Java: OpenGrok; JavaScript: Hound; Python: Serena, Sourcebot; TypeScript: Context7. The primary language is the one GitHub reports for each repository.

## Evidence

- [github/github-mcp-server](https://github.com/github/github-mcp-server): 34,945 stars, MIT, Go, latest release v2.3.0, 24 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).
- [upstash/context7](https://github.com/upstash/context7): 65,847 stars, MIT, TypeScript, latest release upstash/context7-mcp 4.9.3, 3 Dec 2026 (GitHub API and release page, checked 3 Dec 2026).
- [DeusData/codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp): 49,567 stars, MIT, C, latest release v0.12.1, 16 Oct 2026 (GitHub API and release page, checked 3 Dec 2026).
- [oraios/serena](https://github.com/oraios/serena): 31,943 stars, GPL-3.0-or-later, SolidLSP part under MIT, Python, latest release v2.1.0, 19 Oct 2026 (licence read from [its licence file](https://github.com/oraios/serena/blob/HEAD/LICENSE)) (GitHub API and release page, checked 3 Dec 2026).
- [hound-search/hound](https://github.com/hound-search/hound): 5,902 stars, MIT, JavaScript, latest release v0.7.1, 3 May 2023 (GitHub API and release page, checked 3 Dec 2026).
- [oracle/opengrok](https://github.com/oracle/opengrok): 5,041 stars, CDDL-1.0, Java, latest release 1.15.1, 3 Dec 2026 (licence read from [its licence file](https://github.com/oracle/opengrok/blob/HEAD/LICENSE.txt)) (GitHub API and release page, checked 3 Dec 2026).
- [sourcebot-dev/sourcebot](https://github.com/sourcebot-dev/sourcebot): 4,051 stars, MIT, Python, latest release v6.1.3, 30 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).
- [livegrep/livegrep](https://github.com/livegrep/livegrep): 2,240 stars, BSD-2-Clause, C++, latest release No GitHub release (licence read from [its licence file](https://github.com/livegrep/livegrep/blob/HEAD/COPYING)) (GitHub API and release page, checked 3 Dec 2026).
- [sourcegraph/zoekt](https://github.com/sourcegraph/zoekt): 2,112 stars, Apache-2.0, Go, latest release No GitHub release (GitHub API and release page, checked 3 Dec 2026).
- [xerj-org/xerj](https://github.com/xerj-org/xerj): 23,588 stars, Apache-2.0, Rust, latest release v1.0.0-rc.105, 23 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).

## Comparison table

| Tool | What it is | Runs as | Language | Latest release | Licence | Stars |
|---|---|---|---|---|---|---|
| [GitHub MCP Server](https://github.com/github/github-mcp-server) | GitHub's official MCP server for repositories, issues, pull requests and code search | Self-hosted server | Go | v2.3.0, 24 Nov 2026 | MIT | 34,945 |
| [Context7](https://github.com/upstash/context7) | MCP server that serves up-to-date library documentation and code examples to coding agents | Self-hosted server | TypeScript | upstash/context7-mcp 4.9.3, 3 Dec 2026 | MIT | 65,847 |
| [codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp) | MCP server that indexes a codebase into a persistent knowledge graph for agents | Self-hosted server | C | v0.12.1, 16 Oct 2026 | MIT | 49,567 |
| [Serena](https://github.com/oraios/serena) | Coding agent toolkit that exposes semantic code retrieval and editing over language servers and MCP | Self-hosted server | Python | v2.1.0, 19 Oct 2026 | GPL-3.0-or-later, SolidLSP part under MIT | 31,943 |
| [Hound](https://github.com/hound-search/hound) | Lightning fast code searcher with a trigram index and a small web UI | Self-hosted server | JavaScript | v0.7.1, 3 May 2023 | MIT | 5,902 |
| [OpenGrok](https://github.com/oracle/opengrok) | Source code search and cross-reference engine with history and many languages | Self-hosted server | Java | 1.15.1, 3 Dec 2026 | CDDL-1.0 | 5,041 |
| [Sourcebot](https://github.com/sourcebot-dev/sourcebot) | Self-hosted code search across many repositories and code hosts, built on Zoekt, with an MCP server | Self-hosted server | Python | v6.1.3, 30 Nov 2026 | MIT | 4,051 |
| [livegrep](https://github.com/livegrep/livegrep) | Interactive regex code search over large codebases, built on suffix arrays | Self-hosted server | C++ | No GitHub release | BSD-2-Clause | 2,240 |
| [Zoekt](https://github.com/sourcegraph/zoekt) | Fast trigram-based code search engine with regex support and a web UI | Self-hosted server | Go | No GitHub release | Apache-2.0 | 2,112 |
| [XERJ](https://github.com/xerj-org/xerj) | One local Rust binary that indexes code, docs, logs and data, and serves cited search to agents over MCP | Command-line tool | Rust | v1.0.0-rc.105, 23 Nov 2026 | Apache-2.0 | 23,588 |
