CuratedMCP
OpenAI Agents SDK
Free

How to Install GitHub Copilot MCP in OpenAI Agents SDK

Connect GitHub Copilot's code intelligence to any MCP client — completions, explanations, and review

What GitHub Copilot MCP does

GitHub Copilot MCP brings GitHub's code AI directly into any MCP-compatible client. Use Copilot's code understanding, generation, and review capabilities from Claude Desktop, Cursor, or any agent framework. Features: - Code completions with full repository context - Natural language to code generation - Code explanation and documentation generation - Security vulnerability detection (Copilot Autofix) - PR review suggestions and quality checks - Test generation with edge cases - Code refactoring with explanation - Multi-file context awareness - Copilot Chat integration This is particularly powerful combined with the GitHub MCP server — one gives you repository access, the other gives you code intelligence. Together they enable autonomous code review, automated PR fixes, and intelligent code search. Requires GitHub Copilot subscription (Individual $10/month, Business $19/seat/month).

github-copilot
code
ai
completions
review

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/copilot-mcp"],
    env={
        "GITHUB_TOKEN": "ghp_...",
        "COPILOT_API_KEY": "your_key",
    },
)

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

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

Related servers