MCP server that connects Claude, Cursor, and other MCP clients to GitHub Copilot CLI for code analysis and automation.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Copilot MCP Server.
Copilot MCP Tool is an open‑source Model Context Protocol (MCP) server that connects your IDE or AI assistant (Claude, Cursor, etc.) to GitHub Copilot CLI. It enables non‑interactive automation, safe tool execution with permissions, and large‑scale code analysis via @ file references. Built for reliability and speed, it streams progress updates, and integrates cleanly with standard MCP clients for code review, refactoring, documentation, and CI automation.
Goal: Use GitHub Copilot CLI directly from your MCP-enabled editor to analyze and edit code efficiently.
Before using this tool, ensure you have:
Type /mcp inside Claude Code to verify the Copilot MCP is active.
If you already have it configured in Claude Desktop:
Register the MCP server with your MCP client:
Add this configuration to your Claude Desktop config file:
If you installed globally, use this configuration instead:
Configuration File Locations:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/claude/claude_desktop_config.jsonAfter updating the configuration, restart your terminal session.
Configure default behavior with environment variables:
COPILOT_MODEL - Default AI ModelMethod 1: In MCP Configuration (Recommended)
Add the env field to your MCP server configuration:
Method 2: System Environment Variable
Available models:
claude-sonnet-4.5 - Default, best for code generationclaude-sonnet-4 - Faster versiongpt-5 - OpenAI GPT-5Priority: model parameter > COPILOT_MODEL env > Copilot CLI default (claude-sonnet-4.5)
Override in requests:
COPILOT_MCP_CWD - Working DirectoryPurpose: Sets the working directory for Copilot CLI command execution. This is especially important when the MCP server starts from a different directory than your project (e.g., from home directory in IDE integrations).
Method 1: In MCP Configuration (Recommended for IDE)
Method 2: System Environment Variable
Resolution Priority:
workingDir parameter in request (highest)COPILOT_MCP_CWD env variablePWD or INIT_CWD env variables@path in promptprocess.cwd() (lowest)Override in requests:
For IntelliJ IDEA / IDE Users: If Copilot CLI cannot find your project files, set COPILOT_MCP_CWD in your MCP server configuration to point to your project directory.
See Getting Started Guide for full configuration details.
/copilot to access the MCP server tools.ask copilot to analyze @src/main.ts and explain what it doesuse copilot to summarize @. the current directoryanalyze @package.json and list dependencies using copilotask copilot to explain div centeringask copilot about best practices for React developmentuse copilot for TypeScript debugging helpbrainstorm ways to optimize our CI/CD pipeline using SCAMPER methoduse copilot to brainstorm 10 innovative features for our appask copilot to generate product ideas for the healthcare domain with design-thinking approachGitHub Copilot CLI supports tool permissions and directory access controls. This server defaults to allowing all tools for non-interactive mode.
use copilot to create and run a Python script that processes dataask copilot to safely test @script.py and explain what it doesThese tools are designed to be used by the AI assistant.
ask: Executes GitHub Copilot CLI with comprehensive tool and directory management.
@ file references for including file contentallowAllTools, allowTool, denyTooladdDir for granting file system accesslogLevel, resume (session management), screenReader supportbatch: Processes multiple atomic tasks with GitHub Copilot CLI in batch mode.
review: Comprehensive code review using GitHub Copilot CLI.
security, performance, code-quality, best-practices, architecture, testing, documentation, accessibility, comprehensivelow, medium, high, criticalmarkdown, json, textbrainstorm: Generate novel ideas with structured methodologies.
brainstorm prompt:"ways to improve code review process" domain:"software" methodology:"scamper"Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/x51xxx-copilot-mcp-server)<a href="https://allmcps.com/mcp/x51xxx-copilot-mcp-server"><img src="https://allmcps.com/api/badge/x51xxx-copilot-mcp-server?style=directory" alt="Copilot MCP Server on AllMCPs" /></a>