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 November 2026, from Anthropic's, OpenAI's, GitMCP's and GitHub's own documentation. Quickstart for Claude.ai: index the repo at repowise.dev, open Customize > Connectors, click + Add > Add custom connector, paste https://api.repowise.dev/mcp, click Continue, then Add, and approve the repowise sign-in window. Details and the ChatGPT path are below.
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 one account-wide address for chat connectors, https://api.repowise.dev/mcp, and a per-repo address, https://api.repowise.dev/mcp/{owner}/{repo}, that pins a single 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. The account-wide address reaches every repo you can read on repowise; to pin one repo, usehttps://api.repowise.dev/mcp/OWNER/REPOinstead:texthttps://api.repowise.dev/mcp -
Click Continue, keep the default OAuth settings, and click Add.
-
Click Connect if Claude shows it. A repowise sign-in window opens. Approve access.
On Team and Enterprise, an owner first adds the connector under Organization settings > Connectors (Add, then Custom, then Web), 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 on ChatGPT web with the server URL and OAuth. As of November 2026, OpenAI's help article "Developer mode and MCP apps in ChatGPT" covers Business and Enterprise/Edu workspaces: on Business, only admins and owners can enable developer mode and publish an app, and on Enterprise/Edu, role-based access controls can extend developer mode to selected members. OpenAI's developer mode guide gives the steps below. OpenAI renames these menus from time to time, so match the labels on your screen.
-
Open ChatGPT on the web and go to Plugins (
chatgpt.com/plugins), select the plus button, then Add custom MCP server. -
Enter a name and an optional description. Under Connection, enter the server URL (the per-repo address
https://api.repowise.dev/mcp/OWNER/REPOalso works to pin one repo):texthttps://api.repowise.dev/mcp -
Set authentication to OAuth.
-
Read the risk warning, select I understand and want to continue, then select Create as a plugin.
-
Find the app under your personal or workspace plugins and install it. Tool access can be switched per tool on the app's details page.
-
In a chat, type
@, pick the repowise app, and ask your question. The first call opens a repowise sign-in window.
repowise's tools only read. ChatGPT asks for confirmation before tools that are not marked read-only, so a read-only server needs the fewest prompts. The server must speak SSE or streaming HTTP, which hosted repowise does.
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)
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Claude says the connection failed on Add | The URL is mistyped, or has a custom port | Paste https://api.repowise.dev/mcp exactly; Claude needs a public HTTPS address on port 443 |
| Connector added but the model never calls it | Connector is off for this chat | In Claude, click "+" at the lower left, open Connectors and toggle repowise on; in ChatGPT, select the app in the tools menu |
| Sign-in window never appears or closes with an error | Pop-up blocked, or signed into the wrong repowise account | Allow pop-ups for claude.ai or chatgpt.com, then click Connect again |
| Answers about the wrong repo, or "repo not found" | Per-repo URL pins one repo, or the repo is not indexed for your account | Use the account-wide URL, or confirm the repo is indexed under the account you signed in with |
| Private repo returns nothing | Private repos need Pro and the read-only GitHub App installed on the owner account | Install the GitHub App on the owning org and re-run the index |
| Team member cannot see the connector | Members connect individually | Owner adds it under Organization settings > Connectors; each member clicks Connect |
| Changed URL does not take effect | Claude cannot edit a connector | Remove it and add it again |
| Tool list looks stale in ChatGPT | App metadata is cached | Refresh the app in its settings to pull the current tools |
Scroll the table sideways to see every column.
To revoke access, remove the connector in Claude or ChatGPT, and revoke the device under Connected apps in repowise settings.
If you want the other direction, publishing your own repo's docs so Claude and ChatGPT can cite them, see how to publish a repo for Claude and ChatGPT.
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. On 15 November 2026 we re-read Anthropic's custom connector article, OpenAI's developer mode guide and the repowise connection docs. 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 November 2026, OpenAI's help center lists them for Business and Enterprise/Edu workspaces, created from ChatGPT web with the server URL and OAuth. The developer mode guide describes the steps: Plugins, add a custom MCP server, enter the URL, choose OAuth.
- 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), 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.



