GitHub MCP server enterprise setup: OAuth, tokens and admin allowlists

How an organization sets up the GitHub MCP server for staff, covering OAuth or personal access tokens, SAML enforcement, remote versus local deployment and enterprise managed allowlists.

On this page

Does the GitHub MCP server meet our SSO and admin control requirement?

The remote GitHub MCP server's OAuth 2.0 sign-in supports SAML enforcement, as stated in GitHub's June 12, 2025 changelog announcing the public preview, and MCP allowlists in enterprise managed settings have been generally available for enterprise owners since August 6, 2026, enforced on the GitHub Copilot app, Copilot CLI and VS Code. An approval checklist can therefore map SSO to the remote OAuth path and admin enforcement to the allowlist, but only if each control is confirmed in your own tenant. SAML enforcement applies to the sign-in flow the remote server uses. Confirm with your identity team that your organization's SAML configuration covers every account that will connect, and confirm the current status of the feature with GitHub before you rely on it in a control narrative.

The allowlist is set in copilot/managed-settings.json in the organization's .github-private repository, through allowedMcpServers and deniedMcpServers. Two details matter for an approval decision. GitHub says the policy fails closed, so a malformed or unverifiable configuration blocks servers, and a server must pass every policy layer when several apply. The serverName matcher is a user-assigned label that GitHub describes as a convenience rather than a security control, so matching should rely on serverUrl, which supports wildcards. Also confirm which clients your staff actually use, because the enforcement list above does not name every IDE or agent in your fleet. Local deployment, the only option on GitHub Enterprise Server, falls outside the remote OAuth and SAML path, so it needs its own credential and enforcement review.

The gaps to plan for are the ones the sources leave open. The public GitHub documentation reviewed here does not establish how a deployment without an allowlist entry is handled on every client, and it does not document audit logging for MCP activity, so this page does not treat either as covered. Ask GitHub, in writing, which clients enforce the allowlist, how policy is evaluated for each, and what evidence an administrator can export to show the policy was in effect. Pair that with a test in a pilot group that a denied server is blocked on each client in scope. The GitHub Copilot Trust Center is the starting point for the security, privacy and compliance material your reviewers will request.

Which setup options each deployment and plan supports

This table compares GitHub MCP server setup options by deployment, sign-in method and control, and shows which are built in, which depend on a paid plan or outside component, and which are unavailable or limited. The sources reviewed name plan editions for only some features, so confirm each edition with GitHub before approval. The main takeaway is that OAuth with SAML enforcement on the remote server is the documented enterprise sign-in path, while GitHub Enterprise Server users are limited to the local server.

Setup optionBuilt inPaid or needs an outside componentNot available or limited
OAuth 2.0 on the remote serverRecommended for most users; supports scoped access (June 12, 2025 changelog)Extra scopes are requested on demand; confirm the Copilot edition with GitHubNot documented for GitHub Enterprise Server, which supports only the local server
Personal access tokensSupported on the remote server and the local serverAdmins must issue, scope and rotate tokens under their own policiesClassic tokens hide tools without matching scopes; fine-grained and App tokens rely on API checks
SAML enforcementSupported on remote server OAuth sign-in (June 12, 2025 changelog)Requires SAML configured for the organization's identity providerNot stated for personal access token sign-in in the sources reviewed
Remote server on Enterprise Cloud with data residencyUses the residency copilot-api endpoint for the remote serverRequires Enterprise Cloud with data residency; confirm the editionNot available on GitHub Enterprise Server
Local server on GitHub Enterprise ServerOnly server type supported on this deploymentYour team runs the container or binary and points it at your hostHosted remote endpoint is not available on this deployment
Enterprise managed MCP allowlistsallowedMcpServers and deniedMcpServers in managed settings (August 6, 2026 changelog)Enterprise owners set the policy and commit it to the default branchEnforced on the Copilot app, Copilot CLI and VS Code only (August 2026 changelog)
Lockdown modeLimits public repository content to users with push accessConfirm availability on your Copilot plan with GitHubA best-effort content filter, not a security boundary
Secret scanning on tool callsScans tool inputs on public repositories and blocks secrets by default on the remote serverOffered on all plan types at no extra license cost; confirm local server coverageDoes not cover private repositories yet or stop every non-secret data leak (August 2025 changelog)

How sign-in, tokens and tool exposure fit together

