Claude Code Azure DevOps MCP Setup

Written by Michael Lip · Solo founder of Zovo · $400K+ on Upwork · 100% JSS Join 50+ builders · More at zovo.one

The Azure DevOps MCP server gives Claude Code structured access to your pipelines, repos, boards, and artifacts through the Model Context Protocol. This guide covers installation, authentication, and configuration so Claude Code can manage your Azure DevOps resources natively.

The Problem

Using az devops CLI commands within Claude Code works but produces unstructured text output that Claude Code must parse heuristically. The MCP approach provides typed, structured tools that Claude Code can invoke reliably. Without MCP, complex queries like “show me all bugs assigned to me in the current sprint with failed linked builds” require chaining multiple CLI commands and manual interpretation.

Quick Solution

  1. Generate a Personal Access Token in Azure DevOps with full scope for your project:
Azure DevOps > User Settings > Personal Access Tokens > New Token
Scopes: Code (Read & Write), Build (Read & Execute), Work Items (Read & Write)
  1. Add the MCP server to .claude/settings.json:
{
  "mcpServers": {
    "azure-devops": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-azure-devops"],
      "env": {
        "AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-org",
        "AZURE_DEVOPS_PAT": "your-pat-token",
        "AZURE_DEVOPS_DEFAULT_PROJECT": "your-project"
      }
    }
  }
}
  1. Restart Claude Code and check the MCP connection:
claude /mcp
# Expected: azure-devops server listed with tools
  1. Test a basic query:
List open pull requests in the main repository

How It Works

The Azure DevOps MCP server translates Claude Code tool calls into Azure DevOps REST API requests. When Claude Code starts, it launches the MCP server process, which registers its available tools: list-work-items, create-work-item, get-pipeline-run, list-pull-requests, get-build-logs, and others.

Each tool has a defined input schema and output format. When you ask Claude Code about your project state, it selects the appropriate tool, passes structured parameters, and receives typed JSON responses. This eliminates the parsing ambiguity of raw CLI output.

The MCP server maintains a persistent connection to Azure DevOps through your PAT token. It handles pagination, retries on transient failures, and rate limiting automatically. Tool responses include metadata like timestamps and IDs that Claude Code can use for follow-up queries.

Common Issues

MCP server fails to start: Check that Node.js 18+ is installed. The MCP server requires a modern Node runtime. Run node --version to verify.

Work items not returned: WIQL queries through the MCP server default to the current project. If your work items are in a different project, specify the project name explicitly in your query or update AZURE_DEVOPS_DEFAULT_PROJECT.

Build logs truncated: Large build logs may be truncated by the MCP response size limit. Ask Claude Code to fetch specific task logs rather than the full build log to get complete output.

Example CLAUDE.md Section

# Azure DevOps MCP Configuration

## MCP Server
- Server: azure-devops (configured in .claude/settings.json)
- Org: https://dev.azure.com/acme-corp
- Project: web-platform

## Available MCP Tools
- list-work-items: Query work items by WIQL
- create-work-item: Create bugs, tasks, user stories
- get-pipeline-run: Fetch pipeline run details and logs
- list-pull-requests: List PRs with filters
- get-repository: Get repo metadata

## Usage Rules
- Always check pipeline status before creating PRs
- Use WIQL for complex queries, natural language for simple ones
- Link work items to PRs when creating them
- Never close work items without verifying pipeline passes

Best Practices



I'm a solo developer in Vietnam. 50K Chrome extension users. $500K+ on Upwork. 5 Claude Max subscriptions running agent fleets in parallel. These are my actual CLAUDE.md templates, orchestration configs, and prompts. Not a course. Not theory. The files I copy into every project before I write a line of code. **[See what's inside →](https://zovo.one/lifetime?utm_source=ccg&utm_medium=cta-default&utm_campaign=claude-code-azure-devops-mcp)** $99 once. Free forever. 47/500 founding spots left.

Related Reading

Built by theluckystrike. More at zovo.one