What is Sourcebot MCP?
Sourcebot MCP is an open-source tool that allows LLM agents to fetch code context from thousands of repositories hosted on platforms like GitHub, GitLab, and BitBucket.
Ask your agent a question, and the Sourcebot MCP server will fetch relevant context from its index and inject it into your chat session.
Use Cases
Enriching responses to user requests
"What repositories are using internal library X?"
"Provide usage examples of the CodeMirror component"
"Where is the useCodeMirrorTheme hook defined?"
"Find all usages of deprecatedApi across all repos"
Improving reasoning ability for existing horizontal agents (code review, docs generation, etc)
"Find the definitions for all functions in this diff"
"Document what systems depend on this class"
Building custom LLM horizontal agents like like compliance auditing agents, migration agents, etc.
"Find all instances of hardcoded credentials"
"Identify repositories that depend on this depreacted api"
FAQ from Sourcebot?
- Can Sourcebot index private repositories?
Yes! Sourcebot can index both public and private repositories across supported platforms.
- Is Sourcebot free to use?
Yes! Sourcebot is open-source and free for everyone.
- How can I contribute to Sourcebot?
You can contribute by following the guidelines in the
CONTRIBUTING.mdfile in the repository.
Server Config
{
"mcpServers": {
"sourcebot": {
"command": "npx",
"args": [
"-y",
"@sourcebot/mcp@latest"
]
}
}
}