# Connect GitHub with Unblocked to give AI agents codebase context

URL: https://getunblocked.com/integrations/github/

Unblocked integrates with GitHub to give AI coding agents and developers cited context from your repositories, pull requests, issues, and code history — alongside your docs, tickets, and conversations.

---

## GitHub integration details

- **Category:** Source code
- **Indexed data:** repositories, pull requests, issues, discussions, code history
- **Supported products:** GitHub.com · GitHub Enterprise (cloud) · GitHub Enterprise (self-hosted) (Enterprise plan)
- **Works with:** Claude Code, Cursor, Windsurf, GitHub Copilot, Codex, VS Code — via one MCP server connection
- **Content reviewed:** July 20, 2026
- **Documentation:** <https://docs.getunblocked.com/data-sources/github>
- **Website:** <https://github.com>

## What the GitHub integration adds

GitHub is the evidence layer behind many engineering decisions: the code shows what exists, pull requests record how it changed, and issues and discussions preserve the reasoning around that work. Unblocked makes those records available together instead of treating each GitHub surface as a separate search silo.

GitHub context doesn’t live alone. Unblocked links pull requests, issues, and discussions to the code they touch, then combines them with your docs, tickets, and conversations from every other connected source. Instead of raw search results, agents and developers get one reconciled answer with GitHub sources cited.

Once connected, any MCP-compatible coding agent — Claude Code, Cursor, Windsurf, GitHub Copilot, Codex — can pull this context through a single Unblocked MCP server connection.

### What you get

- **Repository context** — Unblocked indexes your source code and keeps it in sync as your team pushes changes. The main branch is the source of truth.
- **Pull request history** — Every PR, its review comments, and merge decisions become searchable context. Agents can reference past PRs to understand why code works the way it does.
- **Issues and Discussions** — GitHub Issues and Discussions are connected to the code they reference, so agents can trace a bug from ticket to fix.
- **Cross-source synthesis** — GitHub data is combined with Slack threads, Jira tickets, Confluence docs, and Sentry errors into a single knowledge graph.

## How to connect GitHub to Unblocked

Prerequisites:

- An Unblocked account (free to start).
- Permission to install the Unblocked GitHub App in your GitHub organization (an org owner can approve the request). GitHub Enterprise (self-hosted) requires the Enterprise plan.
- An MCP-compatible coding agent (Claude Code, Cursor, Windsurf, etc.) to use the context in your editor.

### Step 1: Connect GitHub to Unblocked

1. Navigate to Team Settings → Data Sources in Unblocked.
2. Select GitHub and authorize via OAuth.
3. Choose the repositories to index.
4. Unblocked begins syncing immediately; full index completes in minutes.

See the complete setup guide, screenshots, and troubleshooting: <https://docs.getunblocked.com/data-sources/github>

### Step 2: Install the Unblocked MCP server

On macOS, one command auto-detects and configures your supported agents (Claude Code, Cursor, Windsurf, GitHub Copilot, Codex, VS Code):

```bash
curl -fsSL https://getunblocked.com/install-mcp.sh | bash
```

The install script supports macOS only. On Windows or Linux, add the server manually using the configuration below, or follow the manual install guide: <https://docs.getunblocked.com/unblocked-mcp/mcp-overview#install-windows-%2F-linux-%2F-other>

Claude Code — add the remote server, then run /mcp in Claude Code, select unblocked, and log in via OAuth:

```bash
claude mcp add -s user --transport http unblocked https://getunblocked.com/api/mcpsse
```

Cursor — open View: Open MCP Settings → Add Custom MCP, add the server, then click Connect to authenticate via OAuth:

```json
{
  "mcpServers": {
    "unblocked": {
      "url": "https://getunblocked.com/api/mcpsse"
    }
  }
}
```

Any MCP-compatible client (Windsurf, Codex, VS Code, Claude Desktop, and others) can connect to the remote server with OAuth: `https://getunblocked.com/api/mcpsse`

## Connect GitHub to Claude Code, Cursor, and other AI agents

To give Claude Code, Cursor, GitHub Copilot, Codex, or another MCP-compatible AI coding agent access to GitHub context, connect GitHub to Unblocked and add the single Unblocked MCP server to your agent.

Unblocked acts as the MCP context layer for your GitHub data, searching repositories, pull requests, issues, discussions, code history alongside your other connected sources and returning cited results through these tools:

- **`context_research`** — Multi-source research across your repositories, pull requests, issues, docs, and messaging. Returns a synthesized answer with citations, so agents understand not just what the code does but why it was built that way.
- **`context_get_urls`** — Fetches the full content behind GitHub PR, issue, and file URLs your agent encounters — plus Jira, Linear, Notion, Confluence, Slack, and more.

## Questions to ask an AI agent about GitHub

Questions you (or your agent) can ask Unblocked about your GitHub data:

- "Why was the authentication middleware refactored in PR #842?"
- "What decisions were made about the database migration approach?"
- "Which PRs have touched the payment service in the last 30 days?"
- "What issues are currently open in the API repository?"

## Related integrations

- [GitHub Actions](https://getunblocked.com/integrations/github-actions/) — Unblocked’s CI Failure Agent analyzes failed GitHub Actions runs on your selected repositories and posts root-cause reports to the pull request.
- [GitLab](https://getunblocked.com/integrations/gitlab/) — Repositories and merge requests from GitLab.com and self-managed instances — indexed with full history and cited in answers as your team pushes changes.
- [Bitbucket](https://getunblocked.com/integrations/bitbucket/) — Repositories and pull requests from Bitbucket Cloud and Data Center — kept current as your team pushes, and cited as sources in answers.
- [Azure DevOps](https://getunblocked.com/integrations/azure-devops/) — Azure DevOps repositories and pull requests as cited context, so agents and developers can ask how the code works and why it changed.

## Get started with Unblocked

- Start a free trial: <https://getunblocked.com/dashboard/get-started>
- Pricing: <https://getunblocked.com/pricing/>
- Documentation: <https://docs.getunblocked.com/data-sources/github>
- All integrations: <https://getunblocked.com/integrations/>
