Azure DevOps MCP server

Integrates with Azure DevOps to enable AI-driven management of projects, work items, repositories, pull requests, branches, and pipelines for enhanced DevOps workflows and automation.
Back to servers
Setup instructions
Provider
Tiberriver256
Release date
Feb 28, 2025
Language
TypeScript
Stats
311 stars

The Azure DevOps MCP server implements the Model Context Protocol for Azure DevOps, allowing AI assistants to interact with Azure DevOps resources through a standardized interface. This server acts as a bridge between AI models and Azure DevOps APIs, enabling access to projects, work items, repositories, and more through natural language.

Installation

Prerequisites

  • Node.js (v16+)
  • npm or yarn
  • Azure DevOps account with appropriate access
  • Authentication credentials (Personal Access Token or Azure Identity credentials)

Running with NPX

You can run the server directly with npx:

npx @tiberriver256/mcp-server-azure-devops

Configuration

The MCP server supports different authentication methods for connecting to Azure DevOps. You'll need to set up the appropriate configuration based on your preferred authentication method.

Azure Identity Authentication

If you're using Azure Identity authentication, first ensure you're logged in to Azure CLI:

az login

Then add this configuration to your MCP configuration file:

{
  "mcpServers": {
    "azureDevOps": {
      "command": "npx",
      "args": ["-y", "@tiberriver256/mcp-server-azure-devops"],
      "env": {
        "AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-organization",
        "AZURE_DEVOPS_AUTH_METHOD": "azure-identity",
        "AZURE_DEVOPS_DEFAULT_PROJECT": "your-project-name"
      }
    }
  }
}

Personal Access Token (PAT) Authentication

For PAT authentication, use this configuration:

{
  "mcpServers": {
    "azureDevOps": {
      "command": "npx",
      "args": ["-y", "@tiberriver256/mcp-server-azure-devops"],
      "env": {
        "AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-organization",
        "AZURE_DEVOPS_AUTH_METHOD": "pat",
        "AZURE_DEVOPS_PAT": "<YOUR_PAT>",
        "AZURE_DEVOPS_DEFAULT_PROJECT": "your-project-name"
      }
    }
  }
}

Environment Variables

The server can be configured with several environment variables:

Variable Description Required Default
AZURE_DEVOPS_AUTH_METHOD Authentication method (pat, azure-identity, or azure-cli) No azure-identity
AZURE_DEVOPS_ORG_URL Full URL to your Azure DevOps organization Yes -
AZURE_DEVOPS_PAT Personal Access Token (for PAT auth) Only with PAT auth -
AZURE_DEVOPS_DEFAULT_PROJECT Default project if none specified No -
AZURE_DEVOPS_API_VERSION API version to use No Latest
AZURE_TENANT_ID Azure AD tenant ID (for service principals) For service principals -
AZURE_CLIENT_ID Azure AD application ID (for service principals) For service principals -
AZURE_CLIENT_SECRET Azure AD client secret (for service principals) For service principals -
LOG_LEVEL Logging level (debug, info, warn, error) No info

Available Tools

The server provides a comprehensive set of tools for interacting with Azure DevOps. Here are some of the key tools available:

User Tools

  • get_me: Get details of the authenticated user

Organization Tools

  • list_organizations: List all accessible organizations

Project Tools

  • list_projects: List all projects in an organization
  • get_project: Get details of a specific project
  • get_project_details: Get comprehensive project details

Repository Tools

  • list_repositories: List all repositories in a project
  • get_repository: Get details of a specific repository
  • get_file_content: Get content of a file from a repository
  • create_branch: Create a new branch
  • create_commit: Commit file changes to a branch

Work Item Tools

  • get_work_item: Retrieve a work item by ID
  • create_work_item: Create a new work item
  • update_work_item: Update an existing work item
  • list_work_items: List work items in a project

Search Tools

  • search_code: Search for code across repositories
  • search_wiki: Search for content across wiki pages
  • search_work_items: Search for work items across projects

Pipelines Tools

  • list_pipelines: List pipelines in a project
  • get_pipeline: Get details of a specific pipeline
  • trigger_pipeline: Trigger a pipeline run

Pull Request Tools

  • create_pull_request: Create a new pull request
  • list_pull_requests: List pull requests in a repository
  • update_pull_request: Update an existing pull request

These tools allow AI assistants to interact with Azure DevOps resources through natural language, making it easier to perform common DevOps tasks and access information.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "azureDevOps" '{"command":"npx","args":["-y","@tiberriver256/mcp-server-azure-devops"],"env":{"AZURE_DEVOPS_ORG_URL":"https://dev.azure.com/your-organization","AZURE_DEVOPS_AUTH_METHOD":"azure-identity","AZURE_DEVOPS_DEFAULT_PROJECT":"your-project-name"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "azureDevOps": {
            "command": "npx",
            "args": [
                "-y",
                "@tiberriver256/mcp-server-azure-devops"
            ],
            "env": {
                "AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-organization",
                "AZURE_DEVOPS_AUTH_METHOD": "azure-identity",
                "AZURE_DEVOPS_DEFAULT_PROJECT": "your-project-name"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "azureDevOps": {
            "command": "npx",
            "args": [
                "-y",
                "@tiberriver256/mcp-server-azure-devops"
            ],
            "env": {
                "AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-organization",
                "AZURE_DEVOPS_AUTH_METHOD": "azure-identity",
                "AZURE_DEVOPS_DEFAULT_PROJECT": "your-project-name"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later