Sourcegraph
for AI agents.
Sourcegraph integration for AI agents with secure authentication and server-side credential injection. Open Connector runs the OAuth, seals the token in an encrypted vault, and serves Sourcegraph tools to your agent over MCP or a typed API — credentials injected server-side, every call audited, nothing leaving your infrastructure. Open source (AGPL-3.0) and self-hostable.
Real Sourcegraph actions, managed and audited.
Your user connects Sourcegraph once; your agent can then give humans and agents complete context to understand, oversee, and evolve the world — scoped to the OAuth permissions you grant and the tool allowlist you configure. Every action is least-privilege and written to a tamper-evident audit trail.
- 01Connect
Your user grants Sourcegraph access once (OAuth) — the token lands in the vault.
- 02Call
Your agent calls a tool over MCP or the typed API; Open Connector injects the credential server-side.
- 03Audit
Every routed call appends a hash-chained audit record — nothing leaves your infra.
Supported Sourcegraph tools.
Browse 0 tools in the Sourcegraph catalog. Each action uses your configured authentication and tool allowlist.
Showing 0 tools.
No tools match “”.
Sourcegraph integration, answered
- How do AI agents use Sourcegraph through Open Connector?
- Your user connects Sourcegraph once with one of its cataloged authentication methods. Open Connector stores the credential in an encrypted vault and exposes Sourcegraph tools to your agent over MCP or a typed API, with credentials injected server-side on each call.
- Is this a Sourcegraph MCP server?
- Yes. Open Connector can serve Sourcegraph as a named MCP server with a scoped allowlist and a per-user connection URL, so any MCP client can call Sourcegraph actions with credentials injected server-side.
- Where do Sourcegraph credentials live?
- In your own infrastructure. Open Connector keeps credentials in its own vault and injects them at call time, so they never leave your environment.
Give your agents Sourcegraph — keep the keys.
Open source, self-hostable, with Sourcegraph credentials that never leave your infrastructure. Run it from source today.