MCP client - GitHub - verified
How to add an MCP server to GitHub Copilot CLI
Where to add MCP servers in GitHub Copilot CLI: ~/.copilot/mcp-config.json (user); per-repository .mcp.json or .github/mcp.json; or copilot mcp add / /mcp add. Its docs list support for stdio, Streamable HTTP and SSE. It handles OAuth sign-in for remote servers.
GitHub Copilot CLI homepage - GitHub Copilot in our tools directory - Compare all MCP clients
- Kind
- Coding agent
- stdio
- Yes
- Streamable HTTP
- Yes
- SSE
- Yes
Add a server
- Where the config lives
- ~/.copilot/mcp-config.json (user); per-repository .mcp.json or .github/mcp.json; or
copilot mcp add//mcp add
The terminal command from the GitHub Copilot CLI docs, copied verbatim. Swap in your server's name, command or URL.
Terminal command - run it in your shell
copilot mcp add github --env GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-serverSource: docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers
Which server?
Pick a server from the verified directory of official MCP servers. Each one lists its transport, auth and the setup snippets its vendor publishes, so you can match it to what GitHub Copilot CLI supports.
MCP support
What the GitHub Copilot CLI docs say it supports. Not stated means the docs do not say either way.
| Feature | Value | Source |
|---|---|---|
| ToolsCalls the functions a server exposes. | Yes | docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers |
| ResourcesReads data and files a server exposes as resources. | Yes | github.com/github/copilot-cli/blob/main/changelog.md |
| PromptsOffers a server's prompt templates to the user. | Not stated | Docs do not say |
| SamplingLets a server ask the client's model for a completion. | Yes | github.com/github/copilot-cli/blob/main/changelog.md |
| RootsTells a server which directories it may work in. | Not stated | Docs do not say |
| ElicitationLets a server ask the user for input mid-task. | Yes | github.com/github/copilot-cli/blob/main/changelog.md |
| DiscoveryPicks up tools, prompts or resources a server adds or removes while connected. | Yes | github.com/github/copilot-cli/blob/main/changelog.md |
| InstructionsUses the instructions a server sends when it connects. | Yes | docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference |
| stdioStarts a local server as a subprocess. | Yes | docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers |
| Streamable HTTPConnects to a remote server over the current HTTP transport. | Yes | docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers |
| SSEConnects over the older HTTP+SSE transport. | Yes | docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers |
| OAuthSigns in to remote servers with OAuth. | Yes | docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference |
Worth knowing
The GitHub MCP server is built into Copilot CLI and is available without any additional configuration.
Other coding agents
FAQ
Where is the GitHub Copilot CLI MCP config?
~/.copilot/mcp-config.json (user); per-repository .mcp.json or .github/mcp.json; or copilot mcp add / /mcp add. The example on this page is copied from https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers
Does GitHub Copilot CLI support remote MCP servers over Streamable HTTP?
Yes, per https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers. Its docs list support for stdio, Streamable HTTP and SSE.
Does GitHub Copilot CLI support OAuth for MCP servers?
Yes. It handles OAuth sign-in for remote servers. Source: https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference
Which MCP features does GitHub Copilot CLI support?
Its docs list Tools, Resources, Sampling, Elicitation, Discovery and Instructions. They do not state Prompts and Roots.
Sources
Last verified from the pages below.
- GitHub Docs: Adding MCP servers for GitHub Copilot CLI - docs.github.com
- GitHub Docs: Copilot CLI command reference - docs.github.com
- github/copilot-cli changelog (1.0.98, 2026-10-14) - github.com
Newsletter
New MCP servers, the week they ship
One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.