S
Sourcegraph
Search code across repos with Sourcegraph.
·No reviews yet
Share:
About
Auto-generated
Sourcegraph is a Model Context Protocol server in the Developer Tools category. It lets AI assistants that speak MCP call its tools and read its resources over STDIO.
Example tools
Illustrative tool names — the actual tool set is defined by the server at runtime.
list_resources
Enumerate resources exposed by this MCP
get_resource
Fetch a resource by ID
invoke
Invoke the primary action of this MCP
Screenshots
No screenshots yet.
Frequently Asked Questions
Common questions about Sourcegraph.
- What is the primary function of the Sourcegraph MCP?
- The Sourcegraph MCP facilitates code search across various repositories, enabling developers to quickly find and understand code within their projects. It's designed for efficient code navigation and discovery.
- How can I set up Sourcegraph within a client like Cursor?
- Configuration within an MCP client like Cursor typically involves specifying the Sourcegraph endpoint and providing the required authentication details, such as an API key. Consult your client's documentation for exact setup steps.
- Does the Sourcegraph MCP require an API key for authentication?
- Yes, the Sourcegraph MCP uses an API key for authentication. You will need a valid API key to access its functionalities and integrate it with your development environment.
- What are the main capabilities offered by the Sourcegraph MCP?
- The Sourcegraph MCP primarily offers code search capabilities, allowing users to search across their codebase, discover code examples, and understand code relationships. It supports advanced search queries for precise results.
- Is there a cost associated with using the Sourcegraph MCP?
- The Sourcegraph MCP itself is provided by the Community. However, the underlying Sourcegraph service may have different licensing tiers, including free and paid options, depending on your deployment and usage needs.
- What is a common prerequisite for using the Sourcegraph MCP?
- A common prerequisite for using the Sourcegraph MCP is having a deployed Sourcegraph instance accessible from your development environment. This allows the MCP to connect and perform code searches.
Install Sourcegraph
Claude Desktop
Add this to claude_desktop_config.json.
{
"mcpServers": {
"sourcegraph": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sourcegraph"
]
}
}
}Cursor
Add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"sourcegraph": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sourcegraph"
]
}
}
}VS Code
Add this to your workspace settings.json.
{
"mcp.servers": {
"sourcegraph": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sourcegraph"
]
}
}
}Reviews
Sign in to leave a review.
No reviews yet. Be the first!
Discussion(0)
No comments yet.