CuratedMCP
✨
OpenAI Agents SDK
Free

How to Install GitHub MCP in OpenAI Agents SDK

GitHub's official MCP server for repositories, issues, pull requests and Actions.

What GitHub MCP does

GitHub's official MCP server, hosted by GitHub. Connect with OAuth or a personal access token to let an agent read code and work with issues, pull requests, Actions and other repository data, within the token's permissions. It can also run locally from the github/github-mcp-server Docker image.

github
repo
issues
pull-requests
ci-cd

Installation steps

  1. 1Install: pip install openai-agents
  2. 2Copy the snippet below into your agent code
  3. 3Replace placeholder env values with your real keys
  4. 4Pass mcp_servers=[mcp_server] to your Agent()

Python snippet

Python snippetpython
from agents import Agent
from agents.mcp import MCPServerStreamableHttp

mcp_server = MCPServerStreamableHttp(params={"url": "https://api.githubcopilot.com/mcp/", "headers": {"Authorization":"Bearer <your-github-pat>"}})

agent = Agent(
    name="My Agent",
    model="gpt-4o",
    mcp_servers=[mcp_server],
)
Full server details GitHub Open Config Editor

Install in other clients

For maintainers

If you maintain GitHub MCP, add this badge to your README to show it's verified on CuratedMCP:

CuratedMCP Verified
[![CuratedMCP Verified](https://www.curatedmcp.com/api/badge/github-mcp)](https://www.curatedmcp.com/marketplace/github-mcp)

Related servers