Git MCP server official vs community and OAuth setup

Which git MCP server is official, how GitHub's local server signs in with OAuth instead of a personal access token, and what changes for GitHub Enterprise Server and ghe.com hosts.

On this page

Does the git MCP server support enterprise sign-in and which server should we approve?

GitHub's official local server supports OAuth login on github.com, and for GitHub Enterprise Server or ghe.com you must pass an OAuth client ID to the stdio server. The reference mcp-server-git server is an early-development project in the Model Context Protocol repository, and the supplied material documents no identity integration for it, so treat it as having no enterprise sign-in until its README or source says otherwise. For the approval decision, the choice is between a GitHub-published server with a documented sign-in path and a reference project with none.

The reference git server is the Model Context Protocol project's example, not a GitHub product, and its tool list and behavior may change. Whether GitHub sign-in works for your organization depends on where your repositories live and which GitHub plan and OAuth application your organization uses, not on the MCP server alone. Confirm with GitHub which plan your organization is on, whether your host is github.com, GitHub Enterprise Server or ghe.com, and whether your organization has registered its own OAuth application for the client ID. Ask GitHub to confirm these points in writing before you approve the server for a specific host.

For the approval record, name the server and version in use, the host it targets, and the sign-in method, and note that the remote server and the http command use their own authentication rather than the stdio OAuth flow. Check the GitHub MCP server OAuth login doc against the exact release your teams install, since the doc is the source for how tokens are held in memory and which flow runs in containers. If your security team needs the reference server, plan for sign-in and access controls to be handled outside the server itself and confirm that design before rollout.

Sign-in and deployment options by git MCP server

This table compares how each git MCP server option is deployed and how it signs in, and what the reader must set up before using it. Read the status column first, because it shows whether sign-in is built in, needs the organization's own OAuth application, or sits outside the component entirely. Where the supplied documentation is silent, the notes tell the reviewer what to confirm with the vendor or in their own environment.

Server and deploymentSign-in methodStatus and notes
mcp-server-git reference server (uvx, pip, Docker mcp/git, VS Code)Not documented in supplied facts. Confirm how the server authenticates to a repository host and whether it performs any sign-in itself.Not documented in supplied facts. The README describes the server as early development with tools that may change, so confirm the current behavior in the version you pin.
GitHub official local (stdio) server on github.comOAuth login, preferring authorization code flow with PKCE, with device-code flow as fallbackBuilt in. Released binaries and the ghcr.io/github/github-mcp-server image ship with a registered GitHub OAuth application, so the server can start with no token and no client ID. Token is kept in memory only.
GitHub local server on GitHub Enterprise Server or ghe.comOAuth login through an OAuth application you specify with --oauth-client-idNeeds own OAuth app. Pass --oauth-client-id to target GHES or ghe.com, or to use your own OAuth application. Confirm the app registration and its scopes with your GitHub administrator.
GitHub remote serverHas its own authentication, separate from the stdio OAuth loginOutside the stdio component. The OAuth login doc does not apply to it, so review its authentication and admin settings as a separate control. Details not in supplied facts; confirm with GitHub.
GitHub http commandHas its own authentication, separate from the stdio OAuth loginOutside the stdio component. The OAuth login doc does not apply to it. Confirm the authentication method and where it is exposed before deployment.

Which git MCP server is official and why it matters for review

Two git MCP servers are worth separating before any review starts. The first is the reference server mcp-server-git, published in the Model Context Protocol project's servers repository. Its README describes it as a server for Git repository interaction and automation, lists 12 tools (from git_status and git_diff through git_commit, git_reset, git_checkout and git_branch), and states that the server is in early development and that its functionality and tools are subject to change. The second is github/github-mcp-server, which its repository describes as GitHub's official MCP Server and which shows an MIT license. These are different kinds of project. One is a protocol project's reference implementation, the other is a server published by the company that hosts the repositories it touches.

Ownership drives the review questions. For the reference server, reviewers should confirm who maintains each release, what the change process is, and whether the product team of the consuming organization will receive advance notice before a tool is renamed, removed or made to write where it previously only read. For GitHub's server, reviewers should ask GitHub's documented support and deprecation channels for the release they plan to run, and confirm which of the tools exposed by that release can write to repositories, issues or pull requests in their own GitHub Enterprise tenancy. Neither project should be treated as a fixed interface.

Pin a specific version of each server the organization approves, record the image digest or package version in the approved-tool register, and re-test when either project changes. Check the release notes for both repositories on a fixed schedule, because tool lists and permission behavior can change between versions. A reviewer who approves mcp-server-git as a read-only tool today should confirm the tool list again before the next upgrade, since the README itself warns that tools may change. Document which server is in use, which version, and who owns the approval decision.

