Use GitHub with AI via MCP
GitHub holds more than source code – it holds the reasoning behind it, in issues, reviews and release notes. The official GitHub MCP server opens that context up to CompanyGPT, either via OAuth or with a personal access token.
What is GitHub?
GitHub is the most widely used platform for Git-based version control and has been part of Microsoft since 2018. Engineering teams manage repositories there, collaborate through pull requests, track work in issues and projects, and automate builds and deployments with GitHub Actions. Alongside the cloud offering at github.com, GitHub Enterprise Server provides a self-operated variant.
For AI agents, GitHub is valuable twice over: as a source for the code itself and as an archive of the decisions around it. Anyone trying to understand a pull request, summarize a change history or find out why a module was built a certain way usually finds the answer in comments, commit messages and linked issues – content the MCP connection makes searchable.
Connection at a Glance
- MCP server
- Official (GitHub), remote – also self-hosted as a Docker image
- Transport
- Streamable HTTP
- Authentication
- OAuth 2.1 with PKCE or personal access token
- Operating model
- SaaS (github.com)
- Permissions
- Rights of the connected account or the token scopes
How to Connect GitHub to CompanyGPT
GitHub provides an official remote MCP server at api.githubcopilot.com/mcp/. It is generally available and addressed via streamable HTTP; CompanyGPT connects to it directly, with no third-party infrastructure in between.
Two authentication paths are available: signing in via OAuth with each user’s GitHub account, or a personal access token. The token approach fits when access should deliberately be limited to specific organizations or repositories – the granted scopes define exactly what the agent may see and do. Organizations that require approval for OAuth apps simply authorize CompanyGPT once.
As an alternative, the GitHub MCP server can run as a Docker container inside your CompanyGPT environment. That is the right route when you want the data path to stay entirely within your own tenant or need to reflect restrictive network rules. In both variants, your CompanyGPT administrators use roles and groups to decide which teams may use the GitHub integration at all.
Typical Use Cases
How AI agents in CompanyGPT work with GitHub
Release notes from pull requests
Product management has the merged pull requests of a given period summarized and turns them into a readable change overview for customers and sales.
Faster engineering onboarding
New team members ask in chat where a feature lives or how a service is structured – the agent answers with references to concrete files and pull requests.
Keep the backlog under control
Team leads have open issues analyzed by label, milestone or age and get a prioritized overview without building filters in the web interface.
Frequently Asked Questions
GitHub and AI – the most important answers
Does GitHub have an official MCP server?
Yes. GitHub operates an official remote MCP server at api.githubcopilot.com/mcp/ using streamable HTTP as transport. GitHub also publishes the server as a Docker image that you can run yourself.
Which repositories can the AI access?
Exactly those available to the connected account or the stored token. Personal access token scopes let you deliberately narrow access down to selected organizations or repositories.
Can the AI change code or open pull requests?
The possible scope follows from the tools the MCP server exposes and from the token rights. In CompanyGPT you decide per agent whether only read tools are available or write actions are permitted as well.
Why would we self-host the MCP server?
Running the container inside your own CompanyGPT environment makes sense when the data path must stay entirely in your tenant or when network rules are handled restrictively. Functionally it matches the remote variant.
How should we assess the connection under GDPR?
CompanyGPT runs in your own cloud tenant and talks directly to the GitHub endpoint. No additional processing layer at a third party is introduced; the assessment of GitHub itself continues to follow your existing contract.
Related Integrations
Development & DevOps
GitHub and Your AI – GDPR-Compliant with CompanyGPT
CompanyGPT is the enterprise AI assistant in your own cloud tenant: all relevant AI models, your company data and integrations like GitHub – centrally managed, with roles and permissions. We set up the connection together with you.
GitHub is a trademark of its respective owner (GitHub, Inc. (Microsoft)). Its mention describes compatibility and does not imply any partnership or endorsement. Availability and scope of the connection depend on the respective vendor.
