CuratedMCP
OpenAI Agents SDK
Free

How to Install GitHub MCP in OpenAI Agents SDK

Official GitHub integration — manage repos, issues, pull requests, and workflows from your AI agent

What GitHub MCP does

The official GitHub MCP server brings code, issues, pull requests, and CI/CD workflows into your AI environment. Developers can review PRs, triage bugs, and automate repository management with natural language. Features: - Create, review, and merge pull requests - Search issues and comments across repositories - Manage branch protections and collaborators - Query commit history and file changes - Trigger GitHub Actions workflows and inspect logs - Fetch repository metadata and code browsing suggestions - Access repository security alerts and dependency insights This official integration gives AI agents the exact repository context and workflow controls developers need.

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 MCPServerStdio

mcp_server = MCPServerStdio(
    command="npx",
    args=["-y", "@github/mcp"],
    env={
        "GITHUB_TOKEN": "ghp_...",
        "GITHUB_ORG": "your-org",
    },
)

agent = Agent(
    name="My Agent",
    model="gpt-4o",
    mcp_servers=[mcp_server],
)
Full server details 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://curatedmcp.com/api/badge/github-mcp)](https://curatedmcp.com/marketplace/github-mcp)

Related servers