Skip to content
MCP server
RegistryRemote

Sourcegull MCP Server

Code search and navigation across your GitLab, GitHub and Gitea repositories, self-hosted.

Sourcegull scores 67 (Good), licensed Apache-2.0 and written in Rust. It can be reached as a remote MCP endpoint. It does not declare tools yet. Filed under Version control. GitHub shows 20 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by sourcegullApache-2.0Rust20 stars
Trust score
67Good
Trust score 67 of 100, Good

Good trust

67 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 67 comes from

22 + 20 + 4 + 10 + 4 + 7 = 67. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "sourcegull-sourcegull": {      "url": "https://{sourcegull_host}/.api/mcp"    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

Fast search, fewer tokens

Agents connected over MCP read only the lines that answer their question, with up to 50× fewer tokens than cloning and grepping (token usage).

Sourcegull uses a trigram index of its own. After a push, only the changed paths are written to a delta shard, so new commits are searchable within seconds without rebuilding the repository's index. Small repositories are packed together into compound shards, which keeps instances with thousands of repositories fast. Revisions that are not indexed (any branch, tag or commit) are searched straight from git. Results stream as they are found.

How it compares with the alternatives on the same GitLab: Benchmark.

Everything is free

Every feature is in this repository under Apache-2.0. There is no enterprise edition, no licence key and no paid tier, and the project will not add one. That includes the features that other code search products usually sell separately:

Also included: literal, regexp, keyword (BM25) and structural search; notebooks; code ownership; saved searches and search contexts; a GraphQL API, the gull CLI and outbound webhooks; Grafana dashboards and documented alerts. See the documentation.

Ready for production

  • One Rust binary, and PostgreSQL (16 or newer) is its only stateful dependency. Nothing is sent to a vendor cloud.
  • No telemetry. Usage analytics stay on the instance.
  • Docker Compose for one host, a Helm chart for Kubernetes. Every release is tested by upgrading from the previous one.
  • Repository storage spreads across several repo nodes, which you can add or remove without downtime.
  • Stored secrets are encrypted, and the keys rotate without a restart.
  • Grafana dashboards and Prometheus alerts are included.
  • Configuration as code: sign-in, code host connections and site admins come from files in git, and secrets come from the environment.
  • GitLab (gitlab.com and self-managed) has every feature. GitHub (github.com and Enterprise Server) and Gitea support repository sync, permission sync, webhooks and sign-in.
  • Several code hosts at once: connect gitlab.com, a self-managed GitLab, GitHub and Gitea side by side, and one search covers all of them, each with its own permissions.

Quick install

To try Sourcegull or run it for a small team on one host, download the Compose bundle of the latest release and start PostgreSQL and Sourcegull with the published image, ghcr.io/sourcegull/sourcegull (linux/amd64):

curl -fsSL https://github.com/sourcegull/sourcegull/releases/latest/download/sourcegull-compose.tar.gz | tar -xz
cd sourcegull-compose
echo "POSTGRES_PASSWORD=$(openssl rand -hex 24)" > .env
docker compose up -d

Open http://localhost:7080. The first user to sign up becomes the site admin. Add a GitLab, GitHub or Gitea connection under Site admin → Code host connections, and repositories start cloning and indexing.

Production deployments

docs/install.md is the install guide. For production, use one of these:

Running either one is covered by the docs on upgrades (Compose, Helm), backups, monitoring and configuration as code.

AI agents (MCP)

/.api/mcp is a Model Context Protocol server. Coding agents search code, read files, find symbols, definitions and references, and read history (log, commits, compare, blame) with the caller's permissions, in output sized for a model's context. Connect an agent in the sidebar gives copy-paste setup for Codex, Claude Code, Cursor, VS Code, Gemini CLI, Zed, JetBrains and others. Follow Codex browser sign-in or see the MCP setup guide for other clients and access-token setup.

For agents working on Sourcegull itself, AGENTS.md contains the repository's development and testing instructions.

How it works

One binary, sourcegull, runs in roles: web (UI, APIs, search fan-out), repo (git storage, index shards and search, partitioned across nodes), worker (background jobs) and blob (blob store); sourcegull supervise runs them all in one process. sourcegull executor runs sandboxed jobs in Docker or Kubernetes. PostgreSQL holds the data, job queues, leases and caches; there is no Redis. Each repo node indexes and searches its own repositories; web parses the query, applies permissions, fans it out to the nodes and merges the result streams. Details in docs/architecture.md.

Build from source

Everything runs in Docker; nothing to install but Docker with Compose.

docker compose up -d          # Postgres, Sourcegull built from this checkout, UI dev server
open http://localhost:5173    # UI with hot reload; API on :7080
scripts/dev test              # the test suite against the dev Postgres
scripts/dev check             # rustfmt, clippy -D warnings, UI type check and tests
scripts/dev help              # e2e tests, benchmarks, a local GitLab with seed data, ...

More in docs/development.md.

Alternatives

SourcegullSourcegraphSourcebotZoektOpenGrokHoundGitLab code search
Licence🟢 Apache-2.0💰 proprietary💰 proprietary, free to 5 users🟢 Apache-2.0🟢 CDDL-1.0🟢 MIT💰 GitLab tiers
Every feature free🟢🔴🔴🟢🟢🟢🔴
Written inRustGo, TypeScriptTypeScript (Zoekt inside)GoJavaGoRuby, Go
Indexed regex search🟢💰🟢 to 5 users🟢🟢🟢💰 default branch only
Unindexed revisions (any branch, tag, commit)🟢💰🔴🔴🔴🔴🟡 any branch, one project at a time
Structural and BM25 keyword search🟢💰🔴🔴🔴🔴🔴
Code hosts🟢 GitLab, GitHub, Gitea💰 many🟢 many, to 5 users🟡 mirror tools🟡 local checkouts (many VCS)🟢 git and others🟢 GitLab only
Precise code navigation (SCIP), cross-repository🟢💰🔴🔴🔴🔴🟡 within one project
Repository permissions synced from the code host🟢💰💰🔴🔴🔴🟢 built in
SSO, SCIM, RBAC, audit log🟢💰💰 SSO free to 5 users, rest paid🔴🔴🔴💰 partly paid
Bulk changes across repositories🟢💰🔴🔴🔴🔴🔴
Trends, watches, search jobs🟢💰🔴🔴🔴🔴🔴
MCP server for AI agents🟢💰🟢 to 5 users🔴🔴🔴🟡 free, cross-project code search paid
Hosted AI assistant🔴💰🟢 to 5 users🔴🔴🔴💰

🟢 free · 💰 paid · 🟡 incomplete · 🔴 not available

  • Sourcegraph is the most complete code intelligence platform, self-hosted under a commercial licence.
  • Sourcebot builds a web UI, an MCP server and an AI assistant on Zoekt. It is closed source since version 6. The free plan stops at 5 users, permission syncing and analytics are in paid plans, and SCIM and audit logs are in the Enterprise plan.
  • Zoekt is a fast trigram search engine and nothing else. It answers literal queries faster than Sourcegull; Sourcegull indexes faster, needs less disk and answers regexps faster (below).

Benchmark: the same GitLab, one product at a time

Each product indexed the same 1,007 public projects from one GitLab CE 19.4 instance: 7 large repositories at pinned releases (Linux, LLVM, Go, Rust, Kubernetes, GitLab, TensorFlow; 4.4 GB of source) and 1,000 generated repositories with history (0.84 GB). Every product ran alone, from a fresh install, next to GitLab on one host with 6 CPUs and 24 GB of memory.

All repositories searchablePeak memory (indexing)Memory (idle)DiskSelective literalCommon literalRegexNo match
Sourcegull3 min 21 s3.7 GB2.2 GB3.7 GB54 / 69 ms (724)48 / 54 ms (1000)84 / 88 ms (1000)29 / 35 ms (0)
Sourcegraph 5.0.610 min 08 s5.2 GB3.2 GB13.4 GB22 / 33 ms (640)24 / 30 ms (902)121 / 242 ms (883)12 / 20 ms (0)
Sourcebot 5.1.165 min 31 s8.5 GB1.9 GB13.9 GB77 / 90 ms (660)101 / 113 ms (971)309 / 332 ms (978)18 / 21 ms (0)
Zoekt9 min 05 s3.9 GB1.7 GB13.9 GB16 / 23 ms (724)29 / 34 ms (1000)361 / 390 ms (1000)8 / 10 ms (0)
Hound3 min 02 s6.2 GB5.9 GB9.4 GB336 / 351 ms (724)766 / 851 ms (2188)788 / 884 ms (2187)10 / 13 ms (0)
OpenGrok 1.1436 min 38 s9.0 GB5.1 GB18.4 GB973 / 998 ms (653)84 / 107 ms (1000)not supported20 / 27 ms (0)
  • Searchable: from adding the GitLab connection (or starting the product, when it reads its configuration from a file) until every repository is in the search index, cloning included.
  • Memory: all of the product's containers, databases included, as Docker reports them: the peak while indexing, and after two idle minutes. Disk: all of its volumes (git mirrors, index, databases).
  • Queries: p50 / p95 of 20 sequential requests after 3 warm-ups, over HTTP to each product's search API, at most 1,000 results; files returned in parentheses. Selective is kmalloc_array, common is func main, regex is func\s+main\(, and the last query matches nothing. Sourcegraph and Sourcebot stop at 1,000 line matches, so they return fewer files; Hound has no limit and returns every matching file.
  • Settings are the defaults, except: Zoekt (zoekt-indexserver and zoekt-mirror-gitlab built from commit c0b97d2) runs with -fetch_interval 1m (the default of one hour delays the first index by an hour) and -cpu_fraction 1.0; Hound runs 6 indexers. OpenGrok has no code host integration, so its time includes cloning every repository first (6 at a time, 86 s); its regexps match single tokens, so the regex query cannot be expressed.
  • Sourcegraph 5.0.6 is the single-container image from 2023, before the source was closed. Sourcebot 6 needs the deployment registered with the vendor before its API answers, so 5.1.16, the last release without that, was measured. GitLab's own code search is not included: GitLab CE searches code one project at a time, and instance-wide search needs exact code search (Zoekt) or advanced search (Elasticsearch or OpenSearch), both on Premium or Ultimate.

Contributing

Bug reports and pull requests are welcome. docs/development.md covers the Docker development setup, tests, benchmarks and conventions. Run scripts/dev check before sending a change.

Licence

Apache-2.0 (LICENSE-APACHE). Parts derived from third-party projects keep their licence and attribution; see NOTICE.

Sourcegull is independent and not affiliated with, sponsored or endorsed by Sourcegraph, Inc. or GitLab Inc. Product names are trademarks of their owners, named only to describe alternatives and compatibility.

Frequently asked questions

What is Sourcegull MCP Server?

Code search and navigation across your GitLab, GitHub and Gitea repositories, self-hosted.

How do I install Sourcegull MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Sourcegull MCP Server connects to the remote endpoint https://{sourcegull_host}/.api/mcp, so there is nothing to install locally.

Is Sourcegull MCP Server free and open source?

Yes. Sourcegull MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Sourcegull MCP Server support remote (HTTP) connections?

Yes. Sourcegull MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.

How is Sourcegull MCP Server's trust score calculated?

Sourcegull MCP Server scores 67 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server