On this page
To connect Claude.ai or ChatGPT to a private GitHub repo and ask about the whole codebase, add a remote MCP server that has indexed the repo. Claude's built-in GitHub integration copies the files you pick into the chat, so it runs into the context limit on a real codebase. ChatGPT's GitHub app reads files one at a time. A remote MCP server answers from an index built ahead of time, so only the answer enters the chat.
| Option | Private repos | Whole repo or picked files | Stays current | Works in |
|---|---|---|---|---|
| Claude GitHub integration | Yes, through Claude's GitHub App | Files you pick, copied into context | Manual sync (Sync button) | Claude.ai chats and Projects |
| ChatGPT GitHub app (directory) | Yes | Searches and reads files on demand | Reads live from GitHub | ChatGPT, plan-dependent |
| GitMCP | No, public only | Docs files (README, llms.txt) plus on-demand search | Live | Any MCP client |
| GitHub's official MCP server | Yes, with a token | Raw files, issues and PRs through the API | Live | Any MCP client |
| Hosted codebase index over MCP (repowise) | Yes, read-only GitHub App | Whole repo, pre-indexed: graph, docs, history | Re-indexed on every push | Claude.ai, Claude Desktop, Claude Code, ChatGPT, Cursor, VS Code |
Scroll the table sideways to see every column.
Options as of October 2026, from Anthropic's, OpenAI's, GitMCP's and GitHub's own documentation. Below: why the first option stops working on large repos, what MCP changes, and the setup steps for Claude.ai and ChatGPT.
We build repowise, so weigh our entry accordingly. The measurements we publish about it, with their methods, are on the benchmarks page.
Why does the built-in GitHub connector run out of room?
Claude's GitHub integration puts the files you choose into the conversation, and everything in a conversation counts against its context window. In a chat or a Project you click "+", choose "Add from GitHub", and pick files and folders in a file browser. Anthropic's help article advises you to "avoid selecting unnecessary files to keep within token limits", and the files only update when you click Sync. It brings current file contents, without commit history or pull requests.
That design suits a small library or one folder of a larger project. The question people usually ask is "where does a checkout request get its tax rate from?", and to answer it the model needs to know which of 3,000 files are involved. The integration can only tell it by copying them in, so you guess which folders matter, which was the question you wanted answered.
ChatGPT's GitHub app pulls code, READMEs and docs live from your repositories when a question needs them, so there is no manual sync. OpenAI notes that availability varies by plan and by experience (Deep Research and agent mode can have it when the standard chat does not). It reads raw files one at a time, so a question that spans many modules spends most of its effort locating files.
Underneath both, a chat model reasons only about text in its context window. Either you place it there up front, which is what file pickers do, or a tool places it there on request, which is what MCP does.
What does an MCP server change for a private repo?
MCP (Model Context Protocol) lets a chat app call tools on another server, so the model fetches what a question needs instead of you pasting files. Our MCP primer has the longer explanation. For a private repo, what matters is what the server does when the model calls it. There are three kinds:
- GitHub's official MCP server reads files, issues and pull requests through the GitHub API. It suits actions (open an issue, read a PR) and questions where you already know the file. For "how does this work?" questions the model still searches and reads file by file, and each file costs context.
- GitMCP turns a GitHub URL into an MCP server that reads
llms.txt,llms-full.txt, the README and other docs, and can search the code. It is free and quick to try, and works with any public GitHub repository. - A pre-indexed server parses the repo ahead of time into a dependency graph, documentation pages, git history and search embeddings. The model asks for an overview, what depends on a file, or code about a topic, and gets back a short structured answer made from those parts. It is the kind that gives a whole-repo view of a large codebase without filling the context window.
Claude.ai and ChatGPT run on remote servers and cannot reach an MCP server on your laptop, so the index has to be hosted. Hosted repowise serves its index at https://api.repowise.dev/mcp/{owner}/{repo}: it parses the code into a graph, reads the git history, writes a page per module, and exposes ten MCP tools over that address.
Step 1: index the repo
The repo has to be indexed once before either chat app can use it.
- Sign in at repowise.dev with GitHub.
- For a public repo, paste its URL. This works on the free plan.
- For a private repo, you need Pro. Install the repowise GitHub App (read-only) on the account or org that owns the repo, and pick the repo from your dashboard.
- Wait for the first index. After that, every push re-indexes within about 30 seconds, so answers follow the code.
repowise keeps documentation pages, the dependency graph, git metadata such as hotspots and ownership, decision records, health findings and search embeddings. The clone itself is deleted at the end of every run. The full list, and which features call a model, is on the data handling page.
Step 2a: connect Claude.ai (web, desktop and mobile)
In Claude.ai, a remote MCP server is a custom connector, added by URL and authorised with OAuth. According to Anthropic's help center, custom connectors are available on Free, Pro, Max, Team and Enterprise, with Free limited to one. There is no API key to copy.
-
In Claude.ai, open Customize > Connectors.
-
Click + Add, then Add custom connector.
-
Name it (for example,
repowise acme/billing-api) and paste the server URL:texthttps://api.repowise.dev/mcp/OWNER/REPO -
Click Continue, leave authentication on sign-in, and click Add.
-
A repowise sign-in window opens. Approve access.
On Team and Enterprise, an owner first adds the connector under Organization settings > Connectors, and each member then connects with their own sign-in. Access stays per person, so someone who cannot see the repo on repowise gets no answers from it.
To use it in a chat, click "+" at the bottom left of the message box, open Connectors, and turn the repowise connector on. The same connector works in Claude Desktop and the mobile apps, because it lives on your account.
Step 2b: connect ChatGPT
ChatGPT accepts a remote MCP server as a custom app, created from workspace settings with the server URL and OAuth. As of October 2026, OpenAI's help article "Developer mode and MCP apps in ChatGPT" lists full custom MCP apps for Business and Enterprise/Edu workspaces on ChatGPT web, and read-only custom MCP apps through developer mode on Plus and Pro. repowise's tools only read, so the read-only path covers them. OpenAI revises these menus often, so check the article for your plan.
On a Business or Enterprise workspace:
-
A workspace admin or owner opens Workspace settings > Apps > Create. (On Enterprise/Edu, developer mode is switched on under Settings > Apps > Advanced settings.)
-
Enter a name, a short description, and the server URL:
texthttps://api.repowise.dev/mcp/OWNER/REPO -
Choose OAuth as the authentication method and save.
-
ChatGPT scans the server and lists its tools, all of them read-only.
-
Publish the app to the workspace, or keep it to yourself while testing.
-
In a chat, open the tools menu, pick the repowise app, and ask your question. The first call opens a repowise sign-in window.
Step 3: check that it is using the index
Ask something the model cannot know without calling the server.
What are the current hotspot files in this repo, and who owns them?
A working connection calls get_overview or get_risk and answers with real file names, churn and owners. If the model answers in general terms, or says it cannot see the repo, the connector is off for that chat: in Claude, check the Connectors toggle under "+"; in ChatGPT, check that the app is selected in the tools menu.
These questions show what a pre-indexed server answers that a file picker struggles with:
- "Give me a tour of this codebase. Where are the entry points?" (
get_overview) - "What breaks if I change
src/billing/tax.py?" (get_risk,get_context) - "Why does the payments module use a queue instead of calling the provider directly?" (
get_why, answered from decision records and commit history) - "Which exports in this repo does nothing import?" (
get_dead_code)
Which setup fits
- Small repo or one folder: the built-in Claude GitHub integration is enough.
- Public repo, docs questions: GitMCP is free and quick.
- Actions on issues and PRs: GitHub's official MCP server.
- Whole-codebase questions on a private repo: a hosted index over MCP, connected as a custom connector in Claude.ai or an app in ChatGPT.
- Edits and pull requests: use a coding agent such as Claude Code or Cursor against the same MCP address. The chat model explains the code and points at files.
- Code that cannot leave your network: run the open-source version with
repowise init, which writes the MCP config for Claude Code and Cursor. The graph, git analysis, health and dead-code tools run without a model. Docs generation andget_answercall the model provider you configure.
On hosted repowise, every response states which commit it describes, and model-backed features go to OpenAI or Google Gemini through our business accounts.
How we checked this
On 6 October 2026 we read Anthropic's help articles for the GitHub integration and for custom connectors, OpenAI's help center and developer docs for developer mode and MCP apps, GitMCP's homepage, and the repowise connection docs, and we re-read the repowise docs on 12 October 2026. The Claude.ai steps match the current menu names, and the ChatGPT steps follow OpenAI's documented Business path. For measured numbers on what a pre-indexed MCP server changes in an agent loop, see the benchmarks page.
FAQ
- Can Claude.ai read my whole private GitHub repo?
- Through a remote MCP server that has indexed the repo, yes. Claude asks about any part of it on demand, and only the answers enter the context. The built-in GitHub integration copies the files you pick into the conversation, and Anthropic advises picking only what you need to stay within token limits.
- Does the Claude GitHub connector have a token limit?
- Indirectly, yes. Selected files count against the conversation's context window, the same as pasted text. Anthropic does not publish a separate file or size cap, but its help article tells you to avoid unnecessary files "to keep within token limits", and you click Sync to pick up new commits.
- Does GitMCP work with private repos?
- No. GitMCP's homepage says it works with any public GitHub repository. For a private repo you need a server that can authenticate to GitHub, such as GitHub's own MCP server with a personal access token, or a hosted index that reads the repo through a GitHub App.
- Can ChatGPT connect to an MCP server for my GitHub codebase?
- Yes, on plans that allow custom MCP apps. As of October 2026, OpenAI's help center lists them for Business and Enterprise/Edu workspaces, created under Workspace settings > Apps > Create with the server URL and OAuth. On Plus and Pro, developer mode allows read-only custom MCP apps, which covers repowise's read-only tools.
- How do I add a custom connector for a codebase in Claude.ai?
- Open Customize > Connectors, click + Add, then Add custom connector, paste the MCP server URL (for repowise,
https://api.repowise.dev/mcp/OWNER/REPO), and sign in when prompted. Free accounts can add one custom connector, and paid plans can add more. - Is it safe to connect a private repo this way?
- A hosted index stores derived data (docs, graph, git metadata, embeddings), deletes the raw clone after each run, and uses a read-only GitHub App. Features that call a model send excerpts to that model's provider. If code cannot leave your network, self-host the index and use a local agent such as Claude Code.



