GitHub MCP server data privacy: where data goes and secret scanning

GitHub's documented controls cover where MCP tool-call data is processed, how OAuth tokens stay in memory locally, and secret scanning on public repositories for all plan types. GitHub's reviewed sources state no MCP data retention period, so reviewers must get one in writing.

On this page

Does the GitHub MCP server data privacy model meet our review?

Data privacy is only partly met, so approval should name the deployment mode and repository scope it covers. The remote server is hosted by GitHub, which applies its updates automatically, and the local server's OAuth login keeps the resulting token in memory only, writing nothing to disk as GitHub documents it. Secret scanning on tool calls is the one control that inspects content, but it blocks detectable secrets by default only when a call involves a public repository. GitHub offers it on all plan types with no Copilot or Secret Protection license. Private repositories fall outside it, and GitHub's August 2025 changelog says it does not stop every non-secret data leak.

GitHub's published documentation gives no retention period for MCP data, so this section states none. Ask GitHub in writing how long prompts, tool call inputs and tool outputs are kept on the hosted endpoint, which logs hold them, and whether any of it is used for model training, and get the answer for the plan you will buy. The Copilot Trust Center publishes privacy, compliance and transparency material that is a useful starting point for that request. Confirm each answer against your own contract terms, because the terms, not the public pages, govern your data.

Before approval, confirm which path your data takes. Enterprise Cloud customers with data residency reach the hosted server through their own copilot-api endpoint, while Enterprise Server supports only the local server. Then confirm which token type each team uses, since that determines which tools appear and how permissions are checked. Tool scopes, lockdown settings and OAuth, SAML and allowlist setup are covered on the sibling security and setup pages, and the enterprise configuration guide explains the admin side. Finally, run a test in a non-production public repository with a dummy credential to confirm the block fires before you rely on it.

Data privacy capabilities by deployment and plan

This table compares where GitHub MCP server data goes and which privacy controls apply by deployment model and plan. Read each row against your chosen deployment, because the remote and local servers differ in hosting, token storage and secret scanning coverage. The main takeaway is that tool-call secret scanning covers only public repositories, and the sources reviewed document no retention period for MCP data.

CapabilityStatusPlan or editionNotes
Remote server hosted by GitHubHosted endpoint that GitHub operatesPlan not stated in reviewed sources; confirm with GitHubBuilt from the same repository code as the local server. GitHub applies its updates automatically.
Local server from container image or release binariesRuns on the user's own machinePlan not stated in reviewed sources; confirm before rolloutInstalled from GitHub's published container image or release binaries. Tool calls are processed on the local machine.
Local server OAuth login with in-memory tokenToken kept in memory onlyLocal serverGitHub documents that the login writes nothing to disk. Confirm this behavior in your own environment during testing.
Tool-call secret scanning for public repositoriesOn by default; blocks detected secretsAll plan types, no extra licenseUsers who opted out of push protection cannot bypass the block.
Secret scanning for private repositoriesNot covered yetAll plan typesGitHub's August 2025 changelog says it does not cover private repositories and does not stop every non-secret data leak.
Data residency endpointReached through the customer's own copilot-api endpointGitHub Enterprise Cloud with data residencyData-residency customers use the hosted server through their own instance. Confirm where data is processed.
GitHub Enterprise ServerLocal server onlyGitHub Enterprise ServerThe hosted remote server is not offered on this edition according to the reviewed sources.
Retention period for MCP dataNot documented in reviewed sourcesNot applicableRequest written retention and deletion terms from GitHub before approval, and check the Copilot Trust Center for current material.

Where data goes when the GitHub MCP server runs remotely or locally