The first decision is which credential the MCP client presents, because that choice decides which tools a user can see and which API calls succeed. On the remote endpoint at ` GitHub recommends OAuth 2.0 for most users. With OAuth, the server requests additional scopes on demand, and the MCP client asks the user to authorize each one when a tool needs it, so a user is not granted a broad token up front. Personal access tokens remain supported. With a classic personal access token, the server hides any tool whose OAuth scopes the token lacks. Fine-grained personal access tokens and GitHub App tokens show every tool and rely on GitHub's API permission checks when a call is made. Reviewers should confirm which token types their staff will use, because the same user can see different tool lists depending on that choice.

On the local server, a static GITHUB_PERSONAL_ACCESS_TOKEN takes precedence over OAuth, so the OAuth login is skipped whenever that variable is set. Any staff member who exports a long-lived token into a shell profile or MCP config bypasses the interactive sign-in path that an administrator may be relying on. Check local configurations for this variable, and confirm whether the local server's --oauth-scopes setting is used to narrow the default scope set. Read-only mode sits above all of this. GitHub documents it as a strict filter that disables every write tool even when a request asks for one, and it overrides other tool settings, so it is the clearest single control for a rollout that should not write to repositories yet.

Enforcement happens in three places, and none of them replaces the others. GitHub's API enforces the token's permissions on every call, so a token that cannot write will fail a write regardless of what the server exposes. The server enforces its toolsets, read-only mode and scope filtering before a tool reaches the client. The client-side allowlist in enterprise managed settings decides which MCP servers Copilot clients may run at all, and it fails closed. GitHub's own documentation notes that a serverName label is a convenience rather than a security control, so the allowlist should match on serverUrl. Plan a test matrix that signs in with each token type, confirms the visible tool list, and attempts a write, so the controls are verified rather than assumed.

Decisions the organization must make before rollout

Five choices shape how the GitHub MCP server behaves for staff: how people authenticate, where the server runs, which tools it exposes, which servers clients may start, and which IDEs need preview access. Each one changes what an agent can reach, so settle them in writing before the first user connects.

Identity and token model

Choose between OAuth 2.0 and personal access tokens for each user group. GitHub recommends OAuth for most users because it supports scoped access and SAML enforcement, and the remote server requests extra scopes on demand, so each tool use prompts the user to authorize it. A classic personal access token hides tools whose scopes it lacks, while fine-grained tokens and GitHub App tokens show all tools and rely on API permission checks. Confirm which model each group uses and who issues the tokens.

June 2025 changelog

Remote or local deployment

The remote endpoint at updates automatically, while the local server runs from a container image or release binary that your team maintains. GitHub Enterprise Cloud with data residency can use the remote server through its own copilot-api endpoint. GitHub Enterprise Server supports only the local server, so those teams must run it from a container or binary and point it at their host. Confirm where tool traffic terminates before you pick a path.

Enterprise configuration docs

Toolsets and read-only scope

With no configuration, the server enables the default toolsets context, issues, pull_requests, repos and users. Narrow these to what each team needs, and remember that read-only mode disables every write tool even when a request asks for one, overriding other tool settings. Decide which teams get write access, since write tools can change issues, pull requests and repository content. Review the enabled toolset list in each approved configuration.

Server configuration guide

Allowlist design: serverUrl or serverName

Enterprise owners control MCP servers through allowedMcpServers and deniedMcpServers in copilot/managed-settings.json in the organization's .github-private repository. The serverUrl matcher supports wildcards and identifies the server by its endpoint, while serverName matches a user-assigned label that GitHub describes as a convenience rather than a security control. Match on serverUrl for anything you rely on, and confirm that policies fail closed so malformed or unverifiable configuration is blocked.

Allowlist changelog

Editor Preview Policy for VS Code and Visual Studio

During the public preview, Copilot in VS Code or Visual Studio needs the organization's Editor Preview Policy enabled before it can use the remote server. Without that policy, those IDE users cannot reach the remote server even when their identity and token model are approved. Confirm which IDEs your staff use, enable the policy for the groups that need it, and check whether the preview status has changed before you finalize rollout plans.

Preview requirements

How the answer changes by identity provider, plan and deployment

GitHub Enterprise Cloud with data residency can use the remote server through its own copilot-api endpoint, so the hosted endpoint at is not the only route for this deployment. Your residency configuration determines which endpoint staff connect to, and the remote server is the path that supports OAuth 2.0 sign-in with SAML enforcement.

  • Endpoint: Confirm the copilot-api endpoint GitHub provides for your residency region and configure clients to use it instead of the public default.
  • Sign-in: OAuth 2.0 is the recommended method for most users and supports SAML enforcement on the remote server.
  • Admin policy: Enterprise owners can apply allowedMcpServers and deniedMcpServers in enterprise managed settings, which GitHub enforces on the GitHub Copilot app, Copilot CLI and VS Code.
  • Editor access: Copilot in VS Code or Visual Studio needs the organization's Editor Preview Policy enabled for the remote server during public preview, so check that setting against your current GitHub documentation.

Confirm with GitHub which endpoint your residency setup uses and whether every client you plan to allow reaches it.

Decision path from sign-in to allowed server

The path starts when a staff member's client, such as VS Code or the Copilot CLI, connects to the GitHub MCP server. The remote server with OAuth is the recommended route, and SAML enforcement applies at sign-in, while personal access tokens and static local tokens are the alternatives. Once a client is connected, token scopes decide which tools appear, and the managed settings allowlist is checked against the server before it runs. Check that a malformed or unverifiable policy blocks the server, since the allowlist fails closed.

Credential choice, scope filtering and the fail-closed allowlist decide whether a server runs.

Order of work for a production rollout

This sequence moves the GitHub MCP server from a plan to a verified rollout, with each step confirming a control before the next one depends on it. The end state is a managed configuration that staff cannot bypass, plus test evidence that blocked servers fail closed and tools match granted scopes.

  1. Confirm plan and deployment type

    The platform owner confirms which GitHub edition the organization runs and which deployment path applies. GitHub Enterprise Cloud with data residency can use the remote server through its own copilot-api endpoint, while GitHub Enterprise Server supports only the local server, run from a container or binary pointed at the organization's host. Ask GitHub or your account team which Copilot entitlements cover the features you plan to use, since this page does not state plan pricing. Done when the team has a written record of edition, residency status and chosen deployment path.

  2. Enable SAML enforcement for sign-in

    The identity administrator confirms that the remote server's OAuth 2.0 sign-in is covered by SAML enforcement, which GitHub's June 12, 2025 changelog describes for the public preview. Test sign-in with one account that is in the enforced group and one that is not, and confirm the unenrolled account is refused. Done when both results match the policy and you have recorded which identity provider and sign-in path staff will use. Confirm current behavior with GitHub, since the preview announcement is the source reviewed.

  3. Choose the token model per user group

    Assign OAuth 2.0 to most staff, since GitHub recommends it for most users because it supports scoped access and SAML enforcement. Keep personal access tokens for groups with a documented reason, and note that a classic personal access token hides tools whose OAuth scopes it lacks, while fine-grained tokens and GitHub App tokens show all tools and rely on API permission checks. On local servers, a static GITHUB_PERSONAL_ACCESS_TOKEN overrides OAuth, so the variable must be unset for groups meant to use OAuth. Done when each group has one token model and no one is running a static token by accident.

  4. Set toolsets and read-only defaults

    Decide the toolset and write posture before rollout. With no configuration the server enables the default toolsets context, issues, pull_requests, repos and users. For groups that only need to read, enable read-only mode, which GitHub documents as a strict filter that disables every write tool even when a request asks for one. For local servers, the --oauth-scopes setting narrows the requested scope set and hides tools that need scopes not granted. Done when a test session in each group lists only the tools that group's policy allows.

  5. Commit the managed allowlist to the default branch

    An enterprise owner adds allowedMcpServers or deniedMcpServers to copilot/managed-settings.json in the organization's .github-private repository and commits it to the default branch. The serverUrl matcher supports wildcards, but serverName is a user-assigned label that GitHub describes as a convenience, not a security control, so match on URL. GitHub says the allowlist is enforced on the GitHub Copilot app, Copilot CLI and VS Code, and that a server must pass every policy layer when several apply. Done when the file is on the default branch and the team has a copy of the reviewed JSON.

  6. Verify that blocked servers fail closed

    Using a test user on each client in scope, attempt to connect to a server the allowlist does not permit, and attempt one with a malformed configuration. GitHub states that MCP allowlist policies fail closed, so both should be blocked. Record the client version, the policy file commit and the result for each attempt. Done when every blocked case is refused and every permitted case connects. If a permitted server is refused, check the matcher and the other policy layers before changing the rule.

  7. Verify tools match granted scopes

    With the test user, sign in and compare the tools the client shows against the scopes the token actually holds. For classic personal access tokens and local OAuth, tools needing missing scopes should be hidden. For fine-grained tokens and GitHub App tokens, all tools appear and a restricted call should fail at the API permission check. Confirm that the remote server asks the user to authorize each additional scope when a tool needs it. Done when a write action outside the granted scopes is blocked and the results are filed with the rollout record.

What a security reviewer asks to see and where it comes from

This table lists the evidence a security reviewer typically asks for when approving the GitHub MCP server, and where each item comes from. Some items come from GitHub's documentation or the Copilot Trust Center, while others must come from the organization's own GitHub settings and repository history. Use it as a checklist: an item the tool cannot show you is a gap to close before approval.

Evidence itemWhat it provesWhere it comes from
SAML enforcement settingStaff who sign in with OAuth must authenticate through the organization's identity provider under SAML enforcementOrganization SAML settings in GitHub, plus GitHub's June 12, 2025 changelog for the OAuth sign-in behavior
Token model in useWhether each developer uses OAuth, a classic personal access token, a fine-grained token or a GitHub App token, which sets how tool visibility and permission checks workClient configuration on each machine or in the IDE, and the token type recorded in the organization's token policies
Toolset configurationWhich toolsets are enabled (the defaults are context, issues, pull_requests, repos and users) and whether read-only mode is onServer configuration values applied at each deployment, checked against the server configuration guide
Managed-settings file and commit historyWhich MCP servers are allowed or denied, who changed the policy, and when the change reached the default branchThe copilot/managed-settings.json file in the organization's .github-private repository and its commit log
Allowlist matcher choicesWhether servers are matched by serverUrl, which holds the trust decision, or by serverName, which is only a labelThe allowedMcpServers and deniedMcpServers entries in the managed-settings file
Deployment endpointWhether staff use the hosted remote endpoint, an enterprise data residency endpoint, or a local server, which determines where requests travelClient configuration files and, for Enterprise Server, the local container or binary the organization runs itself
Trust Center materialGitHub's published security, privacy, compliance and transparency documents for Copilot, which the reviewer can compare with contract termsGitHub's Copilot Trust Center, reviewed with the organization's own legal and procurement teams

Questions buyers ask before approving the GitHub MCP server

Does the GitHub MCP server support SAML SSO, and on which plan?

Yes, for the remote server's OAuth 2.0 sign-in, which supports SAML enforcement according to GitHub's June 12, 2025 changelog announcing the public preview. OAuth is the method GitHub recommends for most users because it supports scoped access and SAML enforcement, and personal access tokens are also supported. The changelog does not name a plan tier for this feature, so confirm with GitHub which plan and Copilot licensing your organization needs before assuming SAML enforcement is available to all staff. On the local server, a static GITHUB_PERSONAL_ACCESS_TOKEN takes precedence over OAuth, so the OAuth login is skipped when that variable is set. Check how your staff will authenticate before you approve the setup.

Is the GitHub MCP server free to use?

The sources reviewed do not give a single price for the server, so do not treat it as free without confirmation. The repository is published under the MIT license, and the server can run as a hosted remote endpoint or locally from a container image or release binaries. The remote server's secret scanning for tool calls on public repositories is offered on all plan types at no extra license cost, according to GitHub's August 2025 changelog. Other costs depend on your GitHub and GitHub Copilot licensing, which GitHub sets. Ask GitHub to confirm in writing which costs apply to your organization's plan and deployment.

What do we pay for, and who pays for each part?

Your organization pays GitHub for the platform and licensing that the server depends on, such as GitHub Enterprise Cloud or Enterprise Server and any GitHub Copilot seats your staff use with the server. The server's source code is under the MIT license, so the software itself carries no license fee. Hosting costs apply only to a local deployment, where your team runs the container or binary in your own infrastructure. Costs that recur include seats and any infrastructure you run. Costs that are one-time include initial configuration and the policy work you do before rollout. Ask for a quote that separates GitHub licensing, Copilot seats and any infrastructure you own.

Can our own staff configure the GitHub MCP server, or do we need outside help?

Your internal team can configure the server if it has access to your GitHub organization and enterprise settings. The official configuration documentation covers default toolsets, read-only mode, tool exclusions and lockdown, and the enterprise configuration page covers managed settings. Enterprise owners set allowedMcpServers and deniedMcpServers in copilot/managed-settings.json in the organization's .github-private repository and commit it to the default branch. Outside help is useful when you need an independent review of the token model, the allowlist rules and how the server behaves against your own repositories before approval. DeployOpen can plan, implement and test that setup in your environment under a fixed-scope agreement, and it does not publish prices, so request a quote from the written scope.

Does the GitHub MCP server work with GitHub Enterprise Server?

Only the local server works with GitHub Enterprise Server. The remote server is not supported on that deployment, so enterprises on Enterprise Server must run the server from a container image or release binary and point it at their own host. GitHub Enterprise Cloud with data residency can use the remote server through its own copilot-api endpoint. Confirm the endpoint, supported clients and sign-in method for your tenancy in GitHub's enterprise configuration documentation before you plan the rollout, because the remote and local paths have different authentication and policy behavior.

What is not covered, such as audit logs and data retention?

This review does not cover audit logging, and the sources reviewed do not document a retention period for MCP data. Secret scanning on tool calls covers public repositories only, and GitHub states that it does not cover private repositories yet and does not stop every non-secret data leak. Lockdown mode is a best-effort content filter, not a security boundary. Before approval, ask GitHub in writing for the audit events available for MCP activity, the retention period for prompts, tool inputs and outputs, and where that data is processed. The GitHub Copilot Trust Center publishes security, privacy and compliance material you can use in that review.

Which controls can admins enforce on the GitHub MCP server?

Admins can enforce several controls that limit what the server does and which servers staff run. Read-only mode disables every write tool and overrides other tool settings. The default toolsets are context, issues, pull_requests, repos and users, and you can narrow them. Enterprise owners can use allowedMcpServers and deniedMcpServers in enterprise managed settings to control which MCP servers GitHub Copilot clients may run, and GitHub says these policies fail closed, so a malformed or unverifiable configuration is blocked. The allowlist is enforced on the GitHub Copilot app, Copilot CLI and VS Code, according to GitHub's August 2026 changelog. Note that the serverName matcher is a convenience label, so rely on serverUrl for control.

Official sources to check each claim against

Start with the remote server documentation, because it sets out how the hosted endpoint handles authentication and tool access, and pair it with the Server Configuration Guide and the Local Server OAuth Login document. Together they settle the decisions your review must record: whether staff sign in with OAuth 2.0 or a personal access token, which toolsets are enabled, and whether write tools are switched off. Check the default toolsets against the configuration guide yourself, since the sources list context, issues, pull_requests, repos and users as the defaults when no configuration is set. The local OAuth document explains the PKCE flow, the device code fallback, and the rule that a static GITHUB_PERSONAL_ACCESS_TOKEN skips the OAuth login. Use the remote server documentation as the anchor for each setting you approve.

Two changelogs explain how the policy position changed. The June 12, 2025 changelog announcing the public preview recommends OAuth 2.0 for most users because it supports scoped access and SAML enforcement, and it notes that Copilot in VS Code or Visual Studio needed the Editor Preview Policy enabled during the preview. The August 6, 2026 changelog, MCP allowlists in enterprise managed settings, describes allowedMcpServers and deniedMcpServers in copilot/managed-settings.json inside the organization's .github-private repository. It also states that the allowlist fails closed and is enforced on the GitHub Copilot app, Copilot CLI and VS Code. Confirm with GitHub whether that enforcement reaches every client your staff use. The enterprise configuration page covers data residency and Enterprise Server limits, so check it against your own deployment: Configuring the GitHub MCP Server for GitHub Enterprise.

Close the review with the GitHub Copilot Trust Center, which publishes GitHub's security, privacy, compliance and transparency material for Copilot. Use it for questionnaire answers and compliance requests, but read each item for its scope, because the Trust Center describes Copilot as a whole rather than the MCP server alone. Keep a dated record of the pages and changelog entries you relied on, since allowlist and preview behavior changed between 2025 and 2026 and your approval should reflect the version in force on the day it was granted. Ask GitHub in writing about anything the sources do not state, including retention of MCP data and audit logging for tool calls, and file the answers with the approval record. The Trust Center is at GitHub Copilot Trust Center.

How DeployOpen reviews a GitHub MCP server rollout

DeployOpen reviews GitHub MCP server enterprise setup against the controls GitHub documents for OAuth, tokens and admin allowlists. We plan and implement the setup inside your own environment, test it, and hand over documentation your security and compliance teams can review. Engagements are fixed-scope, with the scope agreed in writing before work starts.

How we scope

  • Confirm whether staff will use the remote endpoint or a local server, based on your GitHub deployment type
  • Record which authentication path applies: OAuth 2.0 sign-in or personal access tokens, and whether SAML enforcement is required
  • Agree the toolsets, read-only settings and admin allowlist entries that apply to each staff group in writing

How we build

  • Configure OAuth or token handling, including how a static token overrides OAuth on the local server
  • Set up enterprise managed settings and the allowlist file in your organization's policy repository
  • Test allowlist behavior, scope filtering and secret scanning coverage, and document where the controls do not reach

How we hand over

  • Deliver a written configuration record covering authentication, toolsets, allowlist rules and their owners
  • Provide a findings report with fixes and a retest of the configured controls
  • Document the limits GitHub states, including best-effort lockdown mode and the gaps in private repository scanning

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the handover
  • Review configuration changes when GitHub updates the hosted server or the allowlist feature
  • Keep the evidence your compliance team needs current as your staff and policies change

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.