BLUENEXUS INTEGRATIONSCONNECTION GUIDE

GitHub in Claude, ChatGPT and MCP: what each can do, and how to connect

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.

ON YOUR OWN Claude

For reading code in Claude, or working with issues through Claude Code.

Read codeYes, with the GitHub integration
Issues and pull requestsWith GitHub's MCP server, in Claude Code
Change anythingIn Claude Code, which can edit code and open pull requests
Who uses itJust you, in your own chats
ON YOUR OWN ChatGPT

For searching and asking questions about code in ChatGPT.

Read codeYes, with the GitHub app
Issues and pull requestsThrough a custom app on Business or Enterprise
Change anythingCode changes go through Codex
Who uses itJust you, in your own chats
WITH YOUR TEAM BlueNexus

For product, support and client teams who work alongside developers.

Read codeYes, alongside your other apps
Issues and pull requestsYes
Change anythingAfter a person approves
Who uses itYour team and your AI agents

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 /readonly to 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

RepositoriesSearch code, read files, and look at branches, commits and releases.
IssuesFind, create and update issues, add comments and labels.
Pull requestsRead pull requests, their changes and reviews, and create or update them.
And moreActions runs, security alerts, discussions, notifications and projects, as optional toolsets.
Works with
Every GitHub planClaude CodeChatGPT, as a custom appVS Code, Cursor and more
Keep in mind
  • 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 min

A good fit if you want Claude to read a repository's code.

  1. 1On a Team or Enterprise plan, an admin turns on GitHub first.
  2. 2In Claude, open Customize, then Connectors, and connect GitHub Integration.
  3. 3For private repositories, install the Claude GitHub App on the ones you want, or ask an org admin to.
  4. 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 min

A good fit if you want ChatGPT to search and explain code.

  1. 1In ChatGPT, open Apps and find GitHub.
  2. 2Connect, sign in to GitHub, and choose which repositories to allow.
  3. 3If your organization restricts apps, ask an owner to approve it.
  4. 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.

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.

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.

Questions people ask about GitHub and AI

Can Claude read my GitHub issues and pull requests?

Not with Claude's built-in GitHub integration, which reads file names and contents only. To work with issues and pull requests, use GitHub's MCP server, for example in Claude Code.

How do I connect GitHub to ChatGPT?

In ChatGPT, open Apps, find GitHub, connect and choose your repositories. OpenAI says the app reads your code to analyze and search it. Code changes go through Codex.

What is the GitHub MCP server?

GitHub's official MCP server lets AI tools work with repositories, issues, pull requests and more. GitHub hosts it at api.githubcopilot.com/mcp, and you can also run it yourself. It's available to all GitHub users.

Can I make the GitHub MCP server read-only?

Yes. Add /readonly to the hosted server's address or send the X-MCP-Readonly header, or start the local version with --read-only. Only tools that read are offered.

Is it safe to let AI read public GitHub issues?

Be careful. Security researchers have shown that an issue can contain instructions aimed at an AI. Use read-only mode, GitHub's lockdown option for public issues, and a token limited to the repositories you need.

Does GitHub use my code to train AI?

GitHub says Copilot Business and Enterprise data isn't used for training, and that Free, Pro and Pro+ interaction data is used unless you opt out. Stored private repository content is excluded, but code Copilot processes while you use it can be used unless you opt out. Claude and ChatGPT have their own data settings.

Subscribe to our blog

Product insights, AI and product thinking delivered to your inbox.