Skip to content
Cursor

Sourcegraph MCP Server for Cursor

io.github.sourcegraph/mcp

Sourcegraph code search, semantic search, go-to-definition, find-references, and diff search.

client:Cursor transport:streamable-http

Install Sourcegraph MCP Server in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

{
  "mcpServers": {
    "mcp": {
      "url": "https://{sourcegraph_hostname}/.api/mcp"
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Sourcegraph MCP Server in other clients