GitHub Copilot Agent Mode + MCP: Complete Setup Guide
GitHub Copilot's agent mode supports MCP for external tool access. How to configure servers, what's supported, and how it works with SKILL.md.
GitHub Copilot's agent mode transformed Copilot from a code completion tool into a full AI coding agent. One of its most powerful additions is MCP support — the ability to connect to external tools and services through the Model Context Protocol.
What agent mode + MCP enables
With MCP servers connected, Copilot agent mode can interact with services beyond your codebase. Query databases, check CI/CD status, read project documentation from Notion, manage GitHub issues — all from within your VS Code editing session.
This is different from Copilot's traditional code suggestions. Agent mode with MCP turns Copilot into an active participant in your development workflow, not just a passive autocomplete.
Setting up MCP in Copilot
MCP configuration for Copilot agent mode lives in your VS Code settings:
- Open VS Code Settings (Cmd/Ctrl + ,)
- Search for "copilot mcp"
- Add your MCP server configurations
{
"github.copilot.chat.mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-filesystem", "/path/to/project"]
},
"github": {
"type": "url",
"url": "https://mcp.github.com/sse"
}
}
}
Restart VS Code after adding configurations.
Compatible MCP servers
Most MCP servers built for Claude Code or Codex CLI work with Copilot agent mode. The protocol is the same, and servers don't care which agent is calling them. Some servers optimized for terminal-based agents may have slightly different behavior in VS Code's chat interface, but the core functionality works.
The Agensi MCP directory lists compatibility information for each server, including whether it's been tested with Copilot agent mode.
SKILL.md with Copilot agent mode
Copilot agent mode also supports SKILL.md skills through the .github/copilot-instructions.md file and project-level SKILL.md files. You can install skills from Agensi that work with Copilot, giving it specialized knowledge for code review, testing, deployment, and other development tasks.
The combination of MCP for tool access and SKILL.md for behavior instructions makes Copilot agent mode significantly more capable than stock Copilot.
Find the right skill for your workflow
Browse our marketplace of AI agent skills, ready to install in seconds.
Browse SkillsRelated Articles
Cline + MCP: Setup Guide for VS Code
Cline supports MCP for connecting to external tools within VS Code. How to configure servers, which ones work best, and how SKILL.md skills enhance Cline.
5 min read
How to Use SKILL.md Skills in VS Code (2026 Setup Guide)
Microsoft added SKILL.md support to VS Code through GitHub Copilot's agent mode. Here's how to install and use skills in VS Code.
5 min read
Codex CLI + MCP: How to Connect OpenAI's Agent to External Tools
Codex CLI supports MCP for connecting to external tools and data sources. How to configure servers, which transports work, and the best MCP servers to start with.
6 min read