Connecting GitHub to Claude or ChatGPT can mean three different things, and they don't do the same job. Claude's built-in GitHub integration reads your code. ChatGPT's GitHub app searches and explains it. GitHub's own MCP server goes further, into issues, pull requests and more, and can make changes. This guide covers what each can see and change, how to connect, how to stay safe, what to do when it fails, and what changes when a whole team works with GitHub.
MCP (Model Context Protocol) is an open standard for plugging AI assistants into other apps. Claude and ChatGPT are a great fit for a developer's own work. BlueNexus is for when product, support and client teams need GitHub too.
For reading code in Claude, or working with issues through Claude Code.
For searching and asking questions about code in ChatGPT.
For product, support and client teams who work alongside developers.
Three ways in, three different jobs
| What it sees | What it can change | |
|---|---|---|
| Claude's GitHub integration | File names and contents, added to a chat or private project | Nothing |
| ChatGPT's GitHub app | Your code, to search and analyze | Nothing; code changes go through Codex |
| GitHub's MCP server | Repositories, issues, pull requests, Actions, security alerts and more | Issues, pull requests, files and more, if you allow it |
If you want to ask "what's this code doing?", the first two are enough. If you want "which bugs are open?" or "what was merged this week?", you need the MCP server.
What the MCP server can do, and how to keep it safe
GitHub's MCP server is available to all GitHub users. By default it covers repositories, issues, pull requests and users, and you can add toolsets for Actions, security alerts, discussions, notifications and projects. It can search code, read files, create and update issues and pull requests, and add comments and labels.
Three settings are worth knowing:
- Read-only. Add
/readonlyto the hosted server's address, or start the local version with--read-only, and it only offers tools that read. - Lockdown. On the hosted server, GitHub's lockdown option hides public issue content written by people without push access to the repository. GitHub calls it "a best-effort content filter, not a security boundary."
- A narrow token. A fine-grained token limited to the repositories you need keeps a mistake small.
The reason for the care: security researchers have shown that a public issue can contain instructions aimed at an AI, which could lead it to leak private repository data. Read-only mode, lockdown and a narrow token all reduce the risk, and so does confirming each write instead of allowing everything.
What GitHub's MCP server lets an AI do
- Public issues can contain instructions for AI
- Writes appear as you
- GitHub Enterprise Server needs the local version
Connect GitHub to Claude or ChatGPT
Both take a couple of minutes, and both read code. For issues and pull requests, see the developer section below.
Connect GitHub to Claude
2 minA good fit if you want Claude to read a repository's code.
- 1On a Team or Enterprise plan, an admin turns on GitHub first.
- 2In Claude, open Customize, then Connectors, and connect GitHub Integration.
- 3For private repositories, install the Claude GitHub App on the ones you want, or ask an org admin to.
- 4In a chat, choose +, then Add from GitHub. In a private project, add files to its knowledge and click Sync now when they change.
Claude's GitHub guide says the integration reads file names and contents only. It doesn't see commit history, pull requests or issues.
Connect GitHub to ChatGPT
2 minA good fit if you want ChatGPT to search and explain code.
- 1In ChatGPT, open Apps and find GitHub.
- 2Connect, sign in to GitHub, and choose which repositories to allow.
- 3If your organization restricts apps, ask an owner to approve it.
- 4Ask about a repository you know, to check it's working.
OpenAI's GitHub guide says the app only reads from your repositories. On Plus, it may only appear in Deep Research or Agent Mode. Code changes go through Codex.
For developers
The hosted MCP server is at https://api.githubcopilot.com/mcp/ and signs in with OAuth or a personal access token. In Claude Code, add it with claude mcp add --transport http github https://api.githubcopilot.com/mcp -H "Authorization: Bearer YOUR_TOKEN", or the claude mcp add-json form GitHub's install guide shows for newer versions. For GitHub Enterprise Server, run the local version in Docker. On Copilot Business and Enterprise, an admin must allow MCP servers in Copilot before it works there. In ChatGPT Business and Enterprise, you can add it as a custom app, and ChatGPT can ask you to confirm write actions.
Who can do what
- It works as you. Anything the AI creates, comments or changes appears under your name, and creating an issue notifies everyone watching.
- Organizations decide. Many organizations restrict third-party apps by default, so an owner may need to approve Claude, ChatGPT or a token.
- Fine-grained tokens are narrower. They can be limited to chosen repositories, and may need an admin's approval.
- Training. GitHub says Copilot Business and Enterprise data isn't used for training. Claude and ChatGPT have their own data settings.
When it doesn't work
- A private repository doesn't show up. Your organization may need to approve the app, or you may need to authorize it for single sign-on.
- 404 for a repository you know exists. GitHub returns 404 instead of 403 for private repositories you can't reach. Check the token's repositories and expiry.
- 403 "Resource not accessible by integration" (or "by personal access token"). The app or token is missing a permission.
- Rate limited. GitHub allows 5,000 requests an hour, and search 30 a minute. Ask for less at once.
- Claude can't see the pull request. Claude's GitHub integration reads files only. Use the MCP server.
With a team: GitHub in BlueNexus
In Claude and ChatGPT, each person connects GitHub to their own account. That's right for a developer. But in a small studio, the product manager, the support lead and the founder all need answers from GitHub too, and most of them won't learn GitHub to get them.
BlueNexus is a shared AI workspace where people and AI agents work in the same projects, channels and tasks. The BlueNexus GitHub connector, our own integration, has 165 tools (85 that read and 80 that write) for searching code, managing issues and pull requests, and working with repositories. Every issue, comment or change an agent proposes waits for a person to approve it.
Open Add a connector, search for GitHub, click Connect and sign in.
- All
- AI
- Analytics
- Communication
- Finance
- Marketing
- Productivity
- Sales
- Social
Connect to GitHub to search code, manage issues and pull requests, and interact with repositories.
Illustration of the BlueNexus app with example data.
At Gullwing, a small studio that builds and runs apps for clients, Tavi, who looks after client support, asks the project agent whether a customer's bug is already known. The answer waits in Needs you.
Tavi creates the issue without opening GitHub. Dmitri, the lead developer, decides who picks it up.
Tavi asked the project agent, from a customer ticket. Nothing is created in GitHub until Tavi approves it.
- Search open and recent issues for promo codesNo open issue. The closest, #301, was fixed in May
- Create issue #433: promo codes rejected at checkoutSteps from the ticket, iPhone app 2.8, label bug
- Tell Tavi the issue number in the support channelSo the customer can be told it's logged
- Assign it to DmitriLeft unticked: Dmitri assigns the team's work
Illustration of the BlueNexus app with example data.
For release notes, see how to turn merged pull requests into release notes with AI. For non-developers, see GitHub for non-developers, through AI.
Which way fits you
If you want to read and understand code, Claude's GitHub integration or ChatGPT's GitHub app is enough. If you're a developer working with issues and pull requests, GitHub's MCP server in Claude Code, or Copilot inside GitHub, does more.
If GitHub is shared work, across developers, product, support and clients, you'll get more from one shared space than from several private chats. That's what BlueNexus is built for, and you can sign up for BlueNexus to bring your team in.