Order of work before approving GitHub's local server

This sequence settles which build, host and authentication path the organization approves, and which write actions it allows, before any developer connects the local GitHub server to an AI agent. Each step closes with a check that the team can record as evidence.

  1. Confirm the official server and release to approve

    The security reviewer and the platform owner identify the server by its source: the github/github-mcp-server repository, which GitHub describes as its official MCP Server and which shows an MIT license. Record the exact release, binary or container image tag you intend to allow, and do not approve an unpinned or locally rebuilt copy. Confirm with the team that the reference git server (mcp-server-git) is a separate project and is not being approved under GitHub's name. The step is done when the approved artifact, version and source repository are written into the rollout record.

  2. Decide the GitHub host for the rollout

    Decide whether the server will target github.com, GitHub Enterprise Server or ghe.com. On github.com, the released binaries and the ghcr.io/github/github-mcp-server image ship with a registered GitHub OAuth application, so the server can start without a token or client ID. For GitHub Enterprise Server or ghe.com, you must pass --oauth-client-id to the stdio server, so the host decision drives the next step. The platform owner records the host, and the check is a written statement naming the single host each group of developers may use.

  3. Choose GitHub's OAuth app or your own

    Decide whether developers sign in with GitHub's registered OAuth application or with an OAuth application the organization registers itself, passed with --oauth-client-id. An organization-owned application lets your GitHub administrators control the client ID, the callback settings and the approval of the application inside your own GitHub organization. Confirm the choice with the GitHub administrators who manage OAuth app access policies. The check is a named application or client ID, with its owner, stored in the rollout record.

  4. Confirm the token scopes with GitHub admins

    Ask the GitHub administrators which permissions the OAuth grant implies for the chosen application and host, and whether the organization restricts OAuth apps or requires approval before a user can grant them. Confirm how the resulting token is handled: the vendor doc states the token is kept in memory only, with nothing written to disk, and you should verify that behavior in your own environment rather than rely on the statement alone. Ask whether repository access can be narrowed for the approved group. The check is a written scope list that the GitHub admins have reviewed and signed off.

  5. Choose stdio or the remote server

    Decide which transport the approved group will use. The OAuth login described in the vendor doc applies to the local stdio server only, while the remote server and the http command have their own authentication. Record the authentication method, owner and access review cadence for whichever transport you select, and confirm the remote server's authentication with GitHub before approving it. Because the controls differ, the reviewer should not carry an approval from one transport over to the other. The check is a single approved transport per group, with its authentication path documented.

  6. Test writes in a sandbox repository

    In a test repository that holds no production code, have a pilot user connect the approved server and attempt the write actions the team is concerned about, such as creating a branch and making a commit. Confirm whether each write goes through the organization's approval path, such as a protected branch, required review or a pull request workflow, and whether the token's access allowed the write without any additional check. Capture the results and any gaps for the reviewer. The step is complete when the test log shows each write was either blocked or routed through the approval path, and any gap has an owner and a fix before wider rollout.

Decisions to make before choosing OAuth over a personal access token

Before an engineering team swaps a personal access token for OAuth login, five choices decide what the login can reach, who controls it and how it is ended. Each card below names one of those choices and what it affects, so the reviewer can confirm each one with the platform owner before rollout.

Host: github.com, GHES or ghe.com

The host decides whether the stdio server can log in with its built-in OAuth application or needs your own. On github.com, official released binaries and the ghcr.io image ship with a registered OAuth application, so the server can start with no token and no client ID. To target GitHub Enterprise Server or ghe.com, you pass --oauth-client-id to the stdio server. Confirm which host your repositories live on before anyone writes a client configuration.

OAuth login doc

OAuth app ownership

Using the built-in GitHub-registered application is the fastest path on github.com, but your security team does not own its registration or its settings. An OAuth application you register yourself gives your organization control over its name, callback settings and who may authorize it. Ask who will hold the client ID, who can change its settings and how a compromised registration would be replaced.

Server mode: stdio, remote or http

OAuth login described in the doc applies to the local stdio server only. The remote server and the http command each have their own authentication, so a team that approves the OAuth flow for the stdio server has not approved the remote server. Record which mode each developer runs and review each mode separately, including who can reach a network listener when the http command is used.

Deployment environment and login flow

The server prefers the authorization code flow with PKCE and falls back to a device-code flow when that flow cannot be used, for example in a container with no published callback port. A developer laptop usually completes the browser redirect, while a container or CI runner may need the device-code path. Check each environment where the server will run, because the login path changes what the user must approve and where the token is held.

