sourcegraph-mcp-server
A Model Context Protocol (MCP) server that connects AI assistants to Sourcegraph code search with natural language capabilities
Versions
1.4.2scored1.4.11.4.01.3.01.1.0Trust breakdown
Tools 22
echo Simple echo tool for testing that returns your message with
search-commits Search for commits in Sourcegraph repositories with flexible filtering options.\n\n WHEN TO USE THIS TOOL:\n - When you need to find specific commits across repositories\n - When searching for code changes by a particular author\n - When looking for commits within a particular timeframe\n - When searching for specific commit messages or fixes\n\n PARAMETER USAGE:\n - author: The username of the commit author (e.g.,
search-diffs Search for code changes (diffs) in Sourcegraph repositories with detailed filtering.\n\n WHEN TO USE THIS TOOL:\n - When looking for specific code changes or modifications\n - When you need to find added or removed code\n - When tracking changes by specific authors\n - When investigating changes made during a particular time period\n\n PARAMETER USAGE:\n - query: Terms to search for in the changed code (e.g.,
search-github-repos Search for code, commits, or diffs specifically in GitHub repositories.\n\n WHEN TO USE THIS TOOL:\n - When you need to search within specific known GitHub repositories\n - When searching across multiple GitHub repos simultaneously\n - When you need targeted searches in open source projects\n - When you want to limit searches to verified repositories\n\n PARAMETER USAGE:\n - query: What to search for (e.g.,
natural-search Search code repositories using natural language queries instead of precise syntax.\n\n WHEN TO USE THIS TOOL:\n - When you want to search using plain English instead of specific query syntax\n - When you
get-hover-documentation Get hover documentation and type information for a symbol.\n\n
get-document-symbols Get all symbols (functions, classes, variables, etc.) in a file.\n\n
get-file-content Get the raw content of a file from any repository.\n\n
get-file-blame Get git blame information for a file.\n\n
lookup-cve Search for CVEs affecting repositories or packages.\n\n
lookup-package-vulnerability Check if specific packages have known vulnerabilities.\n\n
search-exploits Search for exploit code for known vulnerabilities.\n\n
find-vendor-advisory Find vendor security advisories.\n\n
debug Lists all available tools and methods in the MCP server. Use this to discover capabilities.\n\n WHEN TO USE THIS TOOL:\n - When you need to see what tools are available in the server\n - When you want to check which methods are supported\n - When debugging or exploring the MCP server capabilities\n - When you
deep-code-researcher Conduct deep research on code patterns and architecture across repositories with advanced analysis capabilities.\n\n
get-definition Find the definition of a symbol in code.\n\n
find-references Find all references to a symbol across repositories.\n\n
find-implementations Find implementations of interfaces, classes, or methods across repositories.\n\n
test-nl-search Test natural language search functionality with debugging information
test-connection Test if the MCP server can connect to Sourcegraph API
nl-search-help Get help on using natural language search
natural-search-debug Search code repositories using natural language queries (debug version)
Permissions 2
network Server uses network capabilities via: axios env_vars Server uses env_vars capabilities via: process.env