Azure DevOps MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Azure DevOps MCP Serverlist recent builds for Project Alpha"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Azure DevOps MCP Server
A READ-ONLY MCP (Model Context Protocol) server that connects AI assistants to Azure DevOps Server (on-premises). Works with Claude Code CLI, VS Code AI extensions (Continue, Cline), Cursor, and any MCP-compatible client.
Features
Projects: List and explore projects
Git/Repos: Browse repositories, commits, branches, pull requests, diffs, and code search
Builds: List builds, view logs, analyze errors
Work Items: Query work items, find linked commits/PRs
Releases: View releases and deployment status
Pipelines: List YAML pipelines, view runs, get pipeline configuration
Test Results: View test runs, results, and analyze failures
Related MCP server: Azure DevOps MCP Server
Prerequisites
Node.js 18 or higher
Azure DevOps Server 2020 or 2022 (on-premises)
Personal Access Token (PAT) with read scopes
Installation
Option 1: npm (Recommended)
npx azure-devops-mcp@latestOption 2: Clone and Build
git clone https://github.com/elad-nofy/azure-devops-mcp.git
cd azure-devops-mcp
npm install
npm run buildConfiguration
Create a Personal Access Token (PAT)
Go to Azure DevOps Server
Click on your profile icon > Security > Personal access tokens
Create a new token with the following scopes:
Code: Read
Build: Read
Work Items: Read
Release: Read
Test Management: Read
Configure MCP Client
Claude Code CLI
Add to your global settings (~/.claude.json on macOS/Linux, %USERPROFILE%\.claude.json on Windows):
Windows:
{
"mcpServers": {
"azure-devops": {
"command": "cmd",
"args": ["/c", "npx", "azure-devops-mcp"],
"env": {
"AZURE_DEVOPS_URL": "http://your-tfs-server:8080/tfs",
"AZURE_DEVOPS_PAT": "your-personal-access-token",
"AZURE_DEVOPS_COLLECTION": "YourCollection",
"AZURE_DEVOPS_PROJECT": "YourDefaultProject"
}
}
}
}macOS / Linux:
{
"mcpServers": {
"azure-devops": {
"command": "npx",
"args": ["azure-devops-mcp"],
"env": {
"AZURE_DEVOPS_URL": "http://your-tfs-server:8080/tfs",
"AZURE_DEVOPS_PAT": "your-personal-access-token",
"AZURE_DEVOPS_COLLECTION": "YourCollection",
"AZURE_DEVOPS_PROJECT": "YourDefaultProject"
}
}
}
}VS Code (Continue/Cline)
Add similar configuration to the extension's MCP settings.
Environment Variables
Variable | Required | Description |
| Yes | Server base URL (e.g., |
| Yes | Personal Access Token |
| No | Collection name (default: |
| No | Default project for commands |
Available Tools
Projects
Tool | Description |
| Test connection to Azure DevOps and verify authentication |
| List all projects in the organization |
| Get detailed project information |
Git / Repositories
Tool | Description |
| List repositories in a project |
| List branches in a repository |
| Get commit history with filters |
| Get commit details with changes |
| Get file diff for a commit |
| List pull requests |
| Get PR details with comments |
| Compare two branches (regression analysis) |
| Search for text in repository files |
| Get file content from a repo at a specific branch/commit |
| Find commits referencing a work item |
| Find PRs linked to a work item |
Builds
Tool | Description |
| List recent builds |
| Get build details |
| Get build logs |
| List build definitions |
| Extract errors from failed builds |
Work Items
Tool | Description |
| Search work items (WIQL or filters) |
| Get work item details |
| List available work item types |
| List iterations/sprints in a project |
| List area paths in a project |
Releases
Tool | Description |
| List releases |
| Get release details |
| List release definitions |
| Get deployment logs |
Pipelines
Tool | Description |
| List YAML pipelines |
| Get recent pipeline runs |
| Get pipeline YAML configuration |
| Get pipeline variables |
Test Results
Tool | Description |
| List test runs in a project |
| Get test run details |
| Get test results from a run |
| Get failed tests from a run |
| Get test runs for a specific build |
| Analyze and group test failures |
Usage Examples
Once configured, you can ask your AI assistant questions like:
"Show me the recent builds for project X"
"What's the status of PR #123?"
"List all bugs assigned to me"
"Show me the commits from last week"
"Why did build #456 fail?"
"What tests failed in build #789?"
"Compare branches Dev/9.1 and Dev/9.2"
"Search for 'IMediator' in the Controllers folder"
Development
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run devTroubleshooting
Connection errors
Verify
AZURE_DEVOPS_URLis correct and accessibleCheck if your PAT has not expired
Ensure your network allows connection to the server
Permission errors
Verify PAT has required scopes
Check if you have access to the project/repository
"Project is required" errors
Set
AZURE_DEVOPS_PROJECTenvironment variable, orPass
projectparameter in tool calls
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Elad-Health/azure-devops-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server