Token lifetime and revocation

The doc says the resulting token is kept in memory only, with nothing written to disk, so ending the process ends the local session. That does not revoke the grant on GitHub. Ask how an administrator or user revokes the authorization for a departing employee or a lost laptop, how quickly the revocation takes effect for running sessions, and who checks that revoked grants are gone from each developer's account.

How the answer changes by GitHub host and team size

On github.com, the local stdio server can start without a token or client ID when you use an official released binary or the ghcr.io/github/github-mcp-server image, because those ship with a registered GitHub OAuth application. That convenience shifts the review to the app itself: the organization is trusting a GitHub-registered application, not one it registered. The token from the login flow stays in memory only, according to GitHub's doc, so nothing is written to disk on the workstation.

  • Registered app identity: Confirm with GitHub which OAuth application the shipped binary uses and what scopes it requests.
  • Organization policy: Check with your GitHub org owners whether OAuth apps are allowed, restricted or require approval for your organization.
  • Token lifetime: Ask GitHub how long the in-memory token remains valid and what happens on sign-out or process exit.
  • Remote server separation: Remember that the remote server has its own authentication, so a stdio login does not govern it.
  • Image and binary provenance: Have your platform team verify the release source and version before standardizing on it.

Before approving this path, confirm the registered application, the org's OAuth app policy and the scopes with GitHub and your identity team.

Sign-in decision path for the local GitHub server

The path starts with the host the server must reach. On github.com, official released binaries and the ghcr.io image ship with a registered OAuth application, so the server can start with no token and no client ID. For GitHub Enterprise Server, ghe.com, or your own OAuth application, pass --oauth-client-id. Login then uses the authorization code flow with PKCE when a callback is reachable, and falls back to device-code flow otherwise. The resulting token stays in memory. Check which branch your containers and hosts take, and treat the remote server and the http command as separate sign-in paths to review.

Local stdio server sign-in branches by host and callback reachability.

Evidence a security reviewer asks for on the git MCP setup

This table lists the records a reviewer should request for the GitHub local server and the reference git server, with the place each one comes from. Use it to decide what must be on file before approval, and treat any item that cannot be produced as a reason to restrict the setup.

ControlWhat to requestWhere it comes from
Pinned official server version and licenseThe exact release or commit of the GitHub server in use, the MIT license text in the repository, and proof that staff run that build, not an unvetted forkRelease tags and the license file in the github/github-mcp-server repository, plus your own binary or image inventory
OAuth login doc behaviorConfirmation that the OAuth login flow in the version you approved matches the documented behavior: authorization code flow with PKCE, device-code fallback, and login applying to the stdio server onlyThe OAuth login doc in the github-mcp-server repository, checked against the approved version
Host and OAuth app configuration recordFor github.com, the registered OAuth application used by the official binary or image. For GitHub Enterprise Server or ghe.com, the client ID passed with --oauth-client-id and the owner who registered itThe --oauth-client-id setting in the launch configuration and the OAuth application settings in your GitHub organization or enterprise
Token storage behaviorEvidence that the token stays in memory and is not written to disk, tested on the approved build, plus the process and container settings that keep it that wayThe OAuth login doc's statement on in-memory tokens, confirmed through a test on a staff workstation or container image
Approved server modeA written decision that names the stdio local server, the remote server, or the http command as approved, with their separate authentication methods recorded for eachThe server's documented modes and the client configuration files staff use to connect
Change tracking for the early-development reference serverThe version of mcp-server-git in use, the tool list checked against its README at that version, and a re-review date tied to each upgradeThe mcp-server-git README, which states the server is early and its tools may change, and your package or container version records

Questions buyers ask before approving GitHub's git MCP server

Is GitHub's official MCP server free to use?

The supplied research does not state a price or plan for the GitHub MCP server, so confirm licensing with GitHub before approval. The repository shows an MIT license for the code, which covers the software itself, not the GitHub account or plan a staff member uses to sign in. Ask GitHub whether any plan, seat or API usage limit applies to the account type your staff will use, and confirm whether your GitHub Enterprise agreement changes anything. Cost for your organization will come from your existing GitHub subscription and any support or implementation work you buy separately.

Does the GitHub MCP server work with GitHub Enterprise Server or ghe.com?

Yes, for the local stdio server, by passing the --oauth-client-id flag. The OAuth login documentation says that to target GitHub Enterprise Server or ghe.com, or to use your own OAuth application, you pass --oauth-client-id to the stdio server. On github.com, the released binaries and the ghcr.io/github/github-mcp-server image ship with a registered OAuth application, so no client ID is needed there. Your administrator must create or approve the OAuth application on your host. OAuth login applies only to the stdio server. The remote server and the http command use their own authentication, so review them separately.

