CuratedMCP
OpenAI Agents SDK
Free

How to Install GitHub MCP Server in OpenAI Agents SDK

Full GitHub API access for your AI agents — repos, issues, PRs, and more

What GitHub MCP Server does

Connect your AI agents to GitHub with full read/write access. Create issues, open pull requests, review code, and manage repositories directly from your AI workflows. Features: - Repository management (create, clone, fork) - Issues and pull request management - Code review and commenting - GitHub Actions integration - Organization and team management - Webhook event handling Built on the official GitHub REST API v3 with OAuth App support and fine-grained PAT tokens.

github
git
devops
code-review
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", "@modelcontextprotocol/server-github"],
    env={
        "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxxxxxxxxxxx",
    },
)

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 Server, add this badge to your README to show it's verified on CuratedMCP:

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

Related servers