MCPInstall
Sourcebot logo

Sourcebot

Featured
by sourcebot-dev 4,008 stars sourcebot-dev/sourcebot

Enables code search across multiple repository hosts including GitHub, GitLab, Gitea, Gerrit, and Bitbucket with advanced filtering options for exploring large codebases through natural language queries.

READMEmain

Sourcebot

Code understanding for humans and agents

Website · Docs · Public demo · Changelog

Sourcebot is a self-hosted code context layer for humans and AI agents. Index all your repos in one place so you and your agents can search and navigate them.

Get started

Run the setup wizard:

npx setup-sourcebot

You'll need Node.js (24 LTS recommended), Docker, and Docker Compose.

This wizard walks you through indexing your repos, optionally configuring a language model provider (for Ask Sourcebot), and then creates the config files for you and starts up Sourcebot.

For manual setup, use Docker Compose or the Helm chart. Check out our docs for more info on how to configure Sourcebot.

Code Context for Agents

Your agent can use Sourcebot MCP to search repos you haven't checked out locally. For example, it can find callers of an API in other services or read the implementation for dependencies that you don't have checked out locally.

Repositories on GitHub, GitLab, Bitbucket, and Azure DevOps connected through Sourcebot to agents via API/MCP and humans via the web app

The MCP server exposes code search, file reading, and symbol definitions and references for the repos you've indexed. Open Settings → MCP in Sourcebot to connect Claude Code, Codex, Cursor, or another MCP client. The MCP docs cover setup and authentication for each client.

Connect repos from GitHub, GitLab, Bitbucket, Azure DevOps, or local Git directories using the connection guides. Permission syncing controls access based on your code host's repository permissions.

Code Search

Code Search lets you search across all your indexed repos and branches in one place. Find uses of a dependency, track down a function, or look for a pattern across services without cloning each repo.

Use regular expressions and boolean queries, then narrow the results by repo, file, language, or symbol definition. Results include syntax-highlighted code, with repo and language filters alongside them.

Try it: example search in the public demo.

Code Search demo: a regex query streams matching code from repositories across multiple code hosts

Ask Sourcebot

Ask Sourcebot answers questions about your codebase, including repos you haven't checked out locally. Ask how a feature works or what a migration would involve. Connectors let Ask access your apps and services with your permissions, so it can pull in context and take actions like creating a Linear or Jira issue with its findings. It searches your code and follows references using the same tools as the MCP server.

Open cited code alongside the answer, explore generated diagrams, and share the conversation with your team. Ask runs on a language model provider you configure (Bring Your Own Key), so you control where your code is sent.

Try it: explore an example Ask Sourcebot conversation in the public demo.

Ask Sourcebot demo: tool calls, a streaming answer, and cited source files shown side by side

Try both in the public demo. See pricing for plan details.

Feedback

Report a bug or request a feature.

More Developer Tools MCP servers

Similar servers from the same category.

CodeAlive

codealive-ai

Provides a bridge to CodeAlive's platform for semantic code search, repository exploration, and context-aware chat completions that leverage deep understanding of entire codebases including documentation and dependencies.

search

Provides a secure, sandboxed environment for executing Python, Node.js, and shell commands in ephemeral containers with file management capabilities for code testing, visualization, and data analysis.

filesystemdatabase

NovaCV

lightbaby

Integrates with NovaCV API to generate, analyze, and convert resumes in various formats without dealing with complex document formatting

PDFSupport+5

Pipedream

pipedreamhq

Access hosted MCP servers or deploy your own for 2,500+ APIs like Slack, GitHub, Notion, Google Drive, and more, all with built-in auth and 10k tools.

git