Does the GitHub MCP server store OAuth tokens on disk?

No. According to the OAuth login documentation, the local stdio server keeps the token it receives from an OAuth login in memory only, and nothing is written to disk. That means the token ends when the server process stops, and a user must sign in again the next time. This is a property of the server as documented, so verify it in your own environment before approval. Check the endpoint's process handling, any wrapper scripts, container volumes and logs your staff may add, since those are outside the server's own behavior and could store credentials differently.

How long does setup take, and who should do it?

The supplied research does not give a duration, so the time depends on the scope you set. A single developer on github.com with the released binary has the simplest path, because no client ID is needed. A GitHub Enterprise Server or ghe.com rollout adds OAuth application creation, approval and testing across teams, which takes longer and needs an administrator who controls the host. Other drivers include how many clients you support, whether you use the device-code fallback in containers, and how you record approved configurations. Ask any implementation partner for a written scope and timeline before work begins.

Can staff set up the GitHub MCP server themselves?

Yes for the basic setup on github.com, since the released binaries and container image already include a registered OAuth application. Staff can start the stdio server and complete the login flow without a token. For GitHub Enterprise Server, ghe.com or a custom OAuth application, an administrator should supply the OAuth client ID and confirm the application's scopes and callback settings first. Staff should not be left to choose their own OAuth applications. Decide in advance which configurations are approved, document them, and tell staff which remote or http server options are not covered by the OAuth flow.

What can DeployOpen do through a fixed-scope review of this setup?

DeployOpen runs AI agent rollout security reviews for coding agents and MCP servers. For a GitHub MCP server, that work can test prompt injection exposure, tool and file permissions, data exposure, credential handling, SSO and admin settings, and then deliver a findings report with fixes and a retest. DeployOpen can also deploy and configure self-hosted platforms inside your infrastructure. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that written scope. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies do that work.

Primary sources to check each sign-in claim against

Start with the github/github-mcp-server repository, where GitHub describes its server as its official MCP Server and shows an MIT license. Confirm that the repository's current README and release notes match the server you plan to deploy, and check which mode (local stdio, remote, or the http command) each setup instruction applies to. Record the release or image tag you tested, because the authentication behavior described in the docs can change between versions. The repository is also the place to confirm that any binary or container image you pull comes from the publisher you expect.

Next, read the GitHub MCP server: local server OAuth login (stdio) doc line by line. Verify three claims before you repeat them internally: that OAuth login applies only to the stdio server, that the token is kept in memory with nothing written to disk, and that GitHub Enterprise Server or ghe.com hosts require passing --oauth-client-id. Then test the device-code fallback in the container you intend to use, since the doc says it applies when the authorization code flow cannot run, and confirm which OAuth application your organization's policy allows.

Finally, check the mcp-server-git README against any claim that the reference server is the official git option. The README describes the server as in early development with tools that may change, and it lists the twelve tools that can read and write repositories. Confirm that the tool list in your installed version matches the README, and confirm that the server has no built-in sign-in, since it runs against a local repository path your own user account can already reach.

How DeployOpen reviews a git MCP server rollout

DeployOpen reviews git MCP server rollouts inside the client's own infrastructure, so the choice between the official GitHub server and a community git server, and the OAuth or token setup behind it, is tested in the environment where it will run. Each engagement starts from a written scope and ends with documented controls the client's security and compliance teams can review.

How we scope

  • Engagements are fixed-scope, with the git hosts, servers and clients in scope agreed in writing before work starts.
  • We confirm which server each team uses, whether it is the reference git server or GitHub's official server, and why.
  • We record which hosts are involved, including github.com, GitHub Enterprise Server or ghe.com, and who owns each OAuth application.

How we build

  • We test the local GitHub server's OAuth login against the client's identity setup, including the authorization code and device-code paths.
  • We check which tools can write to a repository and confirm how the client narrows them before staff connect.
  • We review credential handling, including where tokens are held and whether any are written to disk or configuration files.

How we hand over

  • Deliverables include a written findings report, the agreed configuration, and a retest record showing which fixes were verified.
  • We document the approved server, OAuth application settings and host-specific steps so the client's team can repeat them.
  • We walk the client's engineering, IT and security owners through the controls and the open items they must confirm with each vendor.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, useful when a server's tools change between releases.
  • We can retest the git MCP setup after server updates, new hosts or changes to the client's identity provider.
  • Support covers the evidence trail the client's compliance reviewers request, without issuing audit reports or certifications.

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.