Sourcebot

Sourcebot

4.2

If you are the rightful owner of Sourcebot and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcpreview.com.

The Sourcebot MCP server allows LLM agents to fetch code context from various repositories hosted on platforms like GitHub, GitLab, and Bitbucket, enhancing the capabilities of LLMs in code-related tasks.

Sourcebot MCP is a model context protocol server that enables LLM agents to access and fetch code context from a wide range of repositories hosted on platforms such as GitHub, GitLab, and Bitbucket. This server is designed to enhance the capabilities of LLMs by providing them with relevant code context, which can be used to enrich responses, improve reasoning abilities, and build custom LLM agents for tasks like compliance auditing and migration. The server supports regex-based code searches and plans to incorporate semantic search and code navigation features in the future.

Features

  • Fetch code context from multiple repositories across platforms like GitHub, GitLab, and Bitbucket.
  • Enhance LLM capabilities by providing relevant code context for enriched responses and improved reasoning.
  • Support for regex-based code searches with plans for future semantic search capabilities.
  • Ability to list all repositories indexed by Sourcebot and fetch source code for specific files.
  • Potential for building custom LLM agents for tasks like compliance auditing and migration.

MCP Tools

  • {'search_code': 'Fetches code that matches the provided regex pattern in query.'}
  • {'list_repos': 'Lists all repositories indexed by Sourcebot.'}
  • {'get_file_source': 'Fetches the source code for a given file.'}

Usage with Different Platforms

Cursor


{
    "mcpServers": {
        "sourcebot": {
            "command": "npx",
            "args": ["-y", "@sourcebot/mcp@latest" ],
            "env": {
                "SOURCEBOT_HOST": "http://localhost:3000"
            }
        }
    }
}

Windsurf


{
    "mcpServers": {
        "sourcebot": {
            "command": "npx",
            "args": ["-y", "@sourcebot/mcp@latest" ],
            "env": {
                "SOURCEBOT_HOST": "http://localhost:3000"
            }
        }
    }
}

VS Code


{
    "mcp": {
        "servers": {
            "sourcebot": {
                "type": "stdio",
                "command": "npx",
                "args": ["-y", "@sourcebot/mcp@latest"],
                "env": {
                    "SOURCEBOT_HOST": "http://localhost:3000"
                }
            }
        }
    }
}

Claude Code

sh
# SOURCEBOT_HOST env var is optional - if not specified,
# https://demo.sourcebot.dev is used.
claude mcp add sourcebot -e SOURCEBOT_HOST=http://localhost:3000 -- npx -y @sourcebot/mcp@latest

Claude Desktop


{
    "mcpServers": {
        "sourcebot": {
            "command": "npx",
            "args": ["-y", "@sourcebot/mcp@latest"],
            "env": {
                "SOURCEBOT_HOST": "http://localhost:3000"
            }
        }
    }
}