The first decision for a reviewer is which deployment path staff will use, because it determines where tool-call inputs and outputs travel. With the remote server, the endpoint at is hosted by GitHub. It is built from the same repository code as the local server, and GitHub applies its updates automatically. Prompts, tool arguments, and the results returned from repositories, issues and pull requests therefore pass through GitHub-hosted infrastructure, and the organization cannot pin a version on that endpoint the way it can with a local binary. Enterprise Cloud customers with data residency reach the hosted server through their own copilot-api` endpoint instead, so confirm with GitHub which endpoint your tenant uses before approving the setup.

The local server runs on the developer machine from the ghcr.io/github/github-mcp-server container image or from release binaries. In that path the client calls GitHub's APIs directly, and GitHub's hosted MCP endpoint is not in the request path. This keeps the MCP layer under your own control, and it lets you pin a version and review the source, which is published under the MIT license. Two limits apply. The local server still sends repository data to GitHub's APIs, and GitHub Enterprise Server supports only the local server, so organizations on that product have no hosted option. OAuth login on the local server keeps the resulting token in memory and, as GitHub documents it, writes nothing to disk.

The reviewed GitHub sources do not describe how prompts or tool outputs are passed to any downstream model provider, whether they are used for training, or how long they are stored. Do not assume an answer from the server documentation. Ask GitHub for the data flow for each path, including any model-provider subprocessors, and check the terms in your contract. The GitHub Copilot Trust Center publishes security, privacy and compliance material for Copilot, and it is the starting point for that request. Record the answers in your data inventory, because the retention position for MCP data is not stated in the sources this page relies on.

How tool-call data moves between the IDE, the MCP server and GitHub

The diagram starts at the developer's MCP client in the IDE and shows two ways to reach the server: the hosted remote endpoint, or a local server running on the developer's machine. For remote calls that involve public repositories, the server checks tool call inputs for secrets before the call goes on to GitHub, and blocks detected secrets by default. Data-residency customers reach the hosted server through their own copilot-api endpoint. The sources reviewed do not document storage or retention for this traffic, so confirm those points with GitHub before approval.

Tool-call paths from the IDE to GitHub, with the secret scanning check on public repositories.

How token handling stays on the machine

The local server's OAuth login keeps the resulting token in memory only. As GitHub documents it in the local server OAuth login guide, the login flow writes nothing to disk. That matters for a reviewer because the token is not left in a file the user or another local process can read later. Confirm this behavior on a test machine before you approve the local deployment, and recheck it when you upgrade the server image or binary, since the guide describes the current design rather than a commitment to future versions.

The alternative is a personal access token that the user creates and stores, usually in an environment variable, a shell profile or a client configuration file. A stored token persists across sessions and can be copied, so its exposure depends on where the user keeps it. An OAuth sign-in issues a token the user does not handle directly. On the remote server, OAuth sign-in supports SAML enforcement, as stated in GitHub's June 12, 2025 changelog announcing the public preview, which lets your identity policy apply to that sign-in. Check with GitHub how SAML enforcement interacts with your enterprise's SSO configuration before relying on it as a control.

GitHub's sources do not describe how your MCP client stores its own configuration and credentials. The token handling described above applies to the GitHub server's login flow, not to the IDE, editor or agent client that launches the server. Ask each client vendor where it writes server definitions, whether it keeps tokens in plaintext, whether it uses the operating system keychain, and whether it syncs settings to a cloud account. Test these answers on a managed device, because a token kept in memory by the server can still be written to a client log or config file by the client.

How secret scanning on tool calls works and where it stops

The remote GitHub MCP server checks tool call inputs for secrets, but only in a narrow set of cases. The four cards below set out what is covered, what blocking does, which bypass is closed, and which gaps remain, so reviewers can decide whether this control counts toward their data handling requirements.

Scope limited to public repositories

Secret scanning on tool calls applies only when the call involves a public repository. A call that reads or writes a private repository is outside the check, even when the content contains a credential. Reviewers should not read the feature as a general guard for the organization's codebase. Ask which repositories in your estate are public, and whether staff could point an agent at private code and move the same secret into a tool input without any scan.

August 2025 changelog

Detected secrets blocked by default

For public repositories, the remote server blocks a tool call that contains a detectable secret. This is the default behavior, so the reviewer does not need to switch it on. The block stops the secret from being sent in the call, but it does not rotate or revoke the credential. If a secret was already exposed in a repository or chat, your incident process still needs to rotate it. Confirm the block is active in your tenant before relying on it.

No bypass for push protection opt-outs

Users who opted out of push protection cannot get past the secret block on tool calls. Opting out of push protection for a repository does not open a path around the MCP check. This matters for teams that disable push protection because it slows commits, since the MCP block still applies to their agent sessions. Ask your platform team to confirm this behavior with GitHub for your plan, and record it as a control in your agent rollout review.

Private repositories and non-secret leaks uncovered

GitHub's August 2025 changelog states that tool call scanning does not yet cover private repositories. It also does not stop every non-secret data leak, so customer records, source code excerpts or internal design details can still leave through a tool call. Treat secret scanning as one narrow control. Pair it with read-only mode, restricted toolsets and an approval step for sensitive data classes, and document these gaps in your risk acceptance.

How the answer changes for public, private, and data-residency work

Most of the work in a private repository falls outside the secret scanning on tool calls. GitHub's August 2025 changelog says the feature works only for tool calls that involve public repositories and does not cover private repositories yet. For private code, the controls that matter most are the token type, the toolsets and the read-only setting.

  • Secret scanning gap: Tool calls against private repositories are not scanned by this feature, so keep your own secret controls on developer machines and in the repositories themselves.
  • Token type: Confirm whether staff use OAuth 2.0 or personal access tokens. Classic tokens hide tools whose scopes they lack, while fine-grained tokens and GitHub App tokens show all tools and rely on API permission checks.
  • Default toolsets: With no configuration, the remote server enables context, issues, pull_requests, repos and users. Decide whether private projects need a narrower set.
  • Read-only mode: Read-only mode disables every write tool and overrides other tool settings, which is a strict filter for teams that only need to read private code.
  • Non-secret leakage: GitHub says the scan does not stop every non-secret data leak, so proprietary source excerpts sent in tool inputs remain uncovered.

Check in writing whether your Copilot agreement covers prompt and tool-call data for private repositories and where that data is processed.

Gaps the reviewer must cover outside the GitHub MCP server

The GitHub sources reviewed leave several data privacy questions open, from retention to what secret scanning misses. Each gap below needs an owner on the reviewer's side, usually through contract terms, data loss prevention, repository content rules or logging outside GitHub's tooling.

No documented MCP retention period

The GitHub sources reviewed give no retention period for data that passes through the GitHub MCP server, so no retention figure appears on this page. Ask GitHub in writing how long tool call inputs, tool outputs and related logs are kept on the hosted remote endpoint, who can access them, and whether deletion can be requested. Record the answer in the approval file, and check it against the Copilot terms that apply to your plan and the GitHub Copilot Trust Center.

Copilot Trust Center

No secret scanning for private repositories

Per GitHub's August 2025 changelog, the server's secret scanning on tool calls covers only public repositories and does not yet cover private repositories. Credentials that an agent sends in a request against a private repository are therefore not screened by this control. Put pre-commit scanning, push protection on private repositories and a secret manager policy in place so that secrets stay out of issues, pull requests and prompts for internal code.

Secret scanning misses non-secret leaks

GitHub states that secret scanning on tool calls does not stop every non-secret data leak. Customer records, internal architecture details, unreleased product plans or personal data in an issue body or code comment will pass the check if no secret pattern matches. Set repository content rules, classify which repositories may be read by an agent, and use a data loss prevention tool at the endpoint or network layer to inspect outbound content.

Remote data processing beyond the sources

The sources reviewed describe the remote server's build, hosting, updates and data residency endpoint, but they do not describe in detail how prompts, tool outputs and metadata are processed, which subprocessors are used or where processing occurs for each tenant. Request the data processing terms, subprocessor list and data transfer mechanism from GitHub, and confirm them against your privacy and HIPAA or GDPR obligations before enabling the remote server.

Enterprise configuration docs

No audit logging documented

The reviewed sources do not document audit logging for GitHub MCP server tool calls, so this page cannot say which actions are recorded, for how long or whether they reach a SIEM. Plan logging at the client and network layers instead: capture MCP client sessions, outbound requests to the remote endpoint and repository audit events for the accounts the agent uses. Ask GitHub whether audit events for MCP activity exist before relying on them.

Order of work for a data privacy review before rollout

This sequence lets a security or privacy reviewer establish, team by team, where GitHub MCP server data flows, which terms govern it, what secret scanning does and does not cover, and what evidence supports sign-off. Each step closes with a record that the next step depends on.

  1. Confirm the deployment path for each team

    Identify, for each team or group that will use the server, whether it runs the hosted remote endpoint or the local server from the container image or release binaries. Owners of the review should record the MCP client, the sign-in method (OAuth or a personal access token) and the GitHub product each team uses, because the data path differs for each combination. Done means every team has one documented deployment path on a single register, with no team left as unspecified or mixed without a note. Review the GitHub MCP Server repository and the remote server documentation to confirm which path matches each client.

  2. Obtain retention and processing terms

    Ask GitHub, through your account team and the GitHub Copilot Trust Center, for the written retention and processing terms that apply to MCP tool call data and prompts in your plan. The sources reviewed for this page give no retention period for MCP data, so do not record one from memory or from a secondary source. Record the document name, version and date for each term, and mark any question GitHub does not answer in writing as an open item for sign-off. Done means every open retention question has a written answer or an owner and a due date set by your governance process.

  3. Confirm plan and repository visibility for secret scanning

    Check which GitHub plan and which repository visibility each team works in. Secret scanning on tool calls applies only when the call involves a public repository, and it does not cover private repositories yet, so private repository work has no tool call scanning. Confirm the plan with the GitHub account owner, since the feature is documented as free for all plan types with no Copilot or Secret Protection license, but the coverage limit is set by repository visibility. Done means each team's repository list is tagged as public or private and the reviewer has written down which teams rely on the scan and which do not.

  4. Decide where data residency applies

    Determine whether any team operates under a data residency requirement. Enterprise Cloud with data residency can reach the remote server through its own copilot-api endpoint, and GitHub Enterprise Server supports only the local server. Ask the owner of each regulated data set whether the hosted remote path is acceptable, and record the decision per team with the reason. Done means each team has a written residency decision that matches its deployment path from the first step, and any team that cannot use the remote path is routed to the local or Enterprise Server option.

  5. Test representative tool calls for secret blocking

    Build a short test set of tool calls against a public repository in a test organization, using fake credentials of the formats your teams handle, and run them through the MCP client. The test should confirm that the remote server blocks detected secrets by default and that a user who has opted out of push protection cannot bypass the block. Include at least one case that carries a non-secret sensitive value, because the scan does not stop every non-secret data leak. Done means each test has a recorded input, expected result and actual result, and any unblocked case is logged as a residual risk. Use only test credentials, and do not paste real secrets into the test.

  6. Record evidence and obtain sign-off

    Assemble one evidence file that holds the deployment register, the written GitHub terms with their dates, the plan and visibility record, the residency decisions, and the test results with their residual risks. Ask the security owner and the privacy or compliance owner to sign the file, and state which teams are approved, which are approved with conditions and which are blocked. Keep the file under change control so that a future change in deployment path, plan or repository visibility triggers a new review. Done means the signed file exists, names an owner for each open item, and lists the review date for the next check.

Evidence a security reviewer asks for on data privacy

This table lists the evidence a reviewer should request for the GitHub MCP server's data path, token handling, secret scanning, residency endpoint, retention and trust material. Read each row as a question, the artifact that answers it, and the GitHub document or tool setting where that artifact lives. The main takeaway is that secret scanning covers only public repository tool calls, and no retention period for MCP data appears in the sources reviewed, so that point must be confirmed with GitHub in writing.

QuestionWhat to showWhere it comes from
Which deployment path does the data take?Whether the hosted remote endpoint or a local image or binary is in use, and which endpoint each client callsRemote server documentation and the server configuration guide in the GitHub MCP Server repository
Where are OAuth tokens stored on the machine?Evidence that the local OAuth login keeps the token in memory only and writes nothing to diskLocal Server OAuth Login documentation in the GitHub MCP Server repository
Is secret scanning active on tool calls?Confirmation that tool call inputs for public repositories are scanned and blocked by default, plus the push protection setting for each userGitHub changelog of August 13, 2025 on secret scanning and push protection for the GitHub MCP Server
What does secret scanning not cover?A written note that private repositories and non-secret data leaks are outside the scanGitHub changelog of August 13, 2025 on secret scanning limits
Which plans include secret scanning for tool calls?The plan or license type in use, with confirmation that no extra license is needed for this featureGitHub changelog of August 13, 2025, which states it is free for all plan types
Does data residency use a separate endpoint?Confirmation that GitHub Enterprise Cloud with data residency uses its own copilot-api endpoint, and that GitHub Enterprise Server supports only the local serverEnterprise configuration documentation in GitHub Docs
Is there a stated retention period for MCP data?A written answer from GitHub on retention for prompts, tool inputs and outputs handled by the remote server, since the sources reviewed state noneAsk GitHub directly and record the answer in the risk file
Which security and privacy material is published?Copilot Trust Center pages on security, privacy, compliance and transparency, saved with the date retrievedGitHub Copilot Trust Center

Questions buyers ask before approving GitHub MCP data handling

Does secret scanning for the GitHub MCP server cost extra?

No extra license is needed. GitHub's August 2025 changelog says the secret scanning feature for tool calls is free for all plan types and needs no Copilot or Secret Protection license. It applies to the remote server, which scans tool call inputs for secrets when they involve public repositories and blocks detected secrets by default. Your cost exposure therefore sits in the rest of the rollout: Copilot licensing for your users, the time your team spends on the review, and any tooling you add around it. Ask GitHub to confirm in writing which plan and license tiers your organization holds, since the changelog describes the feature as available to all plan types. Also confirm whether anything changed after the changelog date.

Are private repositories protected by MCP secret scanning?

Not by the tool call scanning described in GitHub's documentation. GitHub's August 2025 changelog states that secret scanning for tool calls works only for tool calls that involve public repositories and does not cover private repositories yet. The same changelog says the feature does not stop every non-secret data leak. For private repositories, treat the MCP server as unprotected by this feature and rely on your own controls: read-only mode, tool exclusion, token scope limits, and lockdown mode, which GitHub describes as a best-effort content filter rather than a security boundary. Confirm with GitHub whether private repository coverage is on its roadmap and what date applies to any change.

How long does GitHub keep data sent through the MCP server?

The sources reviewed for this page give no retention period for MCP data, so no figure is stated here. Do not assume a retention period from general Copilot terms. Ask GitHub, in writing, for the retention period for prompts, tool call inputs and outputs, and any logs produced by the remote server, and for the deletion process and its timing. Ask separately about local deployments, where data handling depends on your own logging and storage. Request the answers as contractual or documented commitments, and ask GitHub's Copilot Trust Center materials to be checked against those answers before you record the position in your data inventory.

Can our own security team assess GitHub MCP data handling in-house?

Often yes, if you have staff who can read the vendor documentation and test the configuration directly. The GitHub documentation covers the remote and local deployment paths, the OAuth and personal access token options, and the allowlist controls, so a reviewer can map where data flows for each option. The harder parts are verifying behavior in your own environment, testing how tool calls handle secrets and sensitive content, and producing evidence for your compliance team. Where those skills or time are short, an outside review can help. DeployOpen runs AI agent rollout security reviews that test tool and file permissions, data exposure, credential handling, and SSO and admin settings, then deliver a findings report with fixes and a retest. Scope is agreed in writing before work starts.

What drives the effort of a GitHub MCP data privacy review?

The main drivers are the deployment path, the plan and residency position, and the number of tools and users in scope. Each factor changes the questions you must answer:

  • Remote or local deployment: the remote server is hosted by GitHub and updated automatically, while local deployments depend on your image or binary handling and your logging.
  • Plan and residency: GitHub Enterprise Cloud with data residency reaches the hosted server through its own copilot-api endpoint, while GitHub Enterprise Server supports only the local server.
  • Repository visibility: public and private repositories are covered differently by secret scanning.
  • Toolsets and write access: the default toolsets and any write tools widen the data the server can read or change.

Ask for a written scope that lists each of these, the evidence you will receive, and the retest terms, before you agree on timing.

Is data residency available for GitHub Enterprise Server with MCP?

No. GitHub Enterprise Server supports only the local MCP server, according to GitHub's enterprise configuration documentation. The remote hosted server is available to GitHub Enterprise Cloud with data residency, which uses its own copilot-api endpoint. If your residency requirement depends on the hosted remote server, GitHub Enterprise Server is not a path to it. If you run GitHub Enterprise Server, plan your data flow around the local server and confirm with GitHub which residency commitments apply to your deployment, and ask for those commitments in writing.

Does the MCP server store OAuth tokens on the developer machine?

The local server's OAuth login keeps the resulting token in memory only. GitHub's documentation for the local server states that it writes nothing to disk for that token. This matters for your endpoint policy, because a token that never reaches disk is not picked up by file-based secret search on the laptop. It does not remove the need for control over the MCP client itself, which may store its own configuration. Ask your IT team to inspect the client's configuration files on managed devices, and confirm the token behavior in your own test environment before approving the local option.

Official sources to check each data privacy claim

Before any data privacy claim about the GitHub MCP server goes into an approval memo, the reviewer should read the official GitHub pages behind it and confirm each statement against the current version. Start with the Remote GitHub MCP Server documentation, which describes the hosted endpoint, how it is built from the same repository code as the local server, and how GitHub applies its updates. Pair it with the Local Server OAuth Login documentation, which states how the local token is held and whether anything is written to disk. Pages change, so record the date and the page version you reviewed next to each claim, and re-check before any renewal.

Next, read the GitHub MCP Server secret scanning changelog from August 2025. It is the source for the scope limits that matter most: the scan covers tool calls on public repositories only, it does not cover private repositories yet, and it does not stop every non-secret data leak. Confirm with the vendor whether any later changelog has widened that scope, because a claim that private repositories are covered would be wrong against this source. For organizations on GitHub Enterprise Cloud with data residency or on GitHub Enterprise Server, the enterprise configuration documentation determines which server variant applies at all, so check that page before writing any hosting statement.

Finally, review the GitHub Copilot Trust Center, which publishes GitHub's security, privacy, compliance and transparency material for Copilot. Use it to find the data handling terms, but do not assume it answers MCP-specific questions such as retention, since the sources reviewed for this topic give no retention period for MCP data. Ask GitHub, in writing, for the retention position and for any data processing terms that apply to your plan and region. Assign one owner to each source, log the review date, and treat any statement you cannot trace to one of these pages as unverified until GitHub confirms it.

How DeployOpen works on this

DeployOpen reviews how the GitHub MCP server handles data in your organization, from where tool call content travels to what secret scanning does and does not cover. We scope the review in writing, test the setup in your environment, and hand over documented findings you can take to your security and compliance reviewers.

How we scope

  • Fixed scope agreed in writing, naming remote or local deployment and the toolsets in use
  • Inventory of which repositories, public or private, staff tool calls will touch
  • Confirmation of which plan and edition your GitHub organization or enterprise runs

How we build

  • Test plan covering tool call inputs, secret scanning behavior and what leaves the machine
  • Checks on token storage, OAuth sign-in and how the local server handles tokens in memory
  • Review of data residency routing, including whether a copilot-api endpoint applies to your tenant

How we hand over

  • Written findings report with data flow diagrams, evidence and recommended fixes
  • Documented gaps where the vendor sources give no answer, such as retention periods
  • Retest of agreed fixes, with a list of open questions to put to GitHub in writing

How we support

  • Ongoing support available as a retainer for changes to toolsets, plans or deployment
  • Continuous testing available as a retainer as GitHub updates the hosted server
  • Evidence prepared for your security questionnaire and compliance assessment, which auditors then assess

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.