
Azure DevOps MCP Server
MCP微软官方的 Azure DevOps MCP 服务器:查询和操作工作项、代码仓库、PR、构建流水线、测试计划与 Wiki。首次调用需用有权限的微软账号登录;官方更推荐免安装的远程版。
Azure DevOps MCP Server
[!IMPORTANT] We recommend using the Remote MCP Server instead of this local server. It requires no installation and gets new features first.
This project gives AI agents access to Azure DevOps through the Model Context Protocol (MCP). Use the hosted remote server for the simplest setup, or run the local server when you need a stdio connection.
Table of Contents
- Overview
- Design
- Remote MCP Server (Recommended)
- Supported Tools
- Local MCP Server Installation (Optional)
- Using Domains (Local Server)
- Project and Team Defaults (Local Server)
- Troubleshooting
- Examples and Best Practices
- Frequently Asked Questions
- Contributing
Overview
The Azure DevOps MCP Server brings Azure DevOps context to your agents. Try prompts like:
- "List my ADO projects"
- "List ADO Builds for 'Contoso'"
- "List ADO Repos for 'Contoso'"
- "List test plans for 'Contoso'"
- "List teams for project 'Contoso'"
- "List iterations for project 'Contoso'"
- "List my work items for project 'Contoso'"
- "List work items in current iteration for 'Contoso' project and 'Contoso Team'"
- "List all wikis in the 'Contoso' project"
- "Create a wiki page '/Architecture/Overview' with content about system design"
- "Update the wiki page '/Getting Started' with new onboarding instructions"
- "Get the content of the wiki page '/API/Authentication' from the Documentation wiki"
Design
Each tool handles a focused Azure DevOps task. The server provides a thin layer over the REST APIs, while the AI agent handles higher-level reasoning.
Remote MCP Server (Recommended)
For complete instructions, see the Remote MCP Server onboarding documentation.
The remote server will eventually replace the local server. The local server remains supported, but new development will focus on the remote server. Existing local server users should begin planning their migration.
If you encounter issues with tools, need support, or have a feature request, you can report an issue using the Remote MCP Server issue template. During the preview period, we will track Remote MCP Server issues through this repository.
Quick Start
Create .vscode/mcp.json in your project and add this configuration. Replace {organization} with your Azure DevOps organization name.
{
"servers": {
"ado-remote-mcp": {
"url": "https://mcp.dev.azure.com/{organization}",
"type": "http"
}
},
"inputs": []
}
See the remote server configuration documentation for more options.
After saving .vscode/mcp.json, start the server from the MCP view in VS Code, then run a prompt like List ADO projects.
Supported Tools
See the Available Tools documentation for the complete list of available remote tools.
For the complete list of local tools, see TOOLSET.md.
Local MCP Server Installation (Optional)
[!IMPORTANT] Start with the Remote MCP Server first. Use the local MCP Server only if your scenario specifically requires a local
stdiosetup.
These steps use Visual Studio Code and GitHub Copilot. For other supported clients, including Visual Studio 2022, Codex, Claude Code, Cursor, OpenCode, and Kilo Code, see the getting started guide.
Prerequisites
- Install VS Code or VS Code Insiders.
- Install Node.js 20 or later.
- Open your project in VS Code.
Installation
Install from npm
- Create
.vscode/mcp.jsonin your project. - Add this configuration:
{
"servers": {
"ado": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@azure-devops/mcp", "{organization}"]
}
}
}
- Save the file, then start the
adoserver from the MCP view in VS Code. - Open GitHub Copilot Chat and switch to Agent mode.
- Select the Azure DevOps tools, then try a prompt such as
List ADO projects. - When prompted, sign in with a Microsoft account that has access to the selected Azure DevOps organization.
To use nightly builds, replace @azure-devops/mcp with @azure-devops/mcp@next in the configuration.
For better tool selection, add .github/copilot-instructions.md to your project with this instruction:
This project uses Azure DevOps. Always check whether the Azure DevOps MCP server has a tool relevant to the user's request.
Using Domains (Local Server)
The local server includes many tools. Domains let you load only the tool groups you need, which keeps the tool list manageable and helps clients with tool limits. Available domains are core, work, work-items, search, test-plans, repositories, wiki, pipelines, and advanced-security.
Add -d followed by the domains to the server arguments. For example, this configuration loads only work item-related tools:
{
"servers": {
"ado_with_filtered_domains": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@azure-devops/mcp", "{organization}", "-d", "core", "work", "work-items"]
}
}
}
Always include core so the agent can retrieve project information.
If you omit
-d, the server loads all domains.
Project and Team Defaults (Local Server)
Set default Azure DevOps project and team values in .vscode/mcp.json so tools can skip selection prompts.
Example .vscode/mcp.json
{
"servers": {
"ado": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@azure-devops/mcp", "{organization}", "--authentication", "azcli"],
"env": {
"ado_mcp_project": "Contoso",
"ado_mcp_team": "Fabrikam Team"
}
}
}
}
Troubleshooting
See the Troubleshooting guide for help with common issues and logging.
Examples
See the examples for sample prompts.
Frequently Asked Questions
For answers to common questions about the Azure DevOps MCP Server, see the Frequently Asked Questions.
Contributing
We welcome contributions. During preview, file issues for bugs, enhancements, or documentation improvements.
See our Contributions Guide for:
- Development setup
- Adding new tools
- Code style and testing
- Pull request process
Read the Contributions Guide before creating a pull request.
Code of Conduct
This project follows the Microsoft Open Source Code of Conduct. For questions, see the FAQ or contact open@microsoft.com.
Hall of Fame
Thanks to all contributors who make this project awesome! ❤️
Generated with contrib.rocks
License
Licensed under the MIT License.
Trademarks: This project may include trademarks or logos for Microsoft or third parties. Use of Microsoft trademarks or logos must follow Microsoft’s Trademark & Brand Guidelines. Third-party trademarks are subject to their respective policies.
相關資源

阿里云云效 DevOps MCP Server
MCP阿里云云效官方 MCP 服务器:让 agent 读写工作项、代码仓库与合并请求、流水线、制品仓库和测试用例,支持中心版与 Region 版,也有官方托管端点。需要云效个人访问令牌。
aliyun/alibabacloud-devops-mcp-server190
GitHub MCP Server
MCPGitHub 官方 MCP 服务器:让 agent 读写仓库与代码,管理 Issue 和 PR,查看 Actions 工作流与代码扫描告警。可接托管远程服务或用 Docker 本地运行,需个人访问令牌或 OAuth 授权。
github/github-mcp-server34.9k
GitLab MCP Server
MCP社区维护的 GitLab MCP 服务器:管理项目、合并请求、Issue、流水线、Wiki 与发布,支持私有部署实例和只读模式。需要 GitLab 个人访问令牌或 OAuth 授权。
zereight/gitlab-mcp2.1k
Microsoft Learn MCP Server
MCP检索并读取 Microsoft Learn 官方文档与 Azure、.NET 等代码示例,减少 agent 给出过时的微软技术答案。微软官方维护,远程接入免费且无需密钥。
MicrosoftDocs/mcp2k
GitLab
Plugin接入 GitLab 官方远程 MCP 服务(Beta),让 Claude 操作仓库、合并请求、CI/CD 流水线、议题与 Wiki;连接 GitLab.com,需在顶级群组开启 MCP 访问并经浏览器 OAuth 授权。收录于 Anthropic 官方插件市场。
anthropics/claude-plugins-official48.7k
GitHub CLI
CLIGitHub 官方命令行:在终端里管理 PR、Issue、Release 与 Actions 工作流,多数命令支持 --json 输出便于 agent 解析,并提供官方 agent skill。需先 gh auth login 登录。
cli/cli